/* * Modern Dark Dashboard - Design System
 * Features: Glassmorphism, Neon Accents, Compact UI
 *
 * ICONS REFERENCE: 
 * This design uses Lucide Icons.
 * Search for available icons at: https://lucide.dev/icons/
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* --- Base Colors --- */
    --bg-base: #0f172a;         /* Deep slate background */
    --bg-surface: #1e293b;      /* Card/Panel surface */
    --bg-surface-elevated: #334155; /* Hover states for surfaces */
    
    /* --- Brand Accents (Teal) --- */
    --brand-primary: #14b8a6;
    --brand-hover: #0d9488;
    --brand-glow: rgba(20, 184, 166, 0.4);
    --brand-faded: rgba(20, 184, 166, 0.1);
    
    /* --- Text Colors --- */
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    /* --- Borders & Dividers --- */
    --border-color: #334155;
    --border-subtle: rgba(51, 65, 85, 0.5);
    
    /* --- Status Colors --- */
    --status-success: #34d399;
    --status-success-bg: rgba(52, 211, 153, 0.1);
    --status-success-border: rgba(52, 211, 153, 0.2);
    
    --status-warning: #fbbf24;
    --status-warning-bg: rgba(251, 191, 36, 0.1);
    --status-warning-border: rgba(251, 191, 36, 0.2);
    
    --status-danger: #fb7185;
    --status-danger-bg: rgba(251, 113, 133, 0.1);
    --status-danger-border: rgba(251, 113, 133, 0.2);
    
    --status-info: #60a5fa;
    --status-info-bg: rgba(96, 165, 250, 0.1);
    
    /* --- Typography & Geometry --- */
    --font-family: 'Inter', sans-serif;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* --- Shadows & Effects --- */
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-accent: 0 0 15px var(--brand-glow);
    --transition-fast: 0.15s ease-in-out;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   1. GLOBAL RESETS & BASE
   ========================================= */
body {
    background-color: var(--bg-base);
    color: var(--text-secondary);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--bg-surface-elevated);
    border-radius: 10px;
    border: 2px solid var(--bg-base); /* Creates padding effect */
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--brand-hover);
    text-decoration: underline;
}

/* =========================================
   2. FRAMES & SURFACES (Accentuated)
   ========================================= */

/* Main Cards */
.card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

/* Accentuated hover effect for interactive frames */
.card.interactive:hover {
    transform: translateY(-2px);
    border-color: var(--brand-primary);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), var(--shadow-accent);
}

/* Glass Header / Navbars */
.glass-panel {
    background: rgba(30, 41, 59, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

/* =========================================
   3. MENUS & NAVIGATION (Accentuated)
   ========================================= */
.menu-link {
    display: flex;
    align-items: center;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.menu-link svg, .menu-link i {
    margin-right: 0.75rem;
    transition: var(--transition-fast);
}

/* Accentuated Hover */
.menu-link:hover {
    background-color: rgba(51, 65, 85, 0.4);
    color: var(--text-primary);
}

/* Accentuated Active State */
.menu-link.active {
    background-color: var(--brand-faded);
    color: var(--brand-primary);
    border: 1px solid rgba(20, 184, 166, 0.2);
    box-shadow: inset 0 0 10px rgba(20, 184, 166, 0.05);
}

.menu-link.active svg, .menu-link.active i {
    filter: drop-shadow(0 0 4px var(--brand-glow));
}

/* =========================================
   4. BUTTONS (Accentuated)
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    outline: none;
}

/* Solid Brand Button */
.btn-primary {
    background-color: var(--brand-primary);
    color: var(--bg-base);
    box-shadow: 0 2px 10px rgba(20, 184, 166, 0.2);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--brand-hover);
    box-shadow: var(--shadow-accent);
    transform: translateY(-1px);
}

/* Ghost / Outline Button */
.btn-ghost {
    background-color: transparent;
    color: var(--brand-primary);
    border: 1px solid transparent;
}

.btn-ghost:hover {
    background-color: var(--brand-faded);
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-accent);
}

/* Icon Buttons (like the notification bell) */
.btn-icon {
    background-color: transparent;
    color: var(--text-muted);
    padding: 0.5rem;
    border-radius: 50%;
    border: 1px solid transparent;
}

.btn-icon:hover {
    background-color: var(--bg-surface-elevated);
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* =========================================
   5. INPUTS & FORMS (Accentuated)
   ========================================= */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-field {
    width: 100%;
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem; /* Standard symmetric padding */
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.input-field::placeholder {
    color: var(--text-muted);
}

/* Accentuated Focus State */
.input-field:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2), inset 0 1px 2px rgba(0,0,0,0.5);
}

/* =========================================
   6. BADGES & STATUS PILLS
   ========================================= */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
}

/* Adding subtle glow to the dot inside badges */
.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 6px;
}

/* Success Badge */
.badge-success {
    background-color: var(--status-success-bg);
    color: var(--status-success);
    border-color: var(--status-success-border);
}
.badge-success .badge-dot { background-color: var(--status-success); box-shadow: 0 0 5px var(--status-success); }

/* Warning Badge */
.badge-warning {
    background-color: var(--status-warning-bg);
    color: var(--status-warning);
    border-color: var(--status-warning-border);
}
.badge-warning .badge-dot { background-color: var(--status-warning); box-shadow: 0 0 5px var(--status-warning); }

/* Danger Badge */
.badge-danger {
    background-color: var(--status-danger-bg);
    color: var(--status-danger);
    border-color: var(--status-danger-border);
}
.badge-danger .badge-dot { background-color: var(--status-danger); box-shadow: 0 0 5px var(--status-danger); }

/* =========================================
   7. TYPOGRAPHY HELPERS
   ========================================= */
.text-brand { color: var(--brand-primary); }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--text-primary); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-2xl { font-size: 1.5rem; }