﻿/* dashboard.css */

/* Base typography */
:root {
    --primary: #2b8cff;
    --muted: #6c757d;
    --card-bg: #ffffff;
    --page-bg: #f5f7fb;
    --sidebar-bg: #0f1724; /* deep slate */
    --sidebar-text: #cfe2ff;
    --accent: linear-gradient(135deg, rgba(43,140,255,0.08), rgba(11,51,99,0.06));
}

body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: var(--page-bg);
    color: #111827;
}

/* layout */
#app-wrapper {
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
}

    .sidebar.collapsed-mobile {
        transform: translateX(-260px);
        transition: transform .25s ease;
    }

.sidebar-header {
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.brand-logo {
    width: 90px;
    height: 50px;
    background: linear-gradient(135deg, #2b8cff, #1e6ed8);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 10px;
    margin: 0 auto;
    font-size: 18px;
}

.brand-text {
    color: #cfe2ff;
    font-weight: 600;
    font-size: 14px;
    margin-top: 6px;
}

/* nav */
.sidebar-nav {
    padding: 10px 0;
    overflow-y: auto;
    flex-grow: 1;
}

    .sidebar-nav .nav-link {
        color: var(--sidebar-text);
        padding: .75rem 1rem;
        display: flex;
        align-items: center;
        border-left: 4px solid transparent;
        margin: .15rem 8px;
        border-radius: 6px;
    }

        .sidebar-nav .nav-link .bi {
            font-size: 18px;
            color: #cfe2ff;
        }

        .sidebar-nav .nav-link.active,
        .sidebar-nav .nav-link:hover {
            background: rgba(255,255,255,0.02);
            border-left-color: #2b8cff;
            color: white;
        }

/* footer in sidebar */
.sidebar-footer {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

/* main content offset */
#mainContent {
    margin-left: 250px;
    width: calc(100% - 250px);
}

/* header */
.content-header {
    background: #fff;
    padding: 18px 0;
    border-bottom: 1px solid rgba(15,23,36,0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* content area */
.content-area {
    padding: 24px 12px;
}

/* cards */
.card {
    border: none;
    border-radius: 12px;
    background: var(--card-bg);
    box-shadow: 0 6px 18px rgba(18, 38, 63, 0.06);
}

    .card .card-header {
        background: transparent;
        border-bottom: none;
        font-weight: 600;
    }

/* KPI card special */
.kpi {
    padding: 16px;
}

    .kpi .kpi-value {
        font-size: 28px;
        font-weight: 700;
        color: #111827;
    }

    .kpi .kpi-label {
        color: var(--muted);
        font-size: 13px;
    }

/* chart container */
.chart-container {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* smaller screens */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-260px);
        position: fixed;
    }

        .sidebar.collapsed-mobile {
            transform: translateX(0);
        }

    #mainContent {
        margin-left: 0;
        width: 100%;
    }
}

/* small cosmetic tweaks */
.content-footer {
    border-top: 1px solid rgba(15, 23, 36, 0.03);
    background: transparent;
}
