/* Genel Stil Reset ve Temel Ayarlar */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6; /* Varsayılan arka plan */
}

/* Kapsayıcı */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Başlıklar */
h1, h2, h3, h4, h5, h6 {
    color: #333;
    margin-bottom: 15px;
}

/* Linkler */
a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Butonlar */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
}

/* Form Elemanları */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

/* Mesaj Kutuları */
.alert {
    padding: 12px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Görsel Yükleme Alanı */
.file-upload-preview {
    margin-top: 10px;
    border: 1px dashed #ccc;
    padding: 10px;
    text-align: center;
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.file-upload-preview img {
    max-width: 150px;
    max-height: 150px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Giriş ve Kayıt Sayfaları */
body.auth-page {
    background-color: #ffffff; /* İstenen arka plan rengi */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.auth-box {
    background-color: #ffffff; /* Kutunun rengi */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    text-align: center;
    color: rgba(255, 255, 255, .8);
}

.auth-box h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.auth-box .logo {
    margin-bottom: 25px;
}

.auth-box .logo img {
    max-width: 150px;
    height: auto;
}

.auth-box .form-group label {
    color: #555;
    text-align: left;
    width: 100%;
}

.auth-box .form-group input[type="text"],
.auth-box .form-group input[type="password"],
.auth-box .form-group input[type="email"] {
    background-color: #ffffff;
    border: 1px solid #3a3f47;
    color: #444444;
}

.auth-box .form-group input::placeholder {
    color: rgba(255, 255, 255, .5);
}

.auth-box .btn {
    background-color: #007bff;
    color: white;
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
}

.auth-box .btn:hover {
    background-color: #0056b3;
}

.auth-box .text-muted {
    font-size: 0.9em;
    color: rgba(0, 0, 0, 1);
    margin-top: 15px;
}

.auth-box .text-muted a {
    color: #007bff;
    text-decoration: none;
}

.auth-box .text-muted a:hover {
    text-decoration: underline;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    justify-content: flex-start;
    padding-left: 5px; /* Giriş kutusu ile hizala */
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
    color: rgba(255, 255, 255, .7);
    cursor: pointer;
}

/* Yardımcı Margin Sınıfları */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

/* Flexbox yardımcıları */
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

/* Sidebar Header (Logo'nun bulunduğu kısım) */
.sidebar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0; /* Menü ile üst ve alt boşluğu ayarlar */
    margin-bottom: 20px;
    height: 90px; /* Logo alanı için sabit yükseklik */
    overflow: hidden; /* Logonun alanı aşmasını engeller */
}

.sidebar-header a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px; /* Logonun sabit genişliği */
    height: 80px; /* Logonun sabit yüksekliği */
}

/* Logo resminin hizalamasını ve boyutunu düzenleme */
.sidebar-header .site-logo {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Görselin oranını koruyarak kutuya sığmasını sağlar */
    transition: opacity 0.3s ease;
}

/* Sidebar menü listesinin ilk öğesi (Anasayfa) için boşluğu ayarlama */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 10px; /* Menü listesinin üstünden 10 piksel boşluk bırak */
}

/* Eski .sidebar-header h2 kuralını da güncelleyelim */
.sidebar-header h2 {
    color: #333333;
    font-size: 1.8rem;
    margin: 0;
    line-height: 50px; /* Resim yüksekliğiyle aynı line-height vererek dikeyde ortala */
    transition: color 0.3s ease;
}

/* Gece/Gündüz moduna özel görünürlük kuralları */
/* Gündüz logosunu gece modunda gizle */
.site-logo-light {
    display: block; /* Gündüz modunda görünür */
}

/* Gece logosunu gündüz modunda gizle */
.site-logo-dark {
    display: none;
}

/* --- İçerik Kutusu Dolgu (Padding) Ayarı --- */
/* global.css dosyanızdaki .content sınıfının padding değerini güncelleyin */
.content {
    padding: 3.5rem !important; /* Sağdan, soldan, yukarıdan ve aşağıdan daha fazla boşluk */
}
