:root {

    --navy: #071426;
    --navy2: #0d1d32;

    --blue: #0799d8;
    --cyan: #14c7f4;

    --orange: #ff8a00;
    --orange2: #ffb000;

    --green: #16a36a;
    --red: #dc4c4c;

    --white: #ffffff;

    --bg: #f4f7fb;

    --text: #182536;
    --muted: #718096;

    --border: #e5eaf0;

    --sidebar-width: 260px;
    --sidebar-small: 78px;
}


/* RESET */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: var(--bg);
    color: var(--text);
}

a {
    text-decoration: none;
}


/* ==================================================
   SIDEBAR
================================================== */

.sidebar {

    position: fixed;

    left: 0;
    top: 0;

    width: var(--sidebar-width);
    height: 100vh;

    background:
        linear-gradient(
            180deg,
            var(--navy),
            var(--navy2)
        );

    z-index: 1000;

    display: flex;
    flex-direction: column;

    padding: 14px 10px;

    transition: width .25s ease;

    box-shadow:
        4px 0 20px rgba(0,0,0,.08);
}


/* LOGO */

.sidebar-brand {

    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 5px;
}

.logo-full {

    width: 225px;
    max-height: 65px;

    object-fit: contain;

    display: block;
}

.logo-mini {

    width: 48px;
    height: 48px;

    object-fit: contain;

    display: none;
}


/* TOGGLE */

.sidebar-toggle {

    height: 38px;
    width: 100%;

    border: 0;
    border-radius: 8px;

    background: rgba(255,255,255,.08);

    color: white;

    cursor: pointer;

    font-size: 19px;

    margin-bottom: 8px;
}

.sidebar-toggle:hover {

    background:
        linear-gradient(
            90deg,
            rgba(7,153,216,.30),
            rgba(255,138,0,.20)
        );
}


/* NAV */

.sidebar-nav {

    flex: 1;

    overflow-y: auto;
}

.sidebar-nav a {

    display: flex;

    align-items: center;

    min-height: 46px;

    padding: 0 13px;

    margin: 4px 0;

    border-radius: 9px;

    color: #eef5fb;

    font-size: 15px;

    font-weight: 600;

    transition: .2s;
}

.sidebar-nav a:hover {

    background:
        rgba(20,199,244,.10);

    color: white;
}

.sidebar-nav a.active {

    background:
        linear-gradient(
            90deg,
            #193b5c,
            #17324e
        );

    box-shadow:
        inset 3px 0 0 var(--cyan);
}

.nav-icon {

    width: 30px;
    min-width: 30px;

    text-align: center;

    font-size: 17px;
}

.nav-text {
    white-space: nowrap;
}

.arrow {

    margin-left: auto;

    font-size: 20px;

    color: #a9b9ca;
}


/* COMPANY */

.sidebar-company {

    display: flex;

    align-items: center;

    gap: 9px;

    padding: 12px 7px;

    border-top:
        1px solid rgba(255,255,255,.08);
}

.company-logo {

    width: 35px;
    height: 35px;

    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;

    font-weight: bold;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--orange)
        );
}

.company-text {

    display: flex;
    flex-direction: column;
}

.company-text strong {

    color: white;
    font-size: 14px;
}

.company-text small {

    color: #8fa3b8;
    font-size: 11px;
}


/* COLLAPSED */

.sidebar.collapsed {

    width: var(--sidebar-small);
}

.sidebar.collapsed .logo-full {

    display: none;
}

.sidebar.collapsed .logo-mini {

    display: block;
}

.sidebar.collapsed .nav-text,
.sidebar.collapsed .arrow,
.sidebar.collapsed .company-text {

    display: none;
}

.sidebar.collapsed .sidebar-nav a {

    justify-content: center;

    padding: 0;
}

.sidebar.collapsed .sidebar-company {

    justify-content: center;
}


/* ==================================================
   HEADER
================================================== */

.top-header {

    position: fixed;

    top: 0;
    right: 0;

    left: var(--sidebar-width);

    height: 76px;

    background: white;

    border-bottom:
        1px solid var(--border);

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 28px;

    z-index: 900;

    transition: left .25s ease;
}

.header-left {

    display: flex;

    align-items: center;

    gap: 15px;
}

.header-left h2 {

    margin: 0;

    font-size: 19px;
}

.header-left span {

    color: var(--muted);

    font-size: 12px;
}

.mobile-menu {

    display: none;

    border: 0;

    background: #f0f4f8;

    border-radius: 8px;

    padding: 8px 12px;

    cursor: pointer;
}

.header-right {

    display: flex;

    align-items: center;

    gap: 15px;
}

.header-btn {

    border: 0;

    background: #f5f7fa;

    width: 40px;
    height: 40px;

    border-radius: 10px;

    cursor: pointer;
}

.user-box {

    display: flex;

    align-items: center;

    gap: 9px;
}

.user-avatar {

    width: 38px;
    height: 38px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;

    font-weight: bold;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--orange)
        );
}

.user-info {

    display: flex;
    flex-direction: column;
}

.user-info strong {

    font-size: 13px;
}

.user-info small {

    color: var(--muted);

    font-size: 11px;
}


/* ==================================================
   MAIN
================================================== */

.main-content {

    margin-left: var(--sidebar-width);

    padding:

        105px
        28px
        30px;

    min-height: 100vh;

    transition: margin-left .25s ease;
}


/* ==================================================
   DASHBOARD TOP
================================================== */

.dashboard-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 25px;
}

.dashboard-top h1 {

    margin: 0 0 6px;

    font-size: 27px;
}

