:root {
    --bg-dark: #0f172a;
    --panel-bg: rgba(30, 41, 59, 0.7);
    --panel-border: rgba(255, 255, 255, 0.1);
    --primary: #3b82f6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

body.dark-theme {
    background-color: var(--bg-dark);
    color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(225,39%,30%,0.2) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(339,49%,30%,0.2) 0, transparent 50%);
    background-attachment: fixed;
}

body.dark-theme * {
    color: #ffffff !important;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--panel-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Layout */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    padding: 20px;
    z-index: 1000;
}

.content-area {
    margin-left: 260px;
    padding: 20px;
    min-height: 100vh;
}

.nav-link {
    color: var(--text-muted);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
}

/* Stats Cards */
.stat-card {
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 15px;
}

.icon-blue { background: rgba(59, 130, 246, 0.2); color: var(--primary); }
.icon-green { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.icon-red { background: rgba(239, 68, 68, 0.2); color: var(--danger); }
.icon-yellow { background: rgba(245, 158, 11, 0.2); color: var(--warning); }

.stat-details h3 {
    margin: 0;
    font-weight: 700;
}
.stat-details p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

/* Table Customization */
.custom-table {
    background: transparent;
    color: #ffffff !important;
}
.custom-table thead th {
    background: rgba(0,0,0,0.3) !important;
    border-bottom: 1px solid var(--panel-border);
    color: #e2e8f0 !important;
    font-weight: 600;
}
.custom-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s ease;
    color: #ffffff !important;
}
.custom-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}
.custom-table td {
    border: none;
    vertical-align: middle;
}

/* Badges */
.badge-soft-success { background: rgba(16, 185, 129, 0.2); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-soft-danger { background: rgba(239, 68, 68, 0.2); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-soft-warning { background: rgba(245, 158, 11, 0.2); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.3); }

/* Progress bars */
.progress-thin {
    height: 6px;
    background-color: rgba(255,255,255,0.1);
}

@media (max-width: 992px) {
    .sidebar { width: 80px; }
    .sidebar h4, .nav-link span { display: none; }
    .content-area { margin-left: 80px; }
}
