/* 
   DOSYA YOLU: assets/css/admin.css 
   APEX DARK SIDEBAR & MODERN CONTENT AREA
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary: #3b82f6;          /* Apex Electric Blue */
    --sidebar-bg: #0f172a;       /* Deep Dark Navy (Apex Style) */
    --sidebar-hover: #1e293b;
    --sidebar-text: #94a3b8;
    --bg-main: #f8fafc;
    --text-heading: #0f172a;
    --border-light: #e2e8f0;
    --sidebar-width: 260px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    display: flex; /* Sağ ve solu yan yana tutar */
    min-height: 100vh;
}

/* APEX ULTRA DARK SIDEBAR */
:root {
    --apex-nav-bg: #0f172a;       /* Apex Koyu Lacivert */
    --apex-nav-hover: #1e293b;    /* Hafif Açık Lacivert */
    --apex-nav-text: #94a3b8;     /* Muted Gri */
    --apex-nav-active-bg: #3b82f6; /* Apex Parlak Mavi */
    --apex-nav-active-text: #ffffff;
}

.sidebar {
    width: 260px !important;
    height: 100vh !important;
    background-color: var(--apex-nav-bg) !important;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    display: flex !important;
    flex-direction: column;
    z-index: 9999;
    border-right: 1px solid rgba(255, 255, 255, 0.05); /* Çok ince bir sınır */
    padding: 0 !important;
}

.sidebar-logo {
    padding: 32px 24px;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff !important; /* Logo Saf Beyaz */
    letter-spacing: -1px;
    text-transform: uppercase;
}

.sidebar-menu {
    flex: 1;
    padding: 10px 14px;
}

.menu-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--apex-nav-text) !important; /* Yazılar Gri */
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

/* Üzerine gelince */
.menu-item:hover {
    background-color: var(--apex-nav-hover) !important;
    color: #ffffff !important;
}

/* Aktif sayfa */
.menu-item.active {
    background-color: var(--apex-nav-active-bg) !important;
    color: var(--apex-nav-active-text) !important;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3); /* Mavi parlama */
}

/* Sidebar altındaki çıkış butonu alanı */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Sağ tarafın kaymaması için gerekli wrapper */
.main-wrapper {
    margin-left: 260px !important;
    width: calc(100% - 260px);
    flex: 1;
}

/* --- SAĞ İÇERİK ALANI (GİTMESİNİ ENGELLEYEN KISIM) --- */
.main-wrapper {
    margin-left: var(--sidebar-width); /* Sidebar kadar boşluk bırakır */
    flex: 1; /* Geri kalan tüm alanı kaplar */
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 70px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.content-area {
    padding: 40px;
    width: 100%;
}

/* Kartlar ve Inputlar (Önceki Apex stilleri korunuyor) */
.meta-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

input, select, textarea {
    width: 100%;
    max-width: 450px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: #f8fafc;
    font-family: inherit;
    outline: none;
    transition: 0.2s;
    display: block;
}

input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Garson Çağrı Bildirimi (Üst Üste binmesin diye) */
#waiter-call-container {
    position: fixed;
    top: 85px; /* Topbar'ın altında başlasın */
    right: 30px;
    z-index: 2000;
}


/* GİRİŞ SAYFASI ÖZEL AYARLARI */
body.auth-page {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 0 !important; /* Sol menü boşluğunu kaldır */
    height: 100vh !important;
    background-color: #f8fafc !important; /* Apex Arka Plan */
}

body.auth-page .main-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.auth-logo {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.auth-subtitle {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 30px;
}