/**
 * CAFÉNET - Ultra-Minimalist & Luxury Admin Dashboard CSS
 * Top-Navbar Layout, Pixel-Perfect, High Contrast & 100% Mobile Responsive
 */

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

:root {
    --admin-bg: #07090e;
    --admin-surface: #0b0f19;
    --admin-card: #0f1422;
    --admin-card-hover: #141a2c;
    
    --admin-purple: #8b5cf6;
    --admin-purple-light: #a78bfa;
    --admin-purple-glow: rgba(139, 92, 246, 0.18);
    
    --admin-orange: #f97316;
    --admin-orange-hover: #ea580c;
    
    --admin-blue: #0284c7;
    --admin-blue-light: #38bdf8;
    
    --admin-green: #10b981;
    --admin-green-light: #34d399;
    
    --admin-red: #f43f5e;
    --admin-red-light: #fb7185;
    
    --border-hairline: rgba(255, 255, 255, 0.06);
    --border-subtle: rgba(255, 255, 255, 0.10);
    --border-focus: rgba(139, 92, 246, 0.45);
    
    /* Bootstrap 5.3 Dark Overrides */
    --bs-body-bg: #07090e;
    --bs-body-color: #e2e8f0;
    --bs-border-color: rgba(255, 255, 255, 0.07);
    --bs-card-bg: #0f1422;
    --bs-card-border-color: rgba(255, 255, 255, 0.07);
    --bs-table-bg: transparent;
    --bs-table-color: #e2e8f0;
    --bs-table-border-color: rgba(255, 255, 255, 0.06);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.025);
    --bs-table-hover-color: #ffffff;
}

body.admin-body {
    background-color: var(--admin-bg) !important;
    color: #e2e8f0 !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    padding-bottom: 0;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ==========================================================================
   1. Üst Navigasyon Menüsü (Top Header Navbar)
   ========================================================================== */
.admin-navbar {
    background: rgba(11, 15, 25, 0.94) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-hairline);
    min-height: 56px;
    padding: 6px 0;
    z-index: 1030;
}

.brand-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--admin-orange);
    box-shadow: 0 0 10px var(--admin-orange);
    display: inline-block;
}

.admin-nav-pill {
    color: #94a3b8 !important;
    font-size: 0.81rem !important;
    font-weight: 500;
    padding: 6px 12px !important;
    border-radius: 7px;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.admin-nav-pill:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05);
}

.admin-nav-pill.active {
    color: #ffffff !important;
    background: rgba(139, 92, 246, 0.16) !important;
    border-color: rgba(139, 92, 246, 0.35) !important;
    font-weight: 600;
}

.admin-nav-pill.dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: 0.15em;
    font-size: 0.72rem;
    opacity: 0.7;
}

/* Dropdown Menüler */
.dropdown-menu-dark {
    background: #0d1220 !important;
    border: 1px solid rgba(139, 92, 246, 0.25) !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7) !important;
    padding: 6px !important;
}

.dropdown-item {
    color: #cbd5e1 !important;
    font-size: 0.79rem !important;
    border-radius: 6px !important;
    padding: 7px 12px !important;
    transition: all 0.14s ease;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background: rgba(139, 92, 246, 0.15) !important;
    color: #ffffff !important;
}

.dropdown-item.active {
    background: var(--admin-orange) !important;
    color: #ffffff !important;
    font-weight: 600;
}

/* ==========================================================================
   2. Ana İçerik Taşıyıcısı (Full Width Admin Main)
   ========================================================================== */
.admin-main {
    margin-left: 0 !important;
    width: 100% !important;
    min-height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ==========================================================================
   3. Kartlar ve İstatistikler
   ========================================================================== */
.admin-card {
    background: var(--admin-card);
    border: 1px solid var(--border-hairline);
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    margin-bottom: 12px;
}

.stat-card {
    background: var(--admin-surface);
    border: 1px solid var(--border-hairline);
    border-radius: 10px;
    padding: 12px 14px;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-subtle);
}

.stat-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0;
}

.stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

/* ==========================================================================
   4. Tablolar (Data Tables)
   ========================================================================== */
.table-responsive {
    border-radius: 8px;
    border: 1px solid var(--border-hairline);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    margin-bottom: 0;
    color: #cbd5e1;
    border-collapse: collapse;
}

.admin-table thead th {
    background: rgba(0, 0, 0, 0.45) !important;
    color: #94a3b8 !important;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border-hairline) !important;
    padding: 8px 10px;
    font-weight: 600;
    white-space: nowrap;
}

.admin-table tbody td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-hairline) !important;
    vertical-align: middle;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.admin-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02) !important;
    color: #ffffff;
}

/* ==========================================================================
   5. Form Elemanları
   ========================================================================== */
.form-control, .form-select {
    background-color: #0b0f19 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f1f5f9 !important;
    font-size: 0.82rem !important;
    padding: 7px 11px !important;
    border-radius: 7px !important;
}

.form-control:focus, .form-select:focus {
    background-color: #0d1322 !important;
    border-color: var(--admin-purple) !important;
    box-shadow: 0 0 0 2.5px rgba(139, 92, 246, 0.22) !important;
    color: #ffffff !important;
}

.form-label {
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 600;
    margin-bottom: 4px;
}

::placeholder {
    color: #475569 !important;
}

