:root {
    --bg-dark: #000000;
    --bg-light: #2b2a2a;

    --highlight: rgb(246, 126, 26);
    --glass-bg: rgba(0, 0, 0, 0.3);

    --bg-1: #050505;
    --bg-2: #1e1e1e;
    --bg-3: #050505;
    --text: #ffffff;
    --text-soft: rgba(255, 255, 255, 0.72);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border: rgba(255, 255, 255, 0.1);
    --panel: rgba(255, 255, 255, 0.05);
    --panel-dark: rgba(0, 0, 0, 0.2);
    --accent: #f97316;
    --accent-hover: #fb923c;
    --accent-soft: rgba(249, 115, 22, 0.1);
    --accent-border: rgba(249, 115, 22, 0.2);
    --shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    --blur: blur(18px);

    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;

    --highlight-soft: rgba(246, 126, 26, 0.16);
    --highlight-strong: rgba(246, 126, 26, 0.3);

    --glass-elevated: rgba(255, 255, 255, 0.04);
    --glass-hover: rgba(255, 255, 255, 0.07);

    --border-strong: rgba(255, 255, 255, 0.14);

    --success: #3ddc97;
    --success-soft: rgba(61, 220, 151, 0.14);

    --danger: #ff7c70;
    --danger-soft: rgba(255, 124, 112, 0.14);

    --shadow-xl: 0 28px 70px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.28);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    font-family: "Inter", sans-serif;
    font-weight: 600;
    margin: 0;
}

body,
p,
label,
span,
a,
button,
input,
select,
textarea,
table,
thead,
tbody,
tfoot,
tr,
th,
td {
    font-family: "Inter", sans-serif;
}

p, label, input, span, a, th, td, button, select, textarea {
    color: var(--text-soft);
    font-weight: 400;
    margin: 0;
}

body {
    width: 100vw;
    height: 100vh;
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    color: var(--text-soft);
    font-family: "Inter", sans-serif;
    background: linear-gradient(45deg, var(--bg-dark) 20%, var(--bg-light) 50%, var(--bg-dark) 100%);
}

th {
    font-weight: 600;
}

/* Headings */
h1 { font-size: clamp(2rem, 5vw + 1rem, 3.5rem); }   /* ~32px → 56px */
h2 { font-size: clamp(1.75rem, 4vw + 0.5rem, 2.75rem); } /* ~28px → 44px */
h3 { font-size: clamp(1.5rem, 3vw + 0.5rem, 2.25rem); }  /* ~24px → 36px */
h4 { font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem); } /* ~20px → 28px */
h5 { font-size: clamp(1.125rem, 1.5vw + 0.25rem, 1.5rem); } /* ~18px → 24px */
h6 { font-size: clamp(1rem, 1vw + 0.25rem, 1.25rem); }     /* ~16px → 20px */

/* Body text */
p    { font-size: clamp(1rem, 1vw + 0.25rem, 1.125rem); }  /* ~16px → 18px */
small { font-size: clamp(0.875rem, 1vw, 1rem); }           /* ~14px → 16px */

.background-wrapper {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.anim-bg {
    z-index: -1;
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    background: linear-gradient(45deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-3) 100%);
}


.glass {
    background: var(--glass-bg);
    border-radius: 16px;
    backdrop-filter: blur(2px);
    --webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(32, 32, 32, 0.6);
    padding: 10px;
}

/* ===== ADMIN APP SHELL ===== */

#wrapper {
    width: 100%;
    min-height: 100vh;
    padding: 10px;
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 1;
    align-items: flex-start;
}

#content-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* shared page header */
.dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 4px 4px;
}

.dashboard-header__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.dashboard-header__title {
    font-weight: 650;
    letter-spacing: -0.04em;
    margin-bottom: 8px;
}

.dashboard-header__text {
    max-width: 720px;
    color: var(--text-soft);
    line-height: 1.6;
}

.dashboard-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-action-btn {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 14px;
    padding: 12px 16px;
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.25s ease;
}

.dashboard-action-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.14);
}

/* shared responsive shell */
@media (max-width: 1080px) {
    #wrapper {
        flex-direction: column;
        padding: 10px;
    }

    #sidebar {
        width: 100%;
        min-width: 0;
        height: auto;
    }
}

@media (max-width: 900px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

#title {
    width: fit-content;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 5px;
    animation: letter-spacing 3s forwards;
}
@keyframes letter-spacing {
    0% {
        letter-spacing: 25px;
    }
    100% {
        letter-spacing: 5px;
    }
}

