/* Aydınlık Mod Stilleri */

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

#sidebar {
    width: 100px; /* Sidebar genişliği */
    background-color: #007bff; /* Mavi arka plan rengi */
    color: #fff; /* Beyaz yazı rengi */
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto; /* Dikey kaydırma çubuğunu etkinleştirir */
    height: 100vh; /* Sidebar'ın yüksekliğini tam ekran yapar */
}

#sidebar ul {
    list-style-type: none;
    padding: 0;
    width: 100%;
    text-align: center;
}

#sidebar ul li {
    margin: 20px 0;
}

#sidebar ul li a {
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 9px;
    padding: 10px;
    border-radius: 7px;
    transition: background 0.3s;
}

#sidebar ul li a i {
    font-size: 24px;
    margin-bottom: 5px;
}

#sidebar ul li a:hover {
    background-color: #0056b3;
}

/* WebKit tabanlı tarayıcılar (Chrome, Safari, Edge) */
#sidebar::-webkit-scrollbar {
    width: 0px;
    background: transparent; /* Arka planı da gizler */
}

/* Firefox */
#sidebar {
    scrollbar-width: none; /* Kaydırma çubuğunu gizler */
}

/* Internet Explorer 10+ ve Edge Legacy */
#sidebar {
    -ms-overflow-style: none; /* Kaydırma çubuğunu gizler */
}



/* Giriş Sayfası Stil Düzenlemeleri */
#login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#login-container h2 {
    margin-bottom: 20px;
    color: #333;
}

#login-container label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

#login-container input[type="text"], 
#login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

#login-container button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#login-container button:hover {
    background-color: #0056b3;
}

.error-message {
    color: red;
    margin-bottom: 15px;
    font-weight: bold;
}

@media (max-width: 600px) {
    #login-container {
        margin: 20px;
        width: calc(100% - 40px);
    }
}

#content {
    margin-left: 120px; /* İçerik bölgesi sidebar genişliğine göre ayarlandı */
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

table thead tr {
    background-color: #37474f;
    color: #ffffff;
    text-align: left;
    font-weight: bold;
}

table th, table td {
    padding: 6px 8px;
	text-align: center; /* Hücrelerdeki içeriği ortala */
}

table tbody tr {
    border-bottom: 1px solid #dddddd;
}

table tbody tr:nth-of-type(even) {
    background-color: #f5f5f5;
}

table tbody tr:last-of-type {
    border-bottom: 2px solid #37474f;
}

table tbody tr:hover {
    background-color: #e0e0e0;
    cursor: pointer;
}

/* Buton stilleri */
.btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    border-radius: 5px;
	transition: all 0.3s ease;
}

.btn:hover {
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-warning {
    background-color: #ffc107;
    color: white;
    border: none;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none; /* Kenarlığı kaldır */
    padding: 6px 12px;
    border-radius: 4px; /* Köşeleri yuvarla */
    font-size: 14px;
    cursor: pointer;
    outline: none; /* Focus durumunda gelen çerçeveyi kaldır */
    box-shadow: none; /* Varsayılan gölgeyi kaldır */
    display: inline-block;
    width: auto; /* Buton genişliğini sabitle */
}

/* Hover ve Focus durumlarında çerçeveyi ve gölgeyi kaldır */
.btn-danger:hover, .btn-danger:focus {
    background-color: #c82333;
    outline: none; /* Focus durumunda çerçeveyi kaldır */
    box-shadow: none; /* Focus durumunda gölgeyi kaldır */
}

/* Kullanıcı Ekleme ve Genel Form Stili */
form {
    max-width: 800px; /* Daha geniş bir form alanı */
    margin: 20px auto;
    padding: 30px; /* Daha fazla iç boşluk */
    background-color: #ffffff;
    border-radius: 10px; /* Köşeleri daha yuvarlak */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd; /* Dış hat */
}

form label {
    font-size: 16px;
    margin-bottom: 10px; /* Daha geniş bir alt boşluk */
    display: block;
    color: #333333;
}

form input[type="text"],
form input[type="password"],
form select {
    width: 100%;
    padding: 12px; /* Daha fazla iç boşluk */
    margin-bottom: 20px;
    border: 2px solid #cccccc; /* Daha belirgin bir sınır */
    border-radius: 5px;
    font-size: 16px;
    background-color: #f7f7f7; /* Daha hafif arka plan */
}

form input[type="text"]:focus,
form input[type="password"]:focus,
form select:focus {
    outline: none;
    border-color: #007bff; /* Odaklandığında mavi sınır */
    background-color: #ffffff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

form button {
    padding: 15px; /* Daha fazla iç boşluk */
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px; /* Köşeleri daha yuvarlak */
    cursor: pointer;
    font-size: 18px;
    width: 100%; /* Buton genişliği %100 */
}

form button:hover {
    background-color: #0056b3;
}
.form-group label {
    color: #333; /* Varsayılan aydınlık mod rengi */
}

.form-group input, 
.form-group select, 
.form-group textarea {
    background-color: #ffffff; /* Aydınlık modda beyaz arka plan */
    color: #333; /* Aydınlık modda koyu renk yazı */
    border: 2px solid #cccccc; /* Aydınlık modda açık renk sınır */
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: #007bff; /* Odaklanıldığında mavi sınır */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Hafif mavi gölge */
    background-color: #ffffff; /* Odaklanıldığında arka plan beyaz kalır */
    color: #333; /* Odaklanıldığında yazı rengi koyu kalır */
}


/* Karanlık Mod Stilleri */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

#sidebar.dark-mode {
    background-color: #333333; /* Sidebar koyu arka plan rengi */
    color: #ffffff; /* Sidebar beyaz yazı rengi */
}

#sidebar.dark-mode ul li a {
    color: #ffffff;
}

