﻿:root {
    /* Primary Emerald */
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-dark: #047857;
    --primary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    /* Luxury Accents */
    --gold: #D4AF37;
    --gold-soft: #FFF8E1;
    --deep-oil: #022C22;
    --deep-oil-medium: #064E3B;
    /* Neutral */
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #111827;
    --text-secondary: #6b7280;
    --muted: #9ca3af;
    --border: #e5e7eb;
    /* Status */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    /* Shadows */
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 18px 45px rgba(15, 23, 42, 0.10);
}

* {
    font-family: 'Cairo', "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* Top Navbar - Deep Corporate */
.top-navbar {
    background: linear-gradient(135deg, var(--deep-oil) 0%, var(--deep-oil-medium) 100%);
    box-shadow: 0 10px 30px rgba(2, 44, 34, 0.25);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white !important;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Navigation Links */
.navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 600;
    border-radius: 9999px;
    padding: 0.65rem 1.1rem;
    transition: all 0.25s ease;
}

    .navbar .nav-link:hover,
    .navbar .nav-link.active {
        color: white !important;
        background: rgba(255,255,255,0.15);
        transform: translateY(-1px);
    }

/* Page Container & Surface */
.page-container {
    padding: 2rem 1.5rem;
    max-width: 100%;
}

.page-surface {
    background: var(--surface);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 2rem;
    border: 1px solid var(--border);
    min-height: calc(100vh - 180px);
}

/* Glass Cards */
.glass-card, .card, .stat-card {
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(229,231,235,0.8);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(16px);
}

    .glass-card:hover, .card:hover, .stat-card:hover {
        box-shadow: var(--shadow-hover);
        transform: translateY(-4px);
    }

/* Buttons */
.btn {
    border-radius: 9999px;
    font-weight: 700;
    padding: 0.65rem 1.4rem;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.25);
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #059669 0%, #047857 100%);
        transform: translateY(-2px);
        box-shadow: 0 15px 35px rgba(16, 185, 129, 0.35);
    }

.btn-gold {
    background: var(--gold);
    color: #1f2937;
    border: none;
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

    .btn-outline-primary:hover {
        background: var(--primary);
        color: white;
    }

/* Forms */
.form-control, .form-select {
    border-radius: 14px;
    border: 1.5px solid #e5e7eb;
    padding: 0.75rem 1rem;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
    }

/* Tables */
.table thead th {
    background: #f8fafc;
    color: var(--deep-oil);
    font-weight: 700;
    padding: 1rem;
    white-space: nowrap;
}

.table tbody tr:hover {
    background-color: rgba(16, 185, 129, 0.05) !important;
}

/* Badges */
.badge-success-soft {
    background: #ecfdf5;
    color: var(--success);
    font-weight: 700;
}

/* Status Dot */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

/* Footer */
.app-footer {
    padding: 1.5rem 2rem;
    color: var(--muted);
    font-size: 0.95rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

/* Responsive */
@media (max-width: 992px) {
    .page-container {
        padding: 1rem;
    }

    .page-surface {
        padding: 1.25rem;
        border-radius: 18px;
    }
}