/* ==========================================================================
   6. Rozetler (Badges) & Durum Renkleri
   ========================================================================== */
.badge {
    font-weight: 600;
    letter-spacing: 0.01em;
    font-size: 0.72rem;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge.bg-success, .badge.status-free {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.badge.bg-danger, .badge.status-occupied {
    background: rgba(244, 63, 94, 0.15) !important;
    color: #fb7185 !important;
    border: 1px solid rgba(244, 63, 94, 0.3) !important;
}

.badge.bg-warning, .badge.status-reserved {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.badge.bg-primary, .badge.type-ps5 {
    background: rgba(2, 132, 199, 0.15) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(2, 132, 199, 0.3) !important;
}

.badge.bg-secondary {
    background: rgba(100, 116, 139, 0.15) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(100, 116, 139, 0.25) !important;
}

.badge.bg-dark {
    background: #090c13 !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.badge.bg-success-subtle {
    background: rgba(16, 185, 129, 0.14) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

.badge.bg-warning-subtle {
    background: rgba(245, 158, 11, 0.14) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
}

.badge.bg-danger-subtle {
    background: rgba(244, 63, 94, 0.14) !important;
    color: #fb7185 !important;
    border: 1px solid rgba(244, 63, 94, 0.25) !important;
}

/* ==========================================================================
   7. Modallar
   ========================================================================== */
.modal-content {
    background: #0e121e !important;
    border: 1px solid rgba(139, 92, 246, 0.28) !important;
    border-radius: 12px !important;
    color: #f1f5f9 !important;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8) !important;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    padding: 11px 16px !important;
}

.modal-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.modal-body {
    padding: 16px !important;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
    padding: 10px 16px !important;
}

/* ==========================================================================
   8. Butonlar
   ========================================================================== */
.btn-neon-orange {
    background: var(--admin-orange) !important;
    color: #fff !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    padding: 6.5px 14px !important;
    border-radius: 7px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.25) !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.16s ease;
}

.btn-neon-orange:hover {
    background: var(--admin-orange-hover) !important;
    transform: translateY(-1px);
}

.btn-surface {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
    padding: 5.5px 11px !important;
    font-size: 0.78rem !important;
    border-radius: 7px !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-surface:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

.btn-outline-danger {
    border-color: rgba(244, 63, 94, 0.35) !important;
    color: #fb7185 !important;
    font-size: 0.78rem !important;
    padding: 5.5px 10px !important;
    border-radius: 7px !important;
}

.btn-outline-danger:hover {
    background: rgba(244, 63, 94, 0.2) !important;
    color: #fff !important;
}

/* ==========================================================================
   9. Sayfa Başlık Alanı (Admin Page Header)
   ========================================================================== */
.admin-page-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .admin-page-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.admin-page-header h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.admin-page-header p {
    font-size: 0.76rem;
    color: #94a3b8;
    margin-bottom: 0;
}

/* ==========================================================================
   10. MOBİL UYUMLULUK (@media max-width: 768px & 576px)
   ========================================================================== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #0a0d16;
        border: 1px solid var(--border-hairline);
        border-radius: 10px;
        padding: 12px;
        margin-top: 10px;
    }

    .admin-nav-pill {
        width: 100%;
        padding: 8px 12px !important;
    }

    .dropdown-menu-dark {
        background: #0e1320 !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        margin-left: 10px;
        margin-bottom: 6px;
    }
}

@media (max-width: 576px) {
    .admin-table thead th {
        font-size: 0.68rem;
        padding: 6px 8px;
    }

    .admin-table tbody td {
        font-size: 0.75rem;
        padding: 6px 8px;
    }

    .admin-card {
        padding: 10px 12px;
    }

    .stat-card {
        padding: 10px;
    }

    .stat-card h3 {
        font-size: 1.15rem;
    }

    .stat-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .btn-neon-orange {
        font-size: 0.75rem !important;
        padding: 5px 10px !important;
    }

    .btn-surface {
        font-size: 0.74rem !important;
        padding: 4px 8px !important;
    }

    .modal-dialog {
        margin: 8px;
        max-width: calc(100% - 16px);
    }

    .modal-body {
        padding: 12px !important;
    }

    .modal-header, .modal-footer {
        padding: 8px 12px !important;
    }
}

/* ==========================================================================
   11. Termal Fiş & Kasa Raporu Yazdırma (Print Optimization)
   ========================================================================== */
@media print {
    .admin-navbar, 
    .btn, 
    .admin-page-header .d-flex,
    form {
        display: none !important;
    }
    .admin-main {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    body.admin-body {
        background: #ffffff !important;
        color: #111827 !important;
    }
    .admin-card, .stat-card {
        border: 1px solid #e2e8f0 !important;
        background: #ffffff !important;
        color: #111827 !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
    .stat-card h3, .admin-card h6, .admin-card strong {
        color: #111827 !important;
    }
    .admin-table {
        color: #111827 !important;
    }
    .admin-table thead th {
        background: #f8fafc !important;
        color: #334155 !important;
        border-bottom: 2px solid #cbd5e1 !important;
    }
    .admin-table tbody td {
        color: #111827 !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }
    .badge {
        border: 1px solid #94a3b8 !important;
        color: #111827 !important;
        background: #f1f5f9 !important;
    }
}
