/* --- TEMEL AYARLAR VE RENK PALETİ --- */
:root {
    --bg-dark: #121418;
    --bg-card: #1e2229;
    --text-main: #e4e6eb;
    --text-muted: #a0a5b1;
    --premium-gold: #f39c12;
    --success-green: #2ecc71;
    --danger-red: #e74c3c;
    --border-color: #2c313a;
    --header-height: 70px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: var(--header-height);
}

a { text-decoration: none; color: inherit; }

/* --- SABİT HEADER (ÜST MENÜ) --- */
.header {
    position: fixed; top: 0; left: 0; right: 0; height: var(--header-height);
    background: var(--bg-card); padding: 0 30px; display: flex;
    justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5); z-index: 1000; box-sizing: border-box;
}
.header-left { display: flex; align-items: center; gap: 15px; }
.header h2 { margin: 0; color: var(--premium-gold); letter-spacing: 1px; font-size: 22px; }

.menu-toggle {
    display: none; font-size: 24px; color: var(--text-main);
    cursor: pointer; background: none; border: none; padding: 0;
}

/* --- DÜZEN VE KONTEYNER --- */
.layout-wrapper {
    display: flex; flex: 1; max-width: 1200px; margin: 20px auto;
    width: 100%; gap: 20px; padding: 0 15px; box-sizing: border-box;
    align-items: flex-start; /* Sidebar'ın uzamasını engeller */
}

/* --- SOL MENÜ (SIDEBAR) --- */
.sidebar {
    flex-shrink: 0; /* Sidebar'ın sıkışmasını engeller */
    width: 250px; background: var(--bg-card); padding: 20px;
    border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    position: sticky; top: calc(var(--header-height) + 20px);
    z-index: 900; transition: left 0.3s ease;
}

.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-list li { margin-bottom: 10px; }
.menu-list a {
    display: flex; align-items: center; gap: 12px; padding: 12px 15px;
    border-radius: 8px; color: var(--text-muted); font-weight: 500; transition: 0.3s;
}
.menu-list a i { font-size: 18px; width: 20px; text-align: center; }
.menu-list a:hover { background: var(--border-color); color: var(--text-main); transform: translateX(5px); }
.menu-list a.btn-premium { background: linear-gradient(45deg, var(--premium-gold), #f1c40f); color: #000; font-weight: bold; justify-content: center; }
.menu-list a.btn-premium:hover { transform: translateY(-2px); }

.sidebar-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); z-index: 899; }

/* --- ANA İÇERİK VE KARTLAR --- */
.main-content { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.card { background: var(--bg-card); padding: 25px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); border: 1px solid var(--border-color); }

/* --- İSTATİSTİK KARTLARI --- */
.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.stat-box { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-color); padding: 20px; border-radius: 10px; display: flex; align-items: center; gap: 15px; }
.stat-icon { font-size: 30px; color: var(--premium-gold); background: rgba(243, 156, 18, 0.1); width: 60px; height: 60px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.stat-info h4 { margin: 0; color: var(--text-muted); font-size: 14px; font-weight: normal; }
.stat-info span { font-size: 24px; font-weight: bold; color: var(--text-main); }

/* --- DURUM MESAJLARI --- */
.alert-box { padding: 20px; border-radius: 10px; display: flex; align-items: flex-start; gap: 15px; }
.alert-box i { font-size: 24px; margin-top: 2px; }
.alert-premium { background: rgba(46, 204, 113, 0.1); border: 1px solid var(--success-green); color: var(--success-green); }
.alert-standard { background: rgba(231, 76, 60, 0.1); border: 1px solid var(--danger-red); color: var(--danger-red); }

/* --- FOOTER --- */
.footer { background: var(--bg-card); border-top: 1px solid var(--border-color); padding: 20px; text-align: center; color: var(--text-muted); font-size: 14px; margin-top: auto; }

/* --- TABLET VE MOBİL UYUMLULUK (1024px ve altı) --- */
@media (max-width: 1024px) {
    .header { padding: 0 15px; }
    .header-right { display: none; }
    .menu-toggle { display: block; }
    
    .layout-wrapper { flex-direction: column; margin: 10px auto; }
    
    /* Sidebar'ı Gizle ve Çekmece (Off-canvas) Yap */
    .sidebar {
        position: fixed; left: -280px; top: var(--header-height);
        width: 250px; height: calc(100vh - var(--header-height));
        margin: 0; border-radius: 0; border: none; border-right: 1px solid var(--border-color);
        z-index: 950; overflow-y: auto;
    }
    .sidebar.active { left: 0; }
    .sidebar-overlay.active { display: block; }
    .card { padding: 15px; }
    .stat-box { padding: 15px; }
}
