﻿
:root {
    --shell-bg: #f4f6fb;
    --panel: #ffffff;
    --line: #e4e7ec;
    --ink: #101828;
    --ink-soft: #667085;
    --brand: #fbbf24;
    --brand-deep: #f59e0b;
    --sidebar-bg: #0f172a;
    --sidebar-soft: #94a3b8;
    --sidebar-hover: rgba(251, 191, 36, 0.16);
    --sidebar-active: linear-gradient(90deg, rgba(251,191,36,0.95) 0%, rgba(245,158,11,0.95) 100%);
    --radius: 14px;
    --shadow-md: 0 10px 24px rgba(16, 24, 40, 0.1);
}

body {
    margin: 0;
    background: var(--shell-bg);
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Sora", sans-serif;
    letter-spacing: -0.02em;
}

.sidebar {
    width: 286px;
    background: radial-gradient(1200px 450px at -10% -15%, rgba(251, 191, 36, 0.16), transparent 55%), linear-gradient(185deg, #0f172a 0%, #111827 55%, #0b1220 100%);
    border-right: 1px solid rgba(255,255,255,0.08);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform 0.28s ease;
}

.sidebar-brand {
    height: 82px;
    display: flex;
    align-items: center;
    padding: 0 1.35rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

    .sidebar-brand img {
        width: 174px;
        height: auto;
        display: block;
    }

.menu-label {
    color: var(--sidebar-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    font-weight: 700;
    margin: 0.45rem 0 0.6rem;
    padding: 0 0.8rem;
}

.sidebar-menu {
    padding: 1rem;
    overflow-y: auto;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #cbd5e1;
    font-size: 0.94rem;
    font-weight: 600;
    border-radius: 12px;
    padding: 0.72rem 0.82rem;
    margin-bottom: 0.22rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

    .sidebar .nav-link:hover {
        color: #fff;
        background: var(--sidebar-hover);
        border-color: rgba(251, 191, 36, 0.22);
        transform: translateX(1px);
    }

    .sidebar .nav-link.active {
        color: #111827;
        background: var(--sidebar-active);
        box-shadow: 0 10px 18px rgba(245, 158, 11, 0.33);
        border-color: transparent;
        font-weight: 700;
    }

    .sidebar .nav-link i {
        width: 22px;
        text-align: center;
        font-size: 1rem;
    }

.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 0.9rem;
    background: rgba(2, 6, 23, 0.42);
}

    .sidebar-footer .text-dark,
    .sidebar-footer .text-muted {
        color: #e2e8f0 !important;
    }

    .sidebar-footer .dropdown-menu {
        border-radius: 12px;
        border: 1px solid #e4e7ec;
        box-shadow: var(--shadow-md);
    }

.main-content {
    margin-left: 286px;
    width: calc(100% - 286px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1.6rem 1.6rem 0;
}

.content-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.1rem;
}

.page-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
}

.today-chip {
    font-size: 0.83rem;
    background: #fff7db;
    color: #9a6700;
    border: 1px solid #fedf89;
    border-radius: 999px;
    padding: 0.32rem 0.7rem;
    font-weight: 700;
}

main {
    flex: 1;
}

footer.footer {
    border-top: 1px solid var(--line);
    background: #ffffff;
    border-radius: 14px 14px 0 0;
    margin-top: 1rem;
    overflow: hidden;
    box-shadow: 0 -4px 16px rgba(16, 24, 40, 0.04);
}

.footer-top {
    padding: 0.9rem 1rem 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    border-bottom: 1px solid #eef2f7;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 800;
    color: #111827;
    text-decoration: none;
}

    .footer-brand i {
        color: #f59e0b;
    }

.footer-links {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

    .footer-links a {
        color: #667085;
        text-decoration: none;
        font-size: 0.88rem;
        font-weight: 700;
    }

        .footer-links a:hover {
            color: #111827;
        }

.footer-bottom {
    padding: 0.75rem 1rem 0.95rem;
    color: #98a2b3;
    font-size: 0.84rem;
    text-align: center;
}

.sidebar-toggler {
    display: none;
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        width: min(86vw, 320px);
    }

        .sidebar.show {
            transform: translateX(0);
        }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding-top: 4.2rem;
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .sidebar-toggler {
        display: inline-flex;
        position: fixed;
        top: 0.8rem;
        left: 0.8rem;
        z-index: 1055;
        border: none;
        border-radius: 10px;
        background: #111827;
        color: #fff;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        box-shadow: var(--shadow-md);
    }

    .content-topbar {
        margin-left: 0.25rem;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding-top: 3.9rem;
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .content-topbar {
        margin-left: 0;
        margin-bottom: 0.75rem;
    }

    .page-title {
        font-size: 1rem;
    }

    .today-chip {
        font-size: 0.74rem;
        padding: 0.22rem 0.52rem;
    }
}


