/* ==========================================================================
   ZOMBER RANDEVU - PREMIUM LIGHT & DARK THEME MODERN STYLESHEET
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Açık Tema Değişkenleri (Brand Accent: Indigo) */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-soft: rgba(79, 70, 229, 0.08);
    --primary-glow: rgba(79, 70, 229, 0.25);
    --dark: #0c1222;
    --dark-soft: #151d32;
    --bg: #f8fafc;
    --bg-gradient: linear-gradient(160deg, #f8fafc 0%, #eef2ff 50%, #f1f5f9 100%);
    --card: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --neutral: #64748b;
    --border: #e2e8f0;
    
    /* Yuvarlatılmış Köşeler */
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    
    /* Gölgelendirmeler */
    --shadow-sm: 0 2px 8px rgba(12, 18, 34, 0.04);
    --shadow-md: 0 8px 24px rgba(12, 18, 34, 0.06);
    --shadow-lg: 0 16px 40px rgba(12, 18, 34, 0.1);
}

/* 🌙 KOYU TEMA RENK DEĞİŞKENLERİ */
html[data-theme="dark"] {
    --primary: #818cf8;
    --primary-hover: #6366f1;
    --primary-soft: rgba(129, 140, 248, 0.15);
    --primary-glow: rgba(129, 140, 248, 0.3);
    --dark: #f1f5f9;
    --dark-soft: #e2e8f0;
    --bg: #0a0e17;
    --bg-gradient: linear-gradient(160deg, #0a0e17 0%, #111827 50%, #0f172a 100%);
    --card: #1e293b;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --neutral: #94a3b8;
    --border: #334155;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* --- SIFIRLAMA & TEMEL KURALLAR --- */
* {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text);
    font-size: 16px;
    line-height: 1.55;
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- AKILLI ÇOKLU SÜTUNLU KAYDIRMA ÇUBUKLARI --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* --- HEADER --- */
header {
    background: linear-gradient(135deg, var(--dark-soft) 0%, #1e293b 100%);
    color: white;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 64px;
    box-shadow: 0 4px 20px rgba(12, 18, 34, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] header {
    background: linear-gradient(135deg, #0a0e17 0%, #151b28 100%) !important;
}

.menu-btn {
    font-size: 26px;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-btn:hover { background: rgba(255, 255, 255, 0.08); }

.logo {
    font-size: 20px;
    font-weight: 800;
    color: white !important;
    text-decoration: none;
    letter-spacing: -0.5px;
    cursor: pointer;
}
.logo span { color: #818cf8; }

.header-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    padding: 5px 5px 5px 12px;
    border-radius: 50px;
    transition: 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.header-profile-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #818cf8;
}
.header-profile-btn span {
    color: white !important;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.header-avatar {
    width: 32px; height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 10px var(--primary-glow);
}

/* --- SIDEBAR & OVERLAY --- */
.sidebar {
    position: fixed;
    left: -285px;
    top: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #0f172a 0%, #090d16 100%);
    color: white;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 4000;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.25);
}
.sidebar.active { left: 0 !important; }

html[data-theme="dark"] .sidebar {
    background: linear-gradient(180deg, #0a0e17 0%, #111827 100%) !important;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 10px;
}

.sidebar-link {
    display: block;
    padding: 14px;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 700;
    border-radius: var(--radius-sm);
    margin-bottom: 5px;
    cursor: pointer;
    font-size: 15px;
    transition: 0.2s;
}
.sidebar-link:hover, .sidebar-link.active {
    background: var(--primary);
    color: white !important;
}

.sidebar-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(12, 18, 34, 0.5);
    display: none;
    z-index: 3500;
    backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* --- KONTEYNER VE PANEL SİSTEMLERİ --- */
.container {
    padding: 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.panel {
    background: var(--card);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

/* --- YÜKSEK KONTRASTLI BEYAZ KARTLAR (PROFIL & PERSONEL) --- */
.info-card {
    background: var(--card);
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--border);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.info-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}

.info-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
}

/* --- FORMLAR VE GİRDİ ALANLARI --- */
input, select, textarea {
    width: 100%;
    padding: 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    outline: none;
    background-color: var(--card);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

html[data-theme="dark"] select, html[data-theme="dark"] option {
    background-color: var(--card) !important;
    color: var(--text) !important;
}

/* --- BUTON SİSTEMLERİ --- */
.btn {
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 800;
    cursor: pointer;
    padding: 14px 24px;
    transition: 0.2s;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-primary {
    background: var(--primary);
    color: white !important;
    box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-success { background: var(--success); color: white !important; }
.btn-danger { background: var(--danger); color: white !important; }

/* Koyu temada butonların koyu kalmasını önleme kuralları */
html[data-theme="dark"] .btn-primary { background-color: var(--primary) !important; color: #ffffff !important; }
html[data-theme="dark"] .btn-success { background-color: #10b981 !important; color: #ffffff !important; }

/* --- PENCERELER (MODAL) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(12, 18, 34, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5000;
}

.modal-content {
    background: var(--card);
    width: 90%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    padding: 35px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.close-modal {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 20px;
    cursor: pointer;
    border: none;
    background: var(--bg);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: background 0.2s;
}
.close-modal:hover { background: var(--border); }

/* --- TANITIM FOOTER ALANI --- */
footer {
    background: var(--dark-soft);
    color: white;
    padding: 40px 5%;
    margin-top: 60px;
    text-align: center;
}

html[data-theme="dark"] footer {
    background: #0a0e17 !important;
    background-color: #0a0e17 !important;
    border-top: 1px solid var(--border);
}

/* Switch (ayarlar sayfa geçişleri) */
.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cbd5e1;
    border-radius: 28px;
    transition: 0.25s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.25s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider:before { transform: translateX(24px); }