:root {
    --dash-sidebar-width: 260px;
    --dash-sidebar-bg: #0f172a;
    --dash-sidebar-text: #94a3b8;
    --dash-sidebar-active: #c59b27;
    --dash-header-height: 64px;
    --dash-bg: #f8fafc;
    --dash-border: #e2e8f0;
    --dash-gold: #c59b27;
}

body.dashboard-body {
    background-color: var(--dash-bg);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1e293b;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Sidebar */
.dash-sidebar {
    width: var(--dash-sidebar-width);
    background: var(--dash-sidebar-bg);
    color: var(--dash-sidebar-text);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-sidebar-brand {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.dash-sidebar-brand-title {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin: 0;
}
.dash-sidebar-brand-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--dash-gold);
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
}

.dash-sidebar-menu {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px 12px;
}
.dash-sidebar-menu::-webkit-scrollbar {
    width: 4px;
}
.dash-sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.dash-menu-header {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #64748b;
    padding: 12px 14px 6px;
    margin-top: 6px;
}

.dash-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}
.dash-nav-item i {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
}
.dash-nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}
.dash-nav-item.active {
    background: rgba(197, 155, 39, 0.15);
    color: var(--dash-gold);
    font-weight: 600;
}
.dash-nav-item .badge {
    margin-left: auto;
}

.dash-sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}
.dash-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--dash-gold);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}
.dash-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}
.dash-user-role {
    font-size: 0.72rem;
    color: #94a3b8;
    margin: 0;
}

/* Main Content Area */
.dash-main {
    margin-left: var(--dash-sidebar-width);
    width: calc(100% - var(--dash-sidebar-width));
    min-height: calc(100vh - var(--dash-header-height));
    display: block;
    min-width: 0;
}

.dash-topbar {
    height: var(--dash-header-height);
    background: #ffffff;
    border-bottom: 1px solid var(--dash-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 1020;
    margin-left: var(--dash-sidebar-width);
    width: calc(100% - var(--dash-sidebar-width));
}

.dash-notice-container {
    margin-left: var(--dash-sidebar-width);
    width: calc(100% - var(--dash-sidebar-width));
    padding: 16px 28px 0;
}
.dash-toggle-btn {
    border: none;
    background: transparent;
    font-size: 1.3rem;
    color: #475569;
    cursor: pointer;
    display: none;
}

.dash-content {
    padding: 28px;
    flex-grow: 1;
}

/* Cards & KPI Widgets */
.dash-kpi-card {
    background: #ffffff;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dash-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
}
.dash-kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.kpi-gold { background: #fef9ed; color: #c59b27; }
.kpi-blue { background: #eff6ff; color: #2563eb; }
.kpi-green { background: #f0fdf4; color: #16a34a; }
.kpi-purple { background: #faf5ff; color: #9333ea; }
.kpi-red { background: #fef2f2; color: #dc2626; }
.kpi-amber { background: #fffbeb; color: #d97706; }

.dash-kpi-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 4px;
}
.dash-kpi-value {
    font-size: 1.65rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

/* Tables */
.dash-table-card {
    background: #ffffff;
    border: 1px solid var(--dash-border);
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    overflow: hidden;
}
.dash-table-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--dash-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.dash-table {
    margin: 0;
}
.dash-table th {
    background: #f8fafc;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    padding: 12px 20px;
    border-bottom: 1px solid var(--dash-border);
}
.dash-table td {
    padding: 14px 20px;
    vertical-align: middle;
    font-size: 0.88rem;
    border-bottom: 1px solid #f1f5f9;
}

/* Mobile responsive */
@media (max-width: 991px) {
    .dash-sidebar {
        transform: translateX(-100%);
    }
    .dash-sidebar.show {
        transform: translateX(0);
    }
    .dash-topbar {
        margin-left: 0;
        width: 100%;
        padding: 0 16px;
    }
    .dash-notice-container {
        margin-left: 0;
        width: 100%;
        padding: 12px 16px 0;
    }
    .dash-main {
        margin-left: 0;
        width: 100%;
    }
    .dash-toggle-btn {
        display: block;
    }
    .dash-content {
        padding: 16px;
    }
}