.dashboard-top p {

    margin: 0;

    color: var(--muted);

    font-size: 14px;
}

.dashboard-date {

    background: white;

    border: 1px solid var(--border);

    border-radius: 9px;

    padding: 10px 15px;

    color: var(--muted);

    font-size: 13px;
}


/* ==================================================
   SUMMARY CARDS
================================================== */

.summary-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;

    margin-bottom: 20px;
}

.summary-card {

    background: white;

    border: 1px solid var(--border);

    border-radius: 13px;

    padding: 20px;

    display: flex;

    align-items: center;

    gap: 15px;

    box-shadow:
        0 3px 12px rgba(20,40,70,.04);
}

.card-icon {

    width: 48px;
    height: 48px;

    border-radius: 11px;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 20px;

    font-weight: bold;
}

.card-icon.blue {

    background: #e5f6fd;
    color: var(--blue);
}

.card-icon.orange {

    background: #fff1df;
    color: var(--orange);
}

.card-icon.green {

    background: #e3f7ef;
    color: var(--green);
}

.card-icon.red {

    background: #fde8e8;
    color: var(--red);
}

.summary-card span {

    color: var(--muted);

    font-size: 12px;
}

.summary-card h3 {

    margin: 5px 0;

    font-size: 21px;
}

.summary-card small {

    color: #9aa7b6;

    font-size: 10px;
}


/* ==================================================
   PANELS
================================================== */

.dashboard-columns {

    display: grid;

    grid-template-columns:
        2fr 1fr;

    gap: 20px;

    margin-bottom: 20px;
}

.dashboard-panel {

    background: white;

    border:
        1px solid var(--border);

    border-radius: 13px;

    padding: 20px;

    min-height: 250px;
}

.dashboard-panel.wide {

    min-height: 280px;
}

.panel-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom:
        1px solid #eef1f5;

    padding-bottom: 15px;

    margin-bottom: 15px;
}

.panel-header h2 {

    margin: 0 0 4px;

    font-size: 16px;
}

.panel-header span {

    color: var(--muted);

    font-size: 11px;
}

.panel-link {

    color: var(--blue);

    font-size: 12px;

    font-weight: 600;
}


/* ==================================================
   EMPTY CHART
================================================== */

.empty-chart {

    min-height: 170px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;
}

.chart-icon {

    width: 48px;
    height: 48px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #e9f7fc;

    color: var(--blue);

    font-size: 20px;
}

.empty-chart h3 {

    margin: 10px 0 5px;

    font-size: 15px;
}

.empty-chart p {

    margin: 0 0 15px;

    color: var(--muted);

    font-size: 12px;

    max-width: 320px;
}

.primary-btn {

    display: inline-block;

    padding: 9px 15px;

    border-radius: 8px;

    color: white;

    font-size: 12px;

    font-weight: 600;

    background:
        linear-gradient(
            90deg,
            var(--blue),
            var(--cyan)
        );
}


/* ==================================================
   QUICK ACTIONS
================================================== */

.quick-actions {

    display: flex;

    flex-direction: column;

    gap: 8px;
}

.quick-actions a {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 11px;

    border-radius: 9px;

    color: var(--text);

    transition: .2s;
}

.quick-actions a:hover {

    background: #f4f9fc;
}

.quick-actions a > span {

    width: 37px;
    height: 37px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #f1f6fa;

    border-radius: 8px;
}

.quick-actions div {

    display: flex;

    flex-direction: column;
}

.quick-actions strong {

    font-size: 13px;
}

.quick-actions small {

    color: var(--muted);

    font-size: 10px;

    margin-top: 3px;
}


/* ==================================================
   EMPTY STATE
================================================== */

.empty-state {

    min-height: 190px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;
}

.empty-icon {

    font-size: 28px;

    margin-bottom: 7px;
}

.empty-state h3 {

    margin: 0 0 5px;

    font-size: 15px;
}

.empty-state p {

    margin: 0;

    color: var(--muted);

    font-size: 12px;
}


/* ==================================================
   GST
================================================== */

.gst-summary {

    display: flex;

    flex-direction: column;

    gap: 0;
}

.gst-summary div {

    display: flex;

    justify-content: space-between;

    padding: 15px 3px;

    border-bottom:
        1px solid #edf0f4;
}

.gst-summary div:last-child {

    border-bottom: 0;
}

.gst-summary span {

    color: var(--muted);

    font-size: 12px;
}

.gst-summary strong {

    font-size: 13px;
}


/* ==================================================
   FOOTER
================================================== */

.footer {

    margin-left: var(--sidebar-width);

    min-height: 55px;

    background: white;

    border-top:
        1px solid var(--border);

    padding: 17px 28px;

    display: flex;

    justify-content: space-between;

    color: var(--muted);

    font-size: 11px;

    transition: margin-left .25s ease;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 1100px) {

    .summary-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

    .dashboard-columns {

        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {

    .sidebar {

        width: var(--sidebar-width);

        transform:
            translateX(-100%);
    }

    .sidebar.mobile-open {

        transform:
            translateX(0);
    }

    .top-header {

        left: 0;

        padding: 0 15px;
    }

    .mobile-menu {

        display: block;
    }

    .main-content {

        margin-left: 0;

        padding:
            95px
            15px
            25px;
    }

    .footer {

        margin-left: 0;

        padding: 15px;

        flex-direction: column;

        gap: 5px;
    }

    .summary-grid {

        grid-template-columns: 1fr;
    }

    .dashboard-top {

        align-items: flex-start;

        flex-direction: column;

        gap: 12px;
    }

    .user-info {

        display: none;
    }
}