/* =========================================
   1. GENEL AYARLAR VE DEĞİŞKENLER
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Renk Paleti */
    --sidebar-bg: #1e272e;      /* Koyu Antrasit */
    --sidebar-text: #bdc3c7;    /* Açık Gri Yazı */
    --active-color: #3498db;    /* Mavi Vurgu */
    --body-bg: #f4f6f9;         /* Arka Plan */
    --white: #ffffff;
    --text-dark: #2c3e50;       /* Koyu Metin */
    --text-light: #7f8c8d;      /* Gri Metin */
    --border-color: #dfe6e9;
    
    /* Gölgeler ve Yuvarlamalar */
    --shadow: 0 4px 20px rgba(0,0,0,0.05);
    --radius: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* İç içe girmeyi önleyen en önemli kod */
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--body-bg);
    color: var(--text-dark);
    font-size: 14px;
    min-height: 100vh;
    display: flex; /* Sidebar ve İçerik yan yana dursun */
    overflow-x: hidden; /* Yatay kaydırmayı engelle */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
h1, h2, h3, h4 { font-weight: 600; color: var(--text-dark); }

/* =========================================
   2. LOGIN SAYFASI (ÖZEL TASARIM)
   ========================================= */
body.login-body {
    background: linear-gradient(135deg, #1e272e 0%, #2c3e50 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 20px;
}

.login-card {
    background: var(--white);
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    text-align: center;
}

.login-card h2 { font-size: 1.8rem; margin-bottom: 10px; }
.login-card p { color: var(--text-light); margin-bottom: 30px; }

.login-card .form-input {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--active-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.btn-login:hover { background: #2980b9; transform: translateY(-2px); }

/* =========================================
   3. SIDEBAR (YAN MENÜ - SABİT)
   ========================================= */
.sidebar {
    width: 260px;
    height: 100vh;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    position: fixed; /* Sayfa kaydıkça sabit kalsın */
    top: 0;
    left: 0;
    z-index: 1000; /* Her şeyin üstünde */
    overflow-y: auto;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
}

.sidebar-header {
    height: 80px;
    display: flex;
    align-items: center;
    padding-left: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sidebar-header .brand { font-size: 1.2rem; font-weight: 700; color: var(--white); letter-spacing: 1px; }
.sidebar-header i { margin-right: 10px; color: var(--active-color); }

.menu { padding: 20px 0; }

.menu-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #57606f;
    padding: 10px 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.menu ul li a {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    font-size: 0.95rem;
    border-left: 4px solid transparent; /* Aktiflik çubuğu */
}

.menu ul li a i { width: 30px; font-size: 1.1rem; text-align: center; }

.menu ul li a:hover, 
.menu ul li a.active {
    background: rgba(255,255,255,0.05);
    color: var(--white);
    border-left-color: var(--active-color);
}

/* =========================================
   4. MAIN CONTENT (SAĞ TARAF - İÇERİK)
   ========================================= */
.main-content {
    margin-left: 260px; /* Sidebar kadar boşluk bırak */
    width: calc(100% - 260px); /* Geriye kalan genişlik */
    padding: 30px;
    min-height: 100vh;
    transition: 0.3s;
}

/* Üst Bar (Header) */
.top-bar {
    background: var(--white);
    padding: 15px 30px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.page-title h2 { font-size: 1.4rem; margin: 0; }
.admin-profile { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.admin-profile i { font-size: 1.5rem; color: var(--text-light); }

/* =========================================
   5. DASHBOARD (İSTATİSTİK KARTLARI)
   ========================================= */
.stats-grid {
    display: grid;
    /* Ekran küçülse bile kartlar ezilmez, alt satıra geçer */
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s;
}

.stat-card:hover { transform: translateY(-5px); }

.stat-info h3 { font-size: 2rem; margin: 0; color: var(--text-dark); }
.stat-info p { color: var(--text-light); margin-top: 5px; font-size: 0.9rem; }

/* İkonların renkleri */
.stat-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}
.icon-orange { background: #fff3e0; color: #ff9800; }
.icon-blue { background: #e3f2fd; color: #2196f3; }
.icon-green { background: #e8f5e9; color: #4caf50; }
.icon-purple { background: #f3e5f5; color: #9c27b0; }

/* Hoşgeldin Kutusu */
.welcome-box {
    background: var(--sidebar-bg);
    color: var(--white);
    padding: 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.welcome-text h3 { color: var(--white); margin-bottom: 10px; font-size: 1.5rem; }
.welcome-text p { opacity: 0.8; max-width: 600px; }
.btn-view-site {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 500;
}
.btn-view-site:hover { background: var(--white); color: var(--text-dark); }

/* =========================================
   6. FORMLAR VE AYARLAR SAYFASI
   ========================================= */
.page-header { margin-bottom: 30px; }
.page-header p { color: var(--text-light); margin-top: 5px; }

/* Form Grid */
.settings-grid {
    display: grid;
    /* Kartlar minimum 350px genişliğinde olsun, sığmazsa alta geçsin */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden; /* Taşmayı engelle */
    height: 100%; /* Kart boylarını eşitle */
}

.card-header {
    padding: 15px 25px;
    background: #fdfdfd;
    border-bottom: 1px solid var(--border-color);
}
.card-header h3 { font-size: 1.1rem; margin: 0; }

.card-body { padding: 25px; }

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-control {
    width: 100%; /* Taşıyıcıyı tam doldur */
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: #fdfdfd;
    transition: 0.3s;
}

.form-control:focus {
    border-color: var(--active-color);
    outline: none;
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea.form-control { resize: vertical; min-height: 80px; }
.form-control-color { height: 45px; padding: 5px; cursor: pointer; }

/* Alt Bar (Kaydet Butonu) */
.form-actions {
    background: var(--white);
    padding: 20px;
    margin-top: 30px;
    border-radius: var(--radius);
    text-align: right;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.03);
    position: sticky; /* Sayfa uzunsa buton altta görünsün */
    bottom: 20px;
    z-index: 90;
}

.btn-save {
    background: #27ae60;
    color: white;
    padding: 12px 35px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}
.btn-save:hover { background: #219150; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3); }

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

/* =========================================
   7. RESPONSIVE (MOBİL UYUMLULUK)
   ========================================= */
@media (max-width: 992px) {
    /* Tablet ve Mobilde Sidebar'ı Gizle veya Daralt */
    .sidebar { left: -260px; } /* Ekran dışına it */
    .main-content { margin-left: 0; width: 100%; }
    
    .stats-grid, .settings-grid {
        grid-template-columns: 1fr; /* Mobilde her şey tek sütun olsun */
    }
    
    .welcome-box { flex-direction: column; text-align: center; gap: 15px; }
    .btn-view-site { width: 100%; text-align: center; display: block; }
    .form-actions { text-align: center; }
    .btn-save { width: 100%; justify-content: center; }
}

/* --- TABLO TASARIMI --- */
.table-container {
    overflow-x: auto; /* Mobilde tablo taşarsa kaydır */
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.custom-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #eee;
}

.custom-table th {
    text-align: left;
    padding: 18px 25px;
    font-weight: 600;
    color: #2d3436;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-table td {
    padding: 20px 25px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f2f6;
    color: #636e72;
}

.custom-table tr:last-child td { border-bottom: none; }
.custom-table tr:hover { background: #fafafa; }

/* Tablo İçindeki Resim */
.table-img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Durum Rozetleri (Aktif/Pasif) */
.badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.badge-success { background: #e6fffa; color: #00b894; }
.badge-danger { background: #fff5f5; color: #ff7675; }

/* İşlem Butonları (Düzenle/Sil) */
.btn-action {
    width: 35px; height: 35px;
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: 0.3s;
    margin-right: 5px;
}
.btn-edit { background: #eef2ff; color: #4834d4; }
.btn-edit:hover { background: #4834d4; color: white; }

.btn-delete { background: #fff0f1; color: #eb4d4b; }
.btn-delete:hover { background: #eb4d4b; color: white; }

/* Yeni Ekle Butonu */
.btn-add-new {
    background: var(--active-color);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}
.btn-add-new:hover { background: #2980b9; transform: translateY(-2px); color: white; }

/* --- VOYAGE FORM ÖZEL EKLEMELER --- */

/* Daha sıkışık 3'lü grid yapısı (Yan yana sığması için) */
.grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Özellik Seçim Kutucukları (Wi-Fi, Klima vb.) */
.feature-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.feature-box {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 5px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: 0.2s;
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
}

.feature-box:hover {
    border-color: var(--active-color);
    background: #f9fbff;
}

.feature-box i {
    font-size: 1.4rem;
    color: #b2bec3;
    transition: 0.2s;
}

/* Checkbox seçiliyken kutunun alacağı hal */
input[type="checkbox"]:checked + .feature-box {
    background: #e3f2fd;
    border-color: var(--active-color);
    color: var(--active-color);
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.15);
}

input[type="checkbox"]:checked + .feature-box i {
    color: var(--active-color);
}

/* --- YENİ HEADER ve DÜZENLEME STİLLERİ --- */

/* Header Sol Kısım */
.header-left {
    display: flex; align-items: center; gap: 20px;
}
.page-title h2 {
    font-size: 1.3rem; color: var(--text-dark);
    display: flex; align-items: center; gap: 10px; margin: 0;
}
.page-title h2 i { color: var(--active-color); opacity: 0.8; }

/* Şık Geri Butonu */
.header-back-btn {
    width: 40px; height: 40px; background: #f1f2f6; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #636e72; transition: all 0.2s ease; border: 1px solid transparent;
}
.header-back-btn:hover {
    background: var(--active-color); color: white;
    transform: translateX(-3px); box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

/* Form Izgara Sistemi (Yan Yana Sığdırma) */
.grid-compact {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px;
}

/* Özellik Seçim Kutucukları */
.feature-selection-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin-top: 15px;
}
.feature-box {
    border: 1px solid var(--border-color); border-radius: 8px; padding: 15px 5px;
    text-align: center; cursor: pointer; background: #fff; transition: 0.2s;
    font-size: 0.85rem; color: var(--text-light);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.feature-box:hover { border-color: var(--active-color); background: #f9fbff; }
.feature-box i { font-size: 1.4rem; color: #b2bec3; transition: 0.2s; }

input[type="checkbox"]:checked + .feature-box {
    background: #e3f2fd; border-color: var(--active-color); color: var(--active-color); font-weight: 600;
}
input[type="checkbox"]:checked + .feature-box i { color: var(--active-color); }

/* --- SAYFA EDİTÖRÜ VE CANLI ÖNİZLEME STİLLERİ --- */

/* Editör Sayfası Genel Düzeni (2 Kolon) */
.editor-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Ekranı yarı yarıya böl */
    gap: 30px;
    align-items: start;
    padding-bottom: 90px; /* Alt barın altında içerik kalmasın diye boşluk */
}

/* Sol Taraf: Editör Kartı */
.editor-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
}

.editor-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Sağ Taraf: Canlı Önizleme Alanı (Yapışkan) */
.live-preview-wrapper {
    position: sticky;
    top: 20px;
}

.preview-box {
    background: #f8f9fa; /* Site arka plan rengi simülasyonu */
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 30px;
    min-height: 500px;
    position: relative;
}

.preview-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--text-dark);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Önizleme İçerik Alanı (Site Görünümü) */
.preview-content-area {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.preview-content-title {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    font-size: 1.8rem;
    color: #333;
}

.preview-content-body {
    line-height: 1.6;
    color: #555;
}

/* Alt Yapışkan Bar (Sticky Actions) */
.sticky-actions {
    position: fixed;
    bottom: 20px;
    right: 20px;
    /* Sidebar genişliğine göre burayı ayarlıyoruz (Genelde 250-270px) */
    left: 270px; 
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(5px);
    padding: 15px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
}

/* Mobil Uyumluluk */
@media (max-width: 1200px) {
    .editor-layout {
        grid-template-columns: 1fr; /* Mobilde alt alta */
    }
    .sticky-actions {
        left: 20px; /* Mobilde sidebar kapandığı için sola yasla */
    }
    .live-preview-wrapper {
        position: relative; /* Mobilde yapışkan olmasın */
        top: 0;
    }
}

/* =========================================
   8. STYLISH PRELOADER (YÜKLEME EKRANI)
   ========================================= */
.admin-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85); /* Hafif transparan beyaz */
    backdrop-filter: blur(8px); /* Arka planı bulanıklaştırır (Glass effect) */
    z-index: 999999; /* En üstte durması için */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Yükleme bitince gizlemek için */
.admin-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Dönen Daire */
.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(52, 152, 219, 0.2);
    border-top: 4px solid var(--active-color); /* Mavi renk */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.2);
}

/* Ortadaki Çapa İkonu */
.loader-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--active-color);
    font-size: 1.5rem;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Yükleniyor Yazısı */
.loader-text {
    margin-top: 20px;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-transform: uppercase;
    animation: fadeInUp 0.5s ease;
}

/* Animasyon Keyframe'leri */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.7; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   9. CUSTOM CONFIRM MODAL (ONAY PENCERESİ)
   ========================================= */
.custom-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99999; /* Loader'dan bir tık altta */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
}

.custom-modal-overlay.active {
    opacity: 1; visibility: visible;
}

.custom-modal-box {
    background: white;
    width: 400px;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.custom-modal-overlay.active .custom-modal-box {
    transform: scale(1);
}

/* Dekoratif Arka Plan Çemberi */
.custom-modal-box::before {
    content: ''; position: absolute; top: -50px; left: -50px;
    width: 150px; height: 150px; background: var(--active-color);
    opacity: 0.1; border-radius: 50%;
}

.modal-icon-large {
    font-size: 3rem;
    color: var(--active-color);
    margin-bottom: 20px;
    background: #f0f8ff;
    width: 80px; height: 80px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.15);
}

.custom-modal-box h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.custom-modal-box p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-actions {
    display: flex; gap: 15px; justify-content: center;
}

.btn-modal {
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    transition: 0.3s;
    flex: 1;
}

.btn-cancel {
    background: #f1f2f6; color: #636e72;
}
.btn-cancel:hover { background: #dfe6e9; color: #2d3436; }

.btn-confirm {
    background: var(--active-color); color: white;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}
.btn-confirm:hover { 
    background: #2980b9; 
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4); 
}

/* =========================================
   10. LOGO EDITOR MODAL (LOGO DÜZENLEYİCİ)
   ========================================= */
.logo-edit-btn {
    margin-top: 15px;
    background: #2d3436;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s;
    display: inline-flex; align-items: center; gap: 8px;
}
.logo-edit-btn:hover { background: #000; transform: translateY(-2px); }

/* Editör Grid Yapısı */
.editor-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    align-items: start;
}

/* Sol Taraf: Önizleme Kutusu */
.preview-box {
    background-image: 
        linear-gradient(45deg, #eee 25%, transparent 25%), 
        linear-gradient(-45deg, #eee 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #eee 75%), 
        linear-gradient(-45deg, transparent 75%, #eee 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border: 2px dashed #ccc;
    height: 300px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

/* Sağ Taraf: Kontroller */
.control-group { margin-bottom: 15px; }
.control-group label {
    display: flex; justify-content: space-between;
    font-size: 0.85rem; font-weight: 600; color: #555;
    margin-bottom: 5px;
}
.control-group input[type="range"] {
    width: 100%;
    height: 6px;
    background: #dfe6e9;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}
.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px; height: 18px;
    background: var(--active-color);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}
.control-group input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }

.reset-filters {
    color: #e74c3c; font-size: 0.8rem; cursor: pointer; text-decoration: underline;
    float: right; margin-top: -10px; margin-bottom: 10px;
}

/* =========================================
   11. SAYFA EDİTÖRÜ VE CANLI ÖNİZLEME (YENİ)
   ========================================= */

/* Sekme (Tab) Yapısı */
.custom-tabs {
    display: flex;
    background: #f1f3f4;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.custom-tab-btn {
    padding: 15px 25px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.custom-tab-btn:hover {
    background: #e8eaed;
    color: var(--text-dark);
}

.custom-tab-btn.active {
    color: var(--active-color);
    border-bottom-color: var(--active-color);
    background: var(--white);
}

/* Sekme İçerikleri */
.tab-content {
    display: none;
    padding: 25px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* İki Sütunlu Görünüm (Split View) */
.split-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    height: 580px; /* Editör yüksekliği */
}

.split-left {
    overflow-y: auto;
    padding-right: 10px;
    height: 100%;
}

.split-right {
    background: #f9f9f9;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Iframe Önizleme Başlığı */
.preview-header {
    background: #eee;
    padding: 10px 15px;
    font-size: 0.8rem;
    color: #666;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

iframe#preview-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}

/* Google Önizleme Kutusu */
.google-preview-box {
    background: #fff;
    border: 1px solid #dfe1e5;
    border-radius: 8px;
    padding: 20px;
    font-family: Arial, sans-serif;
    max-width: 600px;
}

.g-url {
    color: #202124;
    font-size: 14px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.g-title {
    color: #1a0dab;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
    display: block;
    margin-bottom: 3px;
    line-height: 1.3;
}

.g-title:hover {
    text-decoration: underline;
}

.g-desc {
    color: #4d5156;
    font-size: 14px;
    line-height: 1.58;
}

/* Mobil Uyumluluk */
@media (max-width: 992px) {
    .split-view {
        grid-template-columns: 1fr;
        height: auto;
    }
    .split-right {
        height: 500px; /* Mobilde sabit yükseklik */
        margin-top: 20px;
    }
}
/* =========================================
   12. FLEET FORM DÜZENİ
   ========================================= */

/* Sol taraf geniş, sağ taraf dar grid yapısı */
.admin-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.mb-30 { margin-bottom: 30px; }
.w-100 { width: 100%; }

/* Input boyutlandırma */
.form-control-lg {
    padding: 15px;
    font-size: 1.1rem;
}

/* --- Özellik Seçim Kutuları (Checkbox yerine İkonlu Kart) --- */
.feature-selection-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.feature-card {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.feature-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.feature-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 5px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s;
    text-align: center;
    height: 100px;
    color: var(--text-light);
}

.feature-content i {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #dfe6e9;
}

.feature-content span { font-size: 0.8rem; font-weight: 500; }

/* Seçili Olduğunda */
.feature-card input:checked + .feature-content {
    border-color: var(--active-color);
    background: #f0f9ff;
    color: var(--active-color);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.15);
}

.feature-card input:checked + .feature-content i {
    color: var(--active-color);
}

/* --- Görsel Önizleme --- */
.image-preview-box {
    width: 100%;
    min-height: 160px;
    background: #f8f9fa;
    border: 2px dashed #dfe6e9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.image-preview-box img {
    width: 100%;
    height: auto;
    display: block;
}

.image-preview-box .placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #b2bec3;
}
.image-preview-box .placeholder i { font-size: 2rem; margin-bottom: 5px; }

/* --- Switch (Aktif/Pasif) --- */
.switch-control-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: transparan;
}

.switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 24px;
    margin-bottom: 0;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider { background-color: #27ae60; }
input:checked + .slider:before { transform: translateX(21px); }

/* Mobilde tek kolona düşür */
@media (max-width: 992px) {
    .admin-grid-layout { grid-template-columns: 1fr; }
}
/* =========================================
   13. TABLO ÖZELLİK İKONLARI
   ========================================= */

.table-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px; /* İkonlar arası boşluk */
    align-items: center;
}

.feat-badge {
    width: 28px;
    height: 28px;
    background: #f1f2f6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #636e72;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    cursor: help; /* Üzerine gelince soru işareti çıkar */
}

.feat-badge:hover {
    background: var(--active-color);
    color: #fff;
    transform: translateY(-2px);
}
/* =========================================
   14. SEFER PLANLAMA SİHİRBAZI (VOYAGE WIZARD)
   ========================================= */

/* İki Kolonlu Yapı (Sol: Ayarlar, Sağ: Günler) */
.wizard-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 25px;
    align-items: start;
}

/* Tarih Seçim Alanı */
.date-range-box {
    background: #eef6fb; /* Temadaki maviye uygun çok açık ton */
    border: 1px solid #dbe9f3;
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 25px;
}

.date-range-title {
    color: var(--active-color);
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
    font-size: 0.95rem;
}

/* Gün Kartları (Accordion Tarzı) */
.day-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

.day-card.active {
    border-color: var(--active-color);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1);
}

.day-header {
    padding: 15px 20px;
    background: #fdfdfd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
}

.day-card.active .day-header {
    background: #fff;
    border-bottom: 1px solid #f1f2f6;
    border-radius: 8px 8px 0 0;
}

.day-label {
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.day-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--active-color);
    cursor: pointer;
}

/* Gün İçeriği (Saatler) */
.day-body {
    padding: 20px;
    display: none; /* JS ile açılacak */
    background: #fff;
    border-radius: 0 0 8px 8px;
}

.time-row {
    display: flex;
    gap: 15px;
    align-items: center;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px dashed #dfe6e9;
    margin-bottom: 10px;
}

.btn-add-time {
    font-size: 0.8rem;
    padding: 6px 12px;
    background: #e3f2fd;
    color: var(--active-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: none; /* Seçilince görünür */
    transition: 0.2s;
}
.btn-add-time:hover { background: var(--active-color); color: #fff; }

.remove-row-btn {
    width: 30px; height: 30px;
    border: none; background: transparent;
    color: #ff7675; cursor: pointer;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
}
.remove-row-btn:hover { background: #fff5f5; }

/* Detay Tablosu (Accordion Row) */
.detail-row {
    background: #f9fbfd;
}
.detail-container {
    padding: 20px;
    border-left: 4px solid var(--active-color);
    background: #fff;
    margin: 10px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

/* Mobil Uyumluluk */
@media (max-width: 992px) {
    .wizard-grid { grid-template-columns: 1fr; }
}
/* =========================================
   15. FOLDER TREE VIEW (KLASÖR GÖRÜNÜMÜ)
   ========================================= */

/* Ana Klasör Satırı */
.folder-row {
    background: #fff;
    border-bottom: 1px solid #f1f2f6;
    transition: all 0.2s ease;
    cursor: pointer;
}
.folder-row:hover {
    background: #f8fbff;
}
.folder-row.active-folder {
    background: #eef6fc; /* Açıkken hafif mavi */
    border-bottom: 1px solid #e1e8ed;
}

/* Klasör İkonu ve Başlık */
.folder-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}
.folder-icon {
    width: 40px;
    height: 40px;
    background: #fff3cd; /* Klasör Sarısı */
    color: #f39c12;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s;
}
.active-folder .folder-icon {
    background: #ffeaa7;
    transform: scale(1.05);
}

/* Klasör İçeriği (Çekmece) */
.folder-content {
    background: #f8f9fa; /* Hafif gri zemin */
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.03);
    display: none; /* JS ile açılacak */
}

/* Dosya (Sefer) Listesi */
.file-list {
    padding: 10px 20px 20px 65px; /* Soldan girinti (Tree view hissi) */
    position: relative;
}

/* Soldaki Dikey Çizgi (Ağaç Yapısı) */
.file-list::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 20px;
    left: 40px; /* İkonun ortasına denk gelir */
    width: 2px;
    background: #e1e8ed;
}

/* Tekil Dosya Satırı */
.file-row {
    background: #fff;
    margin-bottom: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    transition: 0.2s;
}

/* Dosya Satırına Giden Yatay Çizgi */
.file-row::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 50%;
    width: 25px;
    height: 2px;
    background: #e1e8ed;
}

.file-row:hover {
    border-color: var(--active-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transform: translateX(5px);
}

/* Dosya Bilgileri */
.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
}
.file-icon {
    color: var(--active-color);
    font-size: 1.1rem;
    opacity: 0.7;
}
.file-date {
    font-weight: 600;
    color: #34495e;
}
.file-meta {
    font-size: 0.85rem;
    color: #7f8c8d;
    background: #f1f2f6;
    padding: 4px 10px;
    border-radius: 4px;
}

/* Badge Özelleştirme */
.badge-folder { background: #dff9fb; color: #130f40; border: 1px solid #c7ecee; }
/* =========================================
   16. SLIDE-OVER PANEL (SAĞDAN AÇILAN MODAL)
   ========================================= */

/* Arka Plan Karartması */
.slide-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    z-index: 9999;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
}
.slide-overlay.active { opacity: 1; visibility: visible; }

/* Sağ Panel */
.slide-panel {
    position: fixed;
    top: 0; right: -500px; /* Başlangıçta gizli */
    width: 450px;
    height: 100vh;
    background: #fff;
    z-index: 10000;
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    transition: right 0.4s cubic-bezier(0.19, 1, 0.22, 1); /* Yumuşak animasyon */
    display: flex;
    flex-direction: column;
}
.slide-panel.active { right: 0; }

/* Panel Başlığı */
.slide-header {
    padding: 20px 25px;
    background: #fff;
    border-bottom: 1px solid #f1f2f6;
    display: flex; justify-content: space-between; align-items: center;
}
.slide-title { font-size: 1.2rem; font-weight: 700; color: #2c3e50; display:flex; gap:10px; align-items:center; }
.slide-close {
    font-size: 1.5rem; color: #b2bec3; cursor: pointer; transition: 0.2s;
    width: 35px; height: 35px; display:flex; align-items:center; justify-content:center; border-radius:50%;
}
.slide-close:hover { background: #f1f2f6; color: #e74c3c; }

/* Panel İçeriği (Scroll Edilebilir) */
.slide-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    background: #fdfdfd;
}

/* Yükleniyor Animasyonu */
.panel-loader {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; color: #bdc3c7; gap: 15px;
}

/* Form Elemanları İyileştirme */
.slide-body .form-group label { font-size: 0.85rem; color: #636e72; }
.slide-body .form-control { font-size: 0.95rem; }

/* Mobil Uyumluluk */
@media (max-width: 500px) {
    .slide-panel { width: 100%; right: -100%; }
}
/* =========================================
   17. GLOBAL CUSTOM CONFIRM MODAL (GENEL ONAY PENCERESİ)
   ========================================= */
.global-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(44, 62, 80, 0.7); /* Koyu Lacivert Flu Arka Plan */
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.global-modal-overlay.active {
    opacity: 1; visibility: visible;
}

.global-modal-box {
    background: #fff;
    width: 420px;
    max-width: 90%;
    border-radius: 16px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.global-modal-overlay.active .global-modal-box {
    transform: scale(1) translateY(0);
}

/* Modal İkonu */
.modal-status-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
}

/* Tehlike (Silme) Modu */
.status-danger {
    background: #fee2e2; color: #ef4444;
}
.status-danger::after {
    content: ''; position: absolute; width: 100%; height: 100%;
    border-radius: 50%; border: 1px solid #ef4444;
    animation: pulse-red 2s infinite;
}

/* Başlık ve Metin */
.global-modal-box h3 {
    font-size: 1.5rem; color: #1f2937; margin-bottom: 10px; font-weight: 700;
}

.global-modal-box p {
    color: #6b7280; font-size: 1rem; line-height: 1.6; margin-bottom: 30px;
}

/* Butonlar */
.global-modal-actions {
    display: flex; gap: 15px; justify-content: center;
}

.btn-g-cancel {
    background: #f3f4f6; color: #374151;
    padding: 12px 25px; border-radius: 10px; border: none;
    font-weight: 600; cursor: pointer; transition: 0.2s;
    flex: 1;
}
.btn-g-cancel:hover { background: #e5e7eb; }

.btn-g-confirm {
    background: #ef4444; color: white;
    padding: 12px 25px; border-radius: 10px; border: none;
    font-weight: 600; cursor: pointer; transition: 0.2s;
    flex: 1; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
.btn-g-confirm:hover { background: #dc2626; transform: translateY(-2px); }

@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
/* =========================================
   STICKY BOTTOM ACTION BAR (MÜKEMMEL PANEL)
   ========================================= */

/* 1. Sayfa içeriğinin panelin altında kalmaması için padding */
.main-content {
    padding-bottom: 100px !important; /* Alt panel yüksekliği kadar boşluk */
}

/* 2. Alt Panelin Kendisi */
.sticky-action-bar {
    position: fixed;
    bottom: 0;
    right: 0;
    /* Sidebar genişliği ne kadarsa o kadar soldan boşluk bırakıyoruz. 
       Genelde senin temanda 250px veya 260px civarıdır. 
       Eğer sidebar kapanıp açılıyorsa JS ile burayı tetiklemek gerekebilir ama şimdilik sabit varsayalım. */
    width: calc(100% - 260px); 
    height: 80px;
    background: rgba(255, 255, 255, 0.95); /* Hafif şeffaf beyaz */
    backdrop-filter: blur(10px); /* Buzlu cam efekti */
    border-top: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05); /* Yukarı doğru hafif gölge */
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    transition: all 0.3s ease;
}

/* 3. Panelin Sol Tarafı (Bilgi/Özet Alanı) */
.action-bar-info {
    display: flex;
    align-items: center;
    gap: 15px;
}
.action-bar-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 700;
}
.action-bar-info span.badge-count {
    background: #e3f2fd;
    color: #0984e3;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* 4. Panelin Sağ Tarafı (Butonlar Grubu) */
.action-bar-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* İkincil Butonlar (Ayarlar, Filtre vb.) */
.btn-action-secondary {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    border: 1px solid #dfe6e9;
    background: #fff;
    color: #636e72;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s;
    cursor: pointer;
}
.btn-action-secondary:hover {
    background: #f1f2f6;
    color: #2d3436;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Ana Aksiyon Butonu (Ekle) */
.btn-action-primary {
    height: 45px;
    padding: 0 25px;
    background: linear-gradient(135deg, #0984e3, #00cec9); /* Şık bir gradient */
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(9, 132, 227, 0.3);
    transition: all 0.2s;
    text-decoration: none;
}
.btn-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 132, 227, 0.4);
    color: #fff;
}

/* Mobilde Düzenleme */
@media (max-width: 768px) {
    .sticky-action-bar {
        width: 100%; /* Mobilde tam genişlik */
        left: 0;
        padding: 0 20px;
        bottom: 0; /* Bazı mobil tarayıcılarda address bar sorunu için */
    }
    .action-bar-info { display: none; } /* Mobilde sol tarafı gizle, yer kalsın */
    .action-bar-buttons { width: 100%; justify-content: space-between; }
    .btn-action-primary { flex: 1; justify-content: center; }
}
/* --- HEADER KULLANICI ALANI --- */
.user-info {
    position: relative;
    margin-left: auto;
}

.admin-profile-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 30px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.admin-profile-trigger:hover {
    background: #f8f9fa;
    border-color: #e9ecef;
}

.admin-profile-trigger .meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.admin-profile-trigger .name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.admin-profile-trigger .role {
    font-size: 0.75rem;
    color: #95a5a6;
}

.avatar-wrapper {
    position: relative;
    width: 42px;
    height: 42px;
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #2ecc71;
    border: 2px solid #fff;
    border-radius: 50%;
}

.arrow-icon {
    font-size: 0.8rem;
    color: #b2bec3;
    transition: transform 0.2s;
}

/* --- DROPDOWN MENU --- */
.profile-dropdown {
    position: absolute;
    top: 65px;
    right: 0;
    width: 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid #f1f2f6;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-top: 1px solid #f1f2f6;
    border-left: 1px solid #f1f2f6;
}

.dropdown-head {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #ececec;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-card img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.user-card div {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-card strong {
    font-size: 0.95rem;
    color: #2d3436;
    white-space: nowrap;
}

.user-card small {
    font-size: 0.75rem;
    color: #636e72;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-body {
    padding: 10px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 8px;
    color: #636e72;
    font-size: 0.9rem;
    transition: 0.2s;
}

.dropdown-item:hover {
    background: #f1f2f6;
    color: var(--active-color);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-item.danger:hover {
    background: #fff5f5;
    color: #e74c3c;
}

hr {
    border: 0;
    border-top: 1px solid #f1f2f6;
    margin: 35px 0;
}

/* --- PROFİL SAYFASI TASARIMI --- */
.profile-cover {
    height: 180px;
    background: linear-gradient(135deg, var(--active-color) 0%, #0984e3 100%);
    border-radius: 15px 15px 0 0;
    position: relative;
    margin-bottom: 60px;
}

.profile-header-content {
    position: absolute;
    bottom: -50px;
    left: 40px;
    display: flex;
    align-items: end;
    gap: 25px;
}

.profile-avatar-large {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    object-fit: cover;
    background: #fff;
}

.profile-title-block h1 {
    color: #2d3436;
    margin: 0;
    font-size: 1.8rem;
    padding-bottom: 5px;
}

.profile-title-block p {
    color: #636e72;
    margin: 0;
}

.profile-edit-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 36px;
    height: 36px;
    background: var(--active-color);
    border: 3px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.profile-edit-badge:hover {
    transform: scale(1.1);
    background: #2980b9;
}
/* --- USER ROLE BADGES --- */
.role-badge {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.role-super { background: #f3e5f5; color: #9b59b6; border: 1px solid #e1bee7; }
.role-admin { background: #e3f2fd; color: #3498db; border: 1px solid #bbdefb; }
.role-editor { background: #fdf6ec; color: #f39c12; border: 1px solid #ffe0b2; }

/* Status Toggle Görünümü (Tablo İçi) */
.status-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}
.status-active { background: #2ecc71; box-shadow: 0 0 5px rgba(46, 204, 113, 0.4); }
.status-passive { background: #e74c3c; box-shadow: 0 0 5px rgba(231, 76, 60, 0.4); }

.user-list-avatar {
    width: 40px; height: 40px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
/* --- AYARLAR SAYFASI STİLLERİ (Settings Page) --- */

/* İkonlu Input Alanları (Facebook, Instagram vb.) */
.icon-input {
    position: relative;
}

.icon-input i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #b2bec3;
    font-size: 1.1rem;
    pointer-events: none; /* İkon tıklamayı engellemesin */
    z-index: 2;
}

.icon-input .form-control {
    padding-left: 45px;
}

/* Salt Okunur (Disabled) Alan Stilleri */
input[disabled], 
textarea[disabled], 
select[disabled] {
    background-color: #f8f9fa !important;
    color: #7f8c8d !important;
    cursor: not-allowed;
    border-color: #eee !important;
    opacity: 1; /* Bazı tarayıcılarda solukluğu düzeltir */
}

/* Yapışkan (Sticky) Kaydet Kartı */
.sticky-top-card {
    position: -webkit-sticky; /* Safari için */
    position: sticky;
    top: 90px; /* Header yüksekliğine göre ayarlayın */
    z-index: 90;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #e1e8ed;
}

/* Logo Önizleme Kutusu */
.logo-preview-box {
    background: #f1f2f6; 
    padding: 20px; 
    border-radius: 8px;
    border: 1px dashed #ced6e0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.favicon-preview-box {
    width: 64px; 
    height: 64px; 
    margin: 0 auto;
    background: #fff;
    border: 1px dashed #ced6e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* --- AYARLAR SAYFASI İÇİN EKLEMELER (admin.css en altına ekle) --- */

/* Ayarlar Kartı */
.settings-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    min-height: 600px;
}

/* Favicon Önizleme */
.favicon-box {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border: 2px dashed #dfe6e9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}
.favicon-box img {
    max-width: 40px;
    height: auto;
}

/* Tablo veya Liste Görünümü için ince ayar */
.settings-row {
    display: flex;
    align-items: start;
    gap: 30px;
}
@media (max-width: 992px) {
    .settings-row { flex-direction: column; }
}
/* SEO & Liste Görünümü Ek Stilleri - Duplicate kaldırıldı */
/* --- NOTIFICATIONS (BİLDİRİMLER) --- */
.notification-wrapper {
    position: relative;
}

.notification-icon {
    width: 42px;
    height: 42px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #636e72;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.notification-icon:hover {
    background: #f1f2f6;
    color: #2980b9;
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* Dropdown */
.notification-dropdown {
    position: absolute;
    top: 55px;
    right: -60px; /* Mobilde taşmasın diye sağa hizalama ayarı */
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid #f1f2f6;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    z-index: 1001;
}

.notification-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 74px; /* Oku ikonun altına hizala */
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-top: 1px solid #f1f2f6;
    border-left: 1px solid #f1f2f6;
}

.dropdown-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f2f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #2d3436;
}

.dropdown-header .mark-read {
    font-size: 0.75rem;
    color: #3498db;
    cursor: pointer;
    font-weight: 400;
}

.dropdown-body {
    max-height: 350px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 20px;
    border-bottom: 1px solid #f8f9fa;
    transition: 0.2s;
    gap: 15px;
}

.notif-item:hover {
    background: #f9fbff !important;
}

.notif-icon-box {
    font-size: 1.1rem;
    padding-top: 2px;
}

.notif-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #2d3436;
    line-height: 1.4;
}

.notif-content span {
    font-size: 0.75rem;
    color: #b2bec3;
    display: block;
    margin-top: 5px;
}

.no-notif {
    padding: 30px;
    text-align: center;
    color: #b2bec3;
}
.no-notif i { font-size: 2rem; margin-bottom: 10px; opacity: 0.5; }
/* =========================================
   18. YENİ SAYFA YAPISI VE AĞAÇ GÖRÜNÜMÜ
   ========================================= */

/* Seçim Kartları (Dil ve Bölüm Seçimi) */
.selection-card {
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    background: var(--white);
    border-radius: var(--radius);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.selection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--active-color);
}

.selection-card:hover .selection-icon {
    transform: scale(1.1);
    color: var(--active-color);
}

.selection-body {
    padding: 40px 20px;
    text-align: center;
}

.selection-icon {
    font-size: 3rem;
    color: #b2bec3;
    margin-bottom: 20px;
    transition: 0.3s;
}

.selection-flag {
    font-size: 4rem;
    margin-bottom: 15px;
    display: block;
}

/* Ağaç Yapısı (Tree View) */
.structure-tree ul {
    list-style: none;
    padding-left: 0;
}

/* Alt elemanlar için girinti ve çizgi */
.structure-tree ul ul {
    padding-left: 30px;
    border-left: 2px dashed #e1e8ed;
    margin-left: 15px; /* İkon ortasına denk gelsin diye */
}

.structure-item {
    margin-bottom: 10px;
    position: relative;
}

/* Yatay bağlantı çizgisi */
.structure-tree ul ul .structure-item::before {
    content: '';
    position: absolute;
    top: 25px; /* Kartın ortasına denk gelecek şekilde */
    left: -32px;
    width: 30px;
    height: 2px;
    background: #e1e8ed;
}

.item-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.item-card:hover {
    border-color: var(--active-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.item-handle {
    color: #dfe6e9;
    cursor: grab;
    margin-right: 15px;
    font-size: 1.1rem;
}
.item-handle:hover { color: var(--text-dark); }

.item-icon-box {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    margin-right: 15px;
    font-size: 1.1rem;
}

.item-info h6 {
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
}

.item-info small {
    color: var(--text-light);
    font-size: 0.8rem;
}

.item-actions {
    display: flex;
    gap: 5px;
}

/* =========================================
   19. PAGE FORM (SAYFA DÜZENLEME FORMU)
   ========================================= */

/* Breadcrumb Kutusu */
.breadcrumb-box {
    background: var(--white);
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.breadcrumb-box nav {
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb-box a {
    color: var(--active-color);
}

.breadcrumb-box a:hover {
    text-decoration: underline;
}

.breadcrumb-box .separator {
    color: #ddd;
}

.breadcrumb-box .current {
    color: #666;
    font-weight: 600;
}

/* URL Input Group */
.url-input-group {
    display: flex;
    align-items: center;
}

.url-input-group .url-prefix {
    background: #f1f2f6;
    border: 1px solid var(--border-color);
    border-right: none;
    padding: 12px 15px;
    border-radius: 8px 0 0 8px;
    color: #666;
    font-size: 0.9rem;
    white-space: nowrap;
}

.url-input-group .form-control {
    border-radius: 0 8px 8px 0;
}

/* İkon Seçici */
.icon-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.icon-preview-box {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #999;
    transition: 0.2s;
}

.icon-preview-box.active {
    color: var(--active-color);
    border-color: var(--active-color);
}

.icon-picker-panel {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e1e8ed;
    display: none;
}

.icon-picker-panel.show {
    display: block;
}

.icon-picker-panel .panel-title {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 8px;
}

.icon-pick-btn {
    width: 45px;
    height: 45px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    color: #636e72;
}

.icon-pick-btn:hover {
    border-color: var(--active-color);
    background: #e3f2fd;
    transform: translateY(-2px);
}

.icon-pick-btn.selected {
    border-color: var(--active-color);
    background: #e3f2fd;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.3);
}

/* SEO Karakter Sayacı */
.char-counter {
    float: right;
    font-size: 0.8rem;
    color: #999;
}

.char-counter.warning {
    color: #f39c12;
}

.char-counter.danger {
    color: #e74c3c;
}

/* Google Önizleme */
.google-preview {
    background: var(--white);
    border: 1px solid #dfe1e5;
    border-radius: 8px;
    padding: 15px;
    font-family: Arial, sans-serif;
    margin-top: 15px;
}

.google-preview .g-url {
    color: #202124;
    font-size: 14px;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.google-preview .g-favicon {
    background: #f1f2f6;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
}

.google-preview .g-title {
    color: #1a0dab;
    font-size: 18px;
    line-height: 1.3;
    display: block;
    margin-bottom: 3px;
    cursor: pointer;
}

.google-preview .g-title:hover {
    text-decoration: underline;
}

.google-preview .g-desc {
    color: #4d5156;
    font-size: 13px;
    line-height: 1.5;
}

/* Tip Bilgisi Kutusu */
.type-info-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--active-color);
}

.type-info-box .type-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.type-info-box .type-content h5 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: var(--text-dark);
}

.type-info-box .type-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.active {
    background: #e6fffa;
    color: #00b894;
}

.status-badge.draft {
    background: #fff5f5;
    color: #e74c3c;
}

/* İpuçları Listesi */
.tips-list {
    margin: 0;
    padding-left: 18px;
    line-height: 1.8;
    font-size: 0.85rem;
    color: #666;
}

/* Silme Butonu (Action Bar için) */
.btn-action-danger {
    height: 45px;
    padding: 0 20px;
    background: #fff5f5;
    color: #e74c3c;
    border: 1px solid #ffebee;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-action-danger:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
    transform: translateY(-2px);
}

/* Info Table (Bilgi Tablosu) */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid #f1f2f6;
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table td {
    padding: 12px 0;
    font-size: 0.9rem;
}

.info-table td:first-child {
    color: var(--text-light);
}

.info-table td:last-child {
    text-align: right;
    color: var(--text-dark);
}

/* Margin ve Padding Yardımcıları */
.mb-30 { margin-bottom: 30px; }
.mb-20 { margin-bottom: 20px; }
.mb-15 { margin-bottom: 15px; }
.mt-20 { margin-top: 20px; }
.mt-15 { margin-top: 15px; }

/* Text Helpers */
.text-muted { color: var(--text-light) !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Grid Compact (2 Kolon) - Sadece page-form için */
.form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   20. PAGES.PHP - SAYFA YÖNETİMİ STİLLERİ
   ========================================= */

/* Dil Seçimi Kartları */
.language-selector {
    display: flex;
    gap: 20px;
    padding: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.language-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 50px;
    background: #f8f9fa;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.language-card:hover {
    border-color: var(--active-color);
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.language-flag {
    font-size: 3rem;
    margin-bottom: 10px;
}

.language-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Bölüm Seçimi Kartları */
.section-selector {
    display: flex;
    gap: 20px;
    padding: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.section-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 40px;
    background: #f8f9fa;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    min-width: 150px;
}

.section-card:hover {
    border-color: var(--active-color);
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.section-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

/* Kategori Tablosu */
.category-table {
    width: 100%;
    border-collapse: collapse;
}

.category-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid var(--border-color);
}

.category-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-table td {
    padding: 5px 5px;
    border-bottom: 1px solid #f1f2f6;
    vertical-align: middle;
}

.category-table tbody tr {
    transition: background 0.2s;
}

.category-table tbody tr:hover {
    background: #f8fbff;
}

.category-row-clickable {
    cursor: pointer;
}

.category-row-clickable:hover {
    background: #eef6fc !important;
}

/* Kategori Başlık Yapısı */
.category-title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.category-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.category-subtitle {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 3px;
}

/* Tip Badge'leri */
.badge-page {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-dropdown {
    background: #fff8e1;
    color: #f57c00;
}

.badge-link {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-button {
    background: #fce4ec;
    color: #c2185b;
}

.badge-dynamic {
    background: #ede7f6;
    color: #7b1fa2;
}

/* Dinamik Öğe Notu */
.dynamic-item-note {
    font-size: 0.75rem;
    color: #7b1fa2;
    font-weight: 400;
    margin-left: 8px;
}

/* Boş Durum Gösterimi */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 20px;
    display: block;
}

.empty-state h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 0.9rem;
}

/* Ekleme Butonu */
.btn-add {
    background: #e8f5e9;
    color: #2e7d32;
}

.btn-add:hover {
    background: #2e7d32;
    color: white;
}

/* Breadcrumb Stilleri (pages.php için) */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb-item {
    color: var(--active-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.breadcrumb-item:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #ddd;
    margin: 0 5px;
}

/* =====================================================
   DİNAMİK İÇERİK STİLLERİ
   ===================================================== */

/* Dinamik İçerik Bilgi Kutusu */
.dynamic-content-info {
    margin-top: 10px;
}

.info-box {
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.info-box i {
    font-size: 1.1rem;
}

.info-box.info-muted {
    background: #f5f5f5;
    color: #888;
    border: 1px solid #e0e0e0;
}

.info-box.info-success {
    background: linear-gradient(135deg, #667eea15, #764ba215);
    color: #5a5a8a;
    border: 1px solid #667eea40;
}

/* Footer Submenu Badge */
.badge-submenu {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

/* Dinamik satır hover */
tr[style*="f8f9ff"]:hover,
tr[style*="linear-gradient"]:hover {
    background: linear-gradient(90deg, #ede7f6 0%, #fff 100%) !important;
}
/* =====================================================
   BLOG YÖNETİMİ CSS KODLARI
   Bu kodları admin/assets/css/admin.css dosyasının SONUNA ekleyin
   ===================================================== */

/* =========================
   BLOG ADMIN GENEL
   ========================= */

.admin-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.card-header-custom {
    padding: 25px 30px;
    border-bottom: 2px solid #f8f9fa;
}

.card-header-custom h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
}

.card-header-custom p {
    margin: 5px 0 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* =========================
   İSTATİSTİK KARTLARI
   ========================= */

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s;
    border-left: 4px solid #3498db;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* =========================
   TABLO STİLLERİ
   ========================= */

.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.table thead {
    background: #f8f9fa;
}

.table th {
    border: none;
    padding: 15px;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-align: left;
}

.table td {
    padding: 15px;
    vertical-align: middle;
    border-top: 1px solid #ecf0f1;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

/* =========================
   FORM STİLLERİ
   ========================= */

.form-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid #ecf0f1;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--active-color);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: block;
}

.form-control,
.form-select {
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s;
    width: 100%;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--active-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.25em;
}

.form-check-label {
    margin-left: 0.5rem;
}

.text-danger {
    color: #e74c3c;
}

.text-muted {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* =========================
   BUTON STİLLERİ
   ========================= */

.btn {
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--active-color);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

.btn-group {
    display: inline-flex;
    gap: 5px;
}

/* =========================
   BADGE STİLLERİ
   ========================= */

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.bg-success {
    background: #2ecc71;
    color: white;
}

.bg-danger {
    background: #e74c3c;
    color: white;
}

.bg-warning {
    background: #f39c12;
    color: white;
}

.bg-info {
    background: #3498db;
    color: white;
}

/* =========================
   UTILITY CLASSES
   ========================= */

.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-end { justify-content: flex-end; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }

.text-center { text-align: center; }
.w-100 { width: 100%; }

.border-top { border-top: 1px solid #ecf0f1; }

.img-thumbnail {
    border: 1px solid #ecf0f1;
    border-radius: 8px;
}

/* =========================
   RESPONSIVE GRID
   ========================= */

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.col-md-3,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-8 {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.333%; }
    .col-md-5 { width: 41.666%; }
    .col-md-6 { width: 50%; }
    .col-md-8 { width: 66.666%; }
}

/* =========================
   INPUT GROUP
   ========================= */

.input-group {
    display: flex;
}

.input-group .form-control {
    border-radius: 0 8px 8px 0;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 2px solid #ecf0f1;
    border-right: none;
    border-radius: 8px 0 0 8px;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .d-flex.gap-2,
    .d-flex.gap-3 {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}
/* =========================================
   BLOGS.PHP - DASHBOARD & LISTE STİLLERİ
   ========================================= */

/* 1. DASHBOARD IZGARA YAPISI (4 Yan Yana) */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

/* Mobil Uyumluluk */
@media (max-width: 1200px) {
    .dashboard-stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
    .dashboard-stats-grid { grid-template-columns: 1fr; }
}

/* 2. KART TASARIMI */
.d-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid #e3e6f0;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.d-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Sol Kenar Renkleri */
.d-stat-card.bs-primary { border-left: 5px solid #4e73df; }
.d-stat-card.bs-success { border-left: 5px solid #1cc88a; }
.d-stat-card.bs-info    { border-left: 5px solid #36b9cc; }
.d-stat-card.bs-warning { border-left: 5px solid #f6c23e; }

/* Yazı Alanı */
.d-stat-info { z-index: 2; width: 100%; }

.d-stat-info h5 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    color: #858796;
}

.d-stat-info h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #5a5c69;
    margin: 0;
    line-height: 1.2;
}

/* İkon Alanı */
.d-stat-icon {
    width: 50px; height: 50px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* İkon Arkaplan Renkleri */
.bg-light-primary { background: #f0f4ff; color: #4e73df; }
.bg-light-success { background: #eafff5; color: #1cc88a; }
.bg-light-info    { background: #f0fbff; color: #36b9cc; }
.bg-light-warning { background: #fffbf0; color: #f6c23e; }

/* 3. FİLTRE SELECT KUTULARI (Header İçin) */
.filter-select {
    border-radius: 20px;
    padding-left: 15px;
    border-color: #e3e6f0;
    font-weight: 600;
    color: #555;
    height: 34px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
    background-color: #f8f9fc;
    min-width: 140px; /* Genişlik ayarı */
}

.filter-select:hover {
    border-color: #4e73df;
    background-color: #fff;
}

.filter-select:focus {
    box-shadow: none;
    border-color: #4e73df;
}

/* 4. TABLO RESİM KUTUSU */
.table-img-box {
    width: 70px; height: 50px;
    background: #f8f9fc;
    border-radius: 6px;
    border: 1px solid #eaecf4;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.table-img { width: 100%; height: 100%; object-fit: cover; }
.table-no-img { color: #d1d3e2; font-size: 1.2rem; }
/* =========================================
   BLOG FİLTRELEME & FORM STİLLERİ (PREMIUM)
   ========================================= */

/* Filtreleri Tutan Kapsayıcı */
.blog-filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Modern Select Kutusu */
.admin-custom-select {
    display: inline-block;
    width: auto;
    min-width: 160px;
    padding: 8px 35px 8px 15px; /* Sağdan boşluk ikon için */
    font-size: 0.85rem;
    font-weight: 600;
    color: #6e707e;
    vertical-align: middle;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 10px 10px; /* Ok ikonu boyutu */
    border: 1px solid #d1d3e2;
    border-radius: 50px; /* Tam yuvarlak (Pill) */
    appearance: none; /* Varsayılan tarayıcı stilini kapat */
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    line-height: 1.5;
}

/* Hover ve Focus Durumları */
.admin-custom-select:hover {
    border-color: #b7b9cc;
    background-color: #f8f9fc;
}

.admin-custom-select:focus {
    border-color: #4e73df; /* Tema mavisi */
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
    color: #4e73df;
}

/* Temizle Butonu */
.btn-filter-clear {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e3e6f0;
    background: #fff;
    color: #e74c3c;
    transition: 0.2s;
}
.btn-filter-clear:hover {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}
/* --- BLOG FORM ÖZEL STİLLERİ --- */

/* Form Elemanları */
.form-label-lg { font-size: 1.1rem; font-weight: 600; color: #2c3e50; margin-bottom: 0.5rem; display: block; }

/* URL Input Grubu */
.url-input-group { display: flex; align-items: center; background: #eee; border: 1px solid #ced4da; border-radius: 0.375rem; overflow: hidden; }
.url-prefix { padding: 0 12px; color: #6c757d; font-size: 0.9rem; white-space: nowrap; font-weight: 500; }
.url-input-group .form-control { border: none !important; border-left: 1px solid #ced4da !important; border-radius: 0; box-shadow: none !important; }

/* İkonlu Inputlar */
.input-icon-group { position: relative; }
.input-icon-group i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #6c757d; z-index: 2; }
.input-icon-group .form-control { padding-left: 35px; }

/* Görsel Yükleme Alanı */
.image-upload-preview { position: relative; width: 100%; min-height: 200px; background: #f8f9fa; border: 2px dashed #dee2e6; border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 15px; }
.image-upload-preview img { max-width: 100%; height: auto; display: block; }
.no-image-placeholder { text-align: center; color: #adb5bd; }
.no-image-placeholder i { display: block; font-size: 3rem; margin-bottom: 10px; }

/* Google Önizleme Kutusu */
.google-preview { background: #fff; padding: 15px; border: 1px solid #dfe1e5; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.g-url { color: #202124; font-size: 14px; margin-bottom: 2px; line-height: 1.3; }
.g-title { color: #1a0dab; font-size: 20px; text-decoration: none; display: block; margin-bottom: 3px; line-height: 1.3; cursor: pointer; }
.g-title:hover { text-decoration: underline; }
.g-desc { color: #4d5156; font-size: 14px; line-height: 1.58; word-wrap: break-word; }

/* Karakter Sayaçları */
.char-counter { float: right; font-size: 0.75rem; font-weight: 600; color: #95a5a6; }
.char-counter.text-danger { color: #e74c3c !important; }

/* Bilgi Tablosu */
.info-table { width: 100%; font-size: 0.85rem; border-collapse: collapse; }
.info-table td { padding: 8px 0; border-bottom: 1px solid #eee; color: #555; }
.info-table td:last-child { text-align: right; color: #2c3e50; }
.info-table tr:last-child td { border-bottom: none; }

/* --- BLOG FORM & GALERİ STİLLERİ --- */

/* Form Elemanları */
.form-label-lg { font-size: 1.1rem; font-weight: 600; color: #2c3e50; margin-bottom: 0.5rem; display: block; }
.url-input-group { display: flex; align-items: center; background: #eee; border: 1px solid #ced4da; border-radius: 0.375rem; overflow: hidden; }
.url-prefix { padding: 0 12px; color: #6c757d; font-size: 0.9rem; white-space: nowrap; font-weight: 500; }
.url-input-group .form-control { border: none !important; border-left: 1px solid #ced4da !important; border-radius: 0; box-shadow: none !important; }

/* Galeri Yükleme Alanı */
.gallery-upload-area { background: #f8f9fa; padding: 30px 20px; border: 2px dashed #dee2e6; border-radius: 8px; text-align: center; margin-bottom: 1rem; transition: all 0.2s ease; cursor: pointer; }
.gallery-upload-area:hover { background: #fff; border-color: #3498db; box-shadow: 0 0 10px rgba(52, 152, 219, 0.1); }
.gallery-upload-icon { font-size: 32px; color: #3498db; margin-bottom: 10px; display: block; }

/* Galeri Grid Görünümü */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin-top: 15px; }
.gallery-item { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid #dee2e6; aspect-ratio: 1; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.btn-delete-img { position: absolute; top: 5px; right: 5px; background: rgba(231, 76, 60, 0.95); color: white; border: none; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; transition: all 0.2s; z-index: 10; }
.btn-delete-img:hover { background: #c0392b; transform: scale(1.1); }

/* Kapak Görseli Önizleme */
.image-upload-preview { position: relative; width: 100%; min-height: 200px; background: #f8f9fa; border: 2px dashed #dee2e6; border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 15px; }
.image-upload-preview img { max-width: 100%; height: auto; display: block; }
.no-image-placeholder { text-align: center; color: #adb5bd; }
.no-image-placeholder i { display: block; font-size: 3rem; margin-bottom: 10px; }

/* Google Önizleme & SEO */
.google-preview { background: #fff; padding: 15px; border: 1px solid #dfe1e5; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.g-url { color: #202124; font-size: 14px; margin-bottom: 2px; line-height: 1.3; }
.g-title { color: #1a0dab; font-size: 20px; text-decoration: none; display: block; margin-bottom: 3px; line-height: 1.3; cursor: default; }
.g-desc { color: #4d5156; font-size: 14px; line-height: 1.58; word-wrap: break-word; }
.char-counter { float: right; font-size: 0.75rem; font-weight: 600; color: #95a5a6; }

/* Custom Modal */
.custom-modal { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); align-items: center; justify-content: center; backdrop-filter: blur(2px); }
.modal-content { background: #fff; width: 90%; max-width: 450px; padding: 0; border-radius: 10px; box-shadow: 0 20px 40px rgba(0,0,0,0.3); animation: slideInModal 0.3s ease-out; }
@keyframes slideInModal { from {transform: translateY(-30px); opacity: 0;} to {transform: translateY(0); opacity: 1;} }
.modal-header { padding: 15px 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; background: #f8f9fa; border-radius: 10px 10px 0 0; }
.modal-header h4 { margin: 0; font-size: 1.1rem; color: #333; font-weight: 600; }
.close-modal { cursor: pointer; font-size: 24px; color: #aaa; line-height: 1; transition: color 0.2s; }
.close-modal:hover { color: #e74c3c; }
.modal-body { padding: 20px; }
.modal-footer { padding: 15px 20px; border-top: 1px solid #eee; text-align: right; background: #fff; border-radius: 0 0 10px 10px; display: flex; justify-content: flex-end; gap: 10px; }
.info-table { width: 100%; font-size: 0.85rem; border-collapse: collapse; }
.info-table td { padding: 8px 0; border-bottom: 1px solid #eee; color: #555; }
.info-table td:last-child { text-align: right; color: #2c3e50; font-weight: 600; }
/* --- KATEGORİ YÖNETİCİSİ STİLLERİ --- */
.cat-manager-wrapper { padding: 10px 0; }
.cat-input-group { display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.cat-input-group input { flex: 1; border-radius: 6px; border: 1px solid #ddd; padding: 10px; }

.cat-list { list-style: none; padding: 0; margin: 0; max-height: 400px; overflow-y: auto; }
.cat-item { display: flex; align-items: center; justify-content: space-between; background: #f8f9fa; padding: 12px 15px; margin-bottom: 8px; border-radius: 8px; border: 1px solid #eee; transition: all 0.2s; }
.cat-item:hover { background: #fff; border-color: #3498db; box-shadow: 0 3px 6px rgba(0,0,0,0.05); }
.cat-name { font-weight: 600; color: #2c3e50; font-size: 0.95rem; }
.cat-actions { display: flex; gap: 8px; }
.btn-cat-action { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: none; cursor: pointer; transition: all 0.2s; color: white; }
.btn-cat-edit { background-color: #f39c12; }
.btn-cat-edit:hover { background-color: #d35400; }
.btn-cat-delete { background-color: #e74c3c; }
.btn-cat-delete:hover { background-color: #c0392b; }

/* Kategori Butonu (Filter Yanındaki) */
.btn-manage-cats { background: #6c757d; color: white; border: none; padding: 0 15px; border-radius: 6px; height: 38px; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; transition: background 0.2s; }
.btn-manage-cats:hover { background: #5a6268; }