#sidebar.dark-mode ul li a:hover {
    background-color: #555555;
}

#content.dark-mode {
    background-color: #222222;
    color: #ffffff;
}
/* Karanlık Mod İçin Tablo Stili */
table.dark-mode {
    background-color: #1c1c1c;
    color: #e0e0e0;
}

table.dark-mode thead tr {
    background-color: #333333;
    color: #ffffff;
}

table.dark-mode tbody tr:nth-of-type(even) {
    background-color: #2e2e2e;
    color: #808080;
}

table.dark-mode tbody tr:nth-of-type(odd) {
    background-color: #3a3a3a;
    color: #ffffff;
}

table.dark-mode tbody tr:hover {
    background-color: #555555;
    cursor: pointer;
}

/* Kullanıcı Ekleme ve Genel Form Stili - Karanlık Mod */
form.dark-mode {
    background-color: #333333;
    color: #ffffff;
}

form.dark-mode label {
    color: #f0f0f0;
}

form.dark-mode input[type="text"],
form.dark-mode input[type="password"],
form.dark-mode select {
    background-color: #444444;
    color: #ffffff;
    border: 2px solid #555555;
}

form.dark-mode input[type="text"]:focus,
form.dark-mode input[type="password"]:focus,
form.dark-mode select:focus {
    background-color: #333333;
    color: #ffffff;
    border-color: #007bff;
}

form.dark-mode button {
    background-color: #0056b3;
    color: white;
}

form.dark-mode button:hover {
    background-color: #007bff;
}

/* Genel form düzeni - Karanlık Mod */
#stok-girisi-form.dark-mode {
    background-color: #333333;
    color: #ffffff;
}

fieldset.dark-mode {
    color: #f0f0f0;
}

.form-group.dark-mode label {
    color: #f0f0f0;
}

.form-group.dark-mode input, 
.form-group.dark-mode select, 
.form-group.dark-mode textarea {
    background-color: #444444;
    color: #ffffff;
    border: 2px solid #555555;
}

/* Ana Kategori Seçimi için CSS */
.category-select-container {
    max-width: 800px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-select-container label {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-right: 10px;
}

.category-select-container select {
    width: 60%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.category-select-container select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    background-color: #ffffff;
}

/* Ana Kategori Seçimi - Karanlık Mod */
.category-select-container.dark-mode label {
    color: #f0f0f0;
}

.category-select-container.dark-mode select {
    background-color: #444444;
    color: #ffffff;
    border: 1px solid #555555;
}

.category-select-container.dark-mode select:focus {
    background-color: #333333;
    border-color: #007bff;
}
/* Renkli Stil */
.date-select-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background-color: #282828;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.date-select-container label {
    font-size: 18px;
    font-weight: bold;
    color: #f1c40f; /* Sarı vurgulu renk */
    margin-right: 15px;
}