ul {
    list-style: none;
    padding: 0;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* SIDEBAR */
#sidebar {
    min-width: 260px;
    width: 260px;
    height: 100vh;

    display: flex;
    flex-direction: column;
    gap: 20px;

    padding: 20px 16px;

    background:
            linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.045)),
            rgba(0, 0, 0, 0.72);
    border-right: 1px solid var(--border);
}
/* BRAND */
.sidebar-brand {
    margin: 0;
    padding: 6px 6px 14px 6px;

    border-bottom: 1px solid var(--border);

    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sidebar-brand h5 {
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: var(--text);
}
/* NAV */
.sidebar-nav {
    width: 100%;
}
.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sidebar-list > li {
    width: 100%;
}
/* BUTTON */
.sidebar-btn {
    width: 100%;
    min-height: 46px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 10px 12px;

    border-radius: 10px;
    border: 1px solid transparent;

    background: rgba(255, 255, 255, 0.02);

    cursor: pointer;
    text-align: left;

    transition:
            background 0.18s ease,
            border-color 0.18s ease,
            transform 0.15s ease,
            box-shadow 0.15s ease;
}
.sidebar-btn h6 {
    margin: 0;
    color: var(--text-soft);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.2px;
}
/* HOVER */
.sidebar-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-border);
    transform: translateX(4px);
}
/* ACTIVE */
.sidebar-btn--active {
    background: linear-gradient(
            90deg,
            rgba(249, 115, 22, 0.18),
            rgba(249, 115, 22, 0.08)
    );
    border-color: var(--accent-border);

    box-shadow:
            inset 0 0 0 1px rgba(249, 115, 22, 0.18),
            0 0 12px rgba(249, 115, 22, 0.08);
}
.sidebar-btn--active h6 {
    color: #ffffff;
    font-weight: 600;
}
/* DROPDOWN */
.drop-down {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sidebar-toggle {
    appearance: none;
    font: inherit;
    color: inherit;
    outline: none;
}
/* SUBMENU */
.sidebar-submenu {
    display: none;
    flex-direction: column;
    gap: 6px;

    padding-left: 10px;
    margin-left: 6px;

    border-left: 1px solid rgba(255,255,255,0.06);
}
.drop-down.open > .sidebar-submenu {
    display: flex;
}
/* SUBMENU BUTTON */
.sidebar-submenu .sidebar-btn {
    min-height: 40px;

    padding: 8px 10px;

    background: rgba(255, 255, 255, 0.015);
    border-radius: 8px;
}
.sidebar-submenu .sidebar-btn h6 {
    font-size: 13px;
    color: var(--text-muted);
}
.hover-grow {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.hover-grow:hover {
    transform: translateX(4px);
    box-shadow: none;
}
.admin-sidebar {
    padding: 24px 16px 24px 24px;
}

.highlight {
    color: var(--highlight);
}

.drop-down-content {
    display: none;
    position: absolute;
    padding: 10px;
    background-color: black;
    gap: 5px;
}
.drop-down:hover .drop-down-content {
    display: flex;
    flex-direction: column;
}
.drop-down-content > span:hover {
    color: var(--highlight);
}
.drop-down-content {
    cursor: pointer;
}

.divider-line {
    width: 100%;
    height: 1px;
    background-color: var(--bg-light);
    margin: 10px 0 10px 0;
}

.scroll-animation {
    will-change: transform, opacity;
    transform-origin: center center;
}

.panel {
    padding: 18px;
    border-radius: 16px;
    background:
            linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)),
            rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /*backdrop-filter: blur(10px); */
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-width: 0;
    opacity: 0.8;
}
.panel::before, .stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
            135deg,
            rgba(255,255,255,0.10) 0%,
            rgba(255,255,255,0.03) 18%,
            rgba(255,255,255,0.00) 42%
    );
    pointer-events: none;
    opacity: 0.8;
}

.onload-animate {
    opacity: 0;
    transform: translateY(18px);
    animation: dashboard-fade-up 0.7s ease forwards;
}
.onload-animate--delay-1 { animation-delay: 0.08s; }
.onload-animate--delay-2 { animation-delay: 0.16s; }
.onload-animate--delay-3 { animation-delay: 0.24s; }
.onload-animate--delay-4 { animation-delay: 0.32s; }

.site-footer {
    position: relative;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--border);
    background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.02),
            rgba(0, 0, 0, 0.25)
    );
    backdrop-filter: blur(10px);
}
.site-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.site-footer__left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.site-footer__brand {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}
.site-footer__copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.site-footer__right {
    display: flex;
    gap: 1.5rem;
}
.site-footer__link {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.site-footer__link:hover {
    color: var(--text);
}

/* mobile */
@media (max-width: 640px) {
    .site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer__right {
        gap: 1rem;
    }
}


@keyframes dashboard-fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

*,
*::before,
*::after { box-sizing: border-box; }