/* Dashboard Layout & Modern Theme */
:root {
    --sidebar-width: 260px;
    --sidebar-bg: #0f172a;
    --sidebar-border: #1e293b;
    --sidebar-hover: #1e293b;
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --body-bg: #f8fafc;
    --card-border: #e2e8f0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--body-bg);
    color: #1e293b;
    overflow-x: hidden;
}

/* Sidebar Styling */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1030;
    transition: all 0.3s ease;
}

.sidebar-brand-icon {
    width: 38px;
    height: 38px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.text-cyan { color: #38bdf8 !important; }
.text-slate-400 { color: #94a3b8 !important; }
.text-slate-500 { color: #64748b !important; }
.bg-slate-900 { background-color: #0f172a !important; }
.border-slate-800 { border-color: #1e293b !important; }

.sidebar-user-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.avatar-circle-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.nav-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    padding: 0.5rem 0.75rem 0.25rem 0.75rem;
}

.sidebar .nav-link {
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.6rem 0.85rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.sidebar .nav-link:hover {
    color: #f8fafc;
    background-color: var(--sidebar-hover);
}

.sidebar .nav-link.active {
    color: #ffffff;
    background-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.hover-slate-800:hover {
    background-color: #1e293b;
}

.text-xxs { font-size: 0.65rem; }

/* Main Content Layout */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: #f8fafc;
}

.top-navbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 1020;
}

/* Card Styling */
.dashboard-card {
    border: 1px solid var(--card-border);
    border-radius: 0.85rem;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
}

.stat-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-size: 1.5rem;
}

.bg-gradient-primary-soft { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); color: #2563eb; }
.bg-gradient-success-soft { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); color: #16a34a; }
.bg-gradient-info-soft { background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%); color: #0891b2; }
.bg-gradient-warning-soft { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); color: #d97706; }

.badge-subtle-primary { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-subtle-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.badge-subtle-info { background: #cffafe; color: #155e75; border: 1px solid #a5f3fc; }
.badge-subtle-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-subtle-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Mobile Sidebar Toggle */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        z-index: 1040;
    }
    .sidebar.show {
        left: 0;
        box-shadow: 0 0 25px rgba(0,0,0,0.5);
    }
}