.date-select-container input[type="month"] {
    padding: 10px;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid #e74c3c; /* Kırmızı vurgulu renk */
    background-color: #444;
    color: #fff;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.date-select-container input[type="month"]:focus {
    border-color: #3498db; /* Mavi vurgulu renk */
    background-color: #333;
}

.date-select-container button {
    padding: 12px 25px;
    font-size: 16px;
    background-color: #2ecc71; /* Yeşil vurgulu renk */
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.date-select-container button:hover {
    background-color: #27ae60; /* Daha koyu yeşil */
}
/* Aydınlık Mod İçin Year input Stili */
body:not(.dark-mode) input[type="number"] {
    padding: 10px;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid #cccccc; /* Aydınlık mod için gri sınır rengi */
    background-color: #ffffff; /* Aydınlık mod için beyaz arka plan */
    color: #333333; /* Aydınlık mod için koyu yazı rengi */
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.1); /* Aydınlık mod için hafif gölge */
    transition: all 0.3s ease;
}

body:not(.dark-mode) input[type="number"]:focus {
    border-color: #007bff; /* Aydınlık mod için odaklanıldığında mavi sınır */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Aydınlık mod için odaklanıldığında gölge */
    background-color: #f9f9f9; /* Aydınlık mod için odaklanıldığında hafif gri arka plan */
}

/* Karanlık Mod İçin Year input Stili */
body.dark-mode input[type="number"] {
    padding: 10px;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid #e74c3c; /* Karanlık mod için kırmızı vurgulu sınır */
    background-color: #444444; /* Karanlık mod için koyu arka plan */
    color: #ffffff; /* Karanlık mod için beyaz yazı rengi */
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.4); /* Karanlık mod için gölge */
    transition: all 0.3s ease;
}

body.dark-mode input[type="number"]:focus {
    border-color: #007bff; /* Karanlık mod için odaklanıldığında mavi sınır */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Karanlık mod için odaklanıldığında gölge */
    background-color: #333333; /* Karanlık mod için odaklanıldığında daha koyu gri arka plan */
}

/* Pagination Stil */
.pagination {
    display: flex;
    justify-content: center;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
}

.pagination li {
    display: inline;
}

.pagination .page-item {
    display: flex;
    align-items: center;
    margin: 0 3px;
}

.pagination .page-link {
    position: relative;
    display: block;
    padding: 8px 12px;
    margin-left: -1px;
    line-height: 1.25;
    color: #007bff;
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    color: #0056b3;
    background-color: #e9ecef;
    border-color: #ddd;
}

.pagination .page-item.active .page-link {
    z-index: 1;
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #ddd;
}

.pagination .page-link:focus {
    z-index: 2;
    outline: none;
}

.pagination .page-item .page-link {
    border-radius: 5px;
    padding: 10px 15px;
    font-weight: bold;
    background-color: #37474f; /* Pagination arka plan rengi */
    color: #ffffff; /* Pagination yazı rengi */
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.pagination .page-item:hover .page-link {
    background-color: #555; /* Hover rengi */
}

.pagination .page-item.disabled .page-link {
    background-color: #444; /* Disabled durumu için arka plan rengi */
    color: #999; /* Disabled durumu için yazı rengi */
}

.pagination .page-link {
    padding: 8px 12px;
    margin-left: 3px;
    margin-right: 3px;
}
/* Karanlık Mod İçin Pagination Stil */
body.dark-mode .pagination .page-item .page-link {
    background-color: #333; /* Karanlık mod arka plan rengi */
    color: #ddd; /* Karanlık mod yazı rengi */
}

body.dark-mode .pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

body.dark-mode .pagination .page-item:hover .page-link {
    background-color: #555; /* Hover rengi */
}
@import url('https://fonts.googleapis.com/css2?family=Lucida+Handwriting&display=swap');

footer p {
    font-family: 'Lucida Handwriting', cursive;
}
/* Öde Butonunu Küçültme */
.btn-success {
    padding: 5px 15px; /* Butonun iç dolgusunu ayarla */
    font-size: 14px; /* Yazı boyutunu küçült */
    border-radius: 5px; /* Kenarları yuvarla */
    width: auto; /* Buton genişliği içeriğine göre ayarlanır */
    display: inline-block; /* Buton tablo hücresinde düzgün hizalanır */
}
