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

:root {
    /* Color Palette - Gen Z Modern */
    --primary: #0F172A; /* Deep modern slate/navy */
    --primary-light: #1E293B;
    --accent: #F59E0B; /* Vibrant amber/gold */
    --accent-soft: rgba(245, 158, 11, 0.15);
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --bg: #F8FAFC; /* Clean modern slate background */
    --surface: rgba(255, 255, 255, 0.85); /* Glass surface */
    --border: rgba(226, 232, 240, 0.8);
    --text-primary: #0F172A;
    --text-muted: #64748B;
    
    /* Effects */
    --glass-shadow: 0 10px 40px -10px rgba(15, 23, 42, 0.08);
    --glass-blur: blur(16px);

    /* Typography Sizes */
    --font-family-base: 'Inter', sans-serif;
    --font-family-mono: 'JetBrains Mono', monospace;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: var(--font-family-base);
    background: radial-gradient(circle at top left, #FFFFFF 0%, var(--bg) 100%);
    color: var(--text-primary);
    box-sizing: border-box;
}

/* Typography Utilities */
.text-primary { color: var(--text-primary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-mono { font-family: var(--font-family-mono); }
.text-accent { color: var(--accent) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }

.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }

.fs-display { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.fs-section { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.table-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }

/* Buttons */
.btn {
    border-radius: 50rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    box-shadow: 0 6px 15px rgba(15, 23, 42, 0.2);
}
.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
}
.btn-accent:hover {
    background-color: #d97706; /* Slightly darker amber */
    color: white;
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.3);
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

/* Badges */
.badge { border-radius: 6px; font-weight: 600; padding: 0.35em 0.65em; }
.badge-success { background-color: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-warning { background-color: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-danger { background-color: rgba(239, 68, 68, 0.15); color: var(--danger); }
.badge-accent { background-color: var(--accent-soft); color: var(--accent); }

/* Global Shell Layout */
#app-container {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Sidebar */
#sidebar-container {
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--primary) 0%, #080c17 100%);
}

#sidebar {
    width: 240px;
    height: 100%;
    background-color: transparent;
    color: white;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#sidebar .brand {
    padding: 24px 20px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
#sidebar .menu-label {
    padding: 20px 20px 5px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.4);
    font-weight: 700;
}
#sidebar .nav-link {
    color: rgba(255,255,255,0.6);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    font-weight: 500;
}
#sidebar .nav-link:hover {
    color: white;
    background-color: rgba(255,255,255,0.05);
}
#sidebar .nav-link.active {
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-left-color: var(--accent);
    font-weight: 600;
}

/* Main Content Area */
#main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-color: transparent;
    height: 100%;
    width: 100%;
}

/* Topbar */
#topbar {
    height: 64px;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Cards & Surfaces */
.surface-card {
    background-color: var(--surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    border: 1px solid rgba(255,255,255,0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.surface-card:hover {
    box-shadow: 0 16px 50px -12px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

/* Dashboard Stats Cards */
.stat-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.stat-card .icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.stat-value {
    font-size: 28px;
    font-family: var(--font-family-mono);
    font-weight: 500;
    color: var(--text-primary);
}

/* Tables */
.table-custom th {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    padding: 16px 20px;
    background-color: transparent;
    white-space: nowrap;
}
.table-custom td {
    padding: 16px 20px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.2s;
}
.table-custom tbody tr:last-child td {
    border-bottom: none;
}
.table-custom tbody tr:hover td {
    background-color: rgba(15, 23, 42, 0.02);
}

/* Forms */
.form-control, .form-select {
    border-color: var(--border);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(30, 58, 95, 0.1);
}

/* Login Page specific */
.login-split {
    display: flex;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}
.login-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, #080c17 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}
.login-left::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}
.login-right {
    flex: 1;
    background-color: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.login-card {
    width: 100%;
    max-width: 400px;
}

/* Utilities */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

/* Responsive Sidebar & Mobile Layout */


@media (max-width:768px){

    #sidebar-container{
        position: fixed;
        top: 0;
        left: -260px;
        width: 260px;
        height: 100vh;
        z-index: 1055;
        transition: left .3s ease;
    }

    #sidebar-container.show{
        left:0;
    }

    #sidebar{
        width:260px;
        height:100vh;
        overflow-y:auto;
    }

    .sidebar-overlay{
        position:fixed;
        inset:0;
        background:rgba(0,0,0,.45);
        display:none;
        z-index:1050;
    }

    .sidebar-overlay.show{
        display:block;
    }

    #main-content{
        width:100%;
        margin-left:0;
    }

}

