/* --- 1. LIGHT FUTURE THEME --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* LABORATORY PALETTE */
    --bg-app: #f1f5f9;           /* Clean Silver-Grey */
    --bg-panel: #ffffff;         /* Pure White */
    
    --sidebar-bg: #0f172a;       /* Deep Command Blue (High Contrast) */
    
    --neon-cyan: #06b6d4;        /* Hologram Cyan */
    --neon-orange: #f97316;      /* Warning Orange */
    
    --text-main: #334155;        /* Dark Grey (Readable) */
    --text-muted: #64748b;       /* Soft Grey */
    
    --border-tech: 1px solid #e2e8f0;
    --border-glow: 1px solid rgba(6, 182, 212, 0.5); /* Subtle Cyan Border */
    
    --radius: 12px;
    --shadow-soft: 0 4px 20px -5px rgba(0,0,0,0.05); /* Soft Lift */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-app);
    color: var(--text-main);
    font-size: 14px;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- 2. SIDEBAR (The Dark Anchor) --- */
/* We keep this dark to make the white content POP */
#sidebar-container {
    width: 260px;
    background: var(--sidebar-bg);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 24px;
    position: fixed;
    height: 100vh;
    z-index: 100;
    border-right: 1px solid rgba(255,255,255,0.1);
    box-shadow: 4px 0 20px rgba(15, 23, 42, 0.1);
    transition: transform 0.3s ease;
}

.brand {
    margin-bottom: 40px;
    text-align: center;
    font-size: 18px;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.menu-item {
    display: flex; align-items: center;
    padding: 14px 18px;
    margin-bottom: 8px;
    border-radius: 8px;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(4px);
}

.menu-item.active {
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.15), transparent);
    color: var(--neon-cyan);
    border-left: 3px solid var(--neon-cyan);
}

.menu-item .icon { width: 24px; margin-right: 12px; text-align: center; }

/* --- 3. MAIN AREA (Bright & Clean) --- */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 32px;
}

.top-bar {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px;
}
.top-bar h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.5px; color: var(--sidebar-bg); }

.user-badge {
    background: white; border: var(--border-tech);
    padding: 8px 16px; border-radius: 50px;
    display: flex; align-items: center; gap: 10px;
    box-shadow: var(--shadow-soft);
}

/* --- 4. TECH CARDS --- */
.card {
    background: var(--bg-panel);
    border-radius: var(--radius);
    padding: 24px;
    /* The Magic: White card with a subtle tech border */
    border: 1px solid #cbd5e1;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

/* A tiny colored line at the top of cards for "Tech" feel */
.card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), transparent);
}

.action-bar { display: flex; gap: 12px; margin-bottom: 24px; }

/* INPUTS (Clean Tech) */
input, select {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 8px;
    width: 100%;
    outline: none;
    transition: 0.2s;
    color: var(--text-main);
    font-family: inherit;
}
input:focus, select:focus {
    background: white;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

/* BUTTONS */
.btn-primary {
    background: var(--neon-orange);
    color: white;
    border: none; padding: 10px 20px;
    border-radius: 8px; font-weight: 600; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.2);
    transition: 0.2s;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(249, 115, 22, 0.3);
}

.btn-icon {
    background: white; border: 1px solid #cbd5e1;
    color: var(--text-muted); width: 36px; height: 36px;
    border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
}
.btn-icon:hover {
    border-color: var(--neon-cyan); color: var(--neon-cyan);
}

/* --- 5. DATA TABLE (Silver Grid) --- */
.table-container { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; }

thead { background: #f8fafc; border-bottom: 2px solid #e2e8f0; }
th {
    text-align: left; padding: 14px; color: var(--text-muted);
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
td {
    padding: 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle;
}
tr:hover td { background: #f8fafc; }

.badge {
    background: #e0f2fe; color: #0284c7;
    padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 600;
    border: 1px solid #bae6fd;
}

/* --- 6. MOBILE RESPONSIVE --- */
.mobile-menu-btn { display: none; background: none; border: none; font-size: 24px; color: var(--sidebar-bg); }

@media (max-width: 768px) {
    #sidebar-container { transform: translateX(-100%); width: 270px; }
    #sidebar-container.open { transform: translateX(0); }
    
    .main-content { margin-left: 0; width: 100%; padding: 16px; }
    .mobile-menu-btn { display: block; margin-right: 15px; }
    .action-bar { flex-direction: column; }
    
    /* Card View */
    thead { display: none; }
    table, tbody, tr, td { display: block; }
    tr {
        background: white; border: 1px solid #e2e8f0;
        border-radius: 12px; margin-bottom: 12px; padding: 16px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    }
    td {
        padding: 8px 0; border-bottom: 1px dashed #f1f5f9;
        display: flex; justify-content: space-between; text-align: right;
    }
    td:last-child { border-bottom: none; }
    td::before {
        content: attr(data-label); font-weight: 600; color: var(--text-muted); font-size: 11px; text-transform: uppercase;
    }
}

/* --- 7. MODAL --- */
.modal { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.2); backdrop-filter: blur(4px); z-index: 1000; }
.modal-content {
    background: white; margin: 10% auto; width: 95%; max-width: 500px;
    border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-header { padding: 20px; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; }
.modal-body { padding: 24px; }
.modal-footer { padding: 20px; text-align: right; background: #f8fafc; border-radius: 0 0 12px 12px; }