:root {
    --hud-primary: #10b981;
    /* Emerald */
    --hud-primary-hover: #059669;
    --hud-bg: #f8fafc;
    /* Very light slate */
    --hud-card-bg: #ffffff;
    --hud-text: #1e293b;
    --hud-text-light: #64748b;
    --hud-border: #e2e8f0;
    --hud-rad: 16px;
    --hud-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff2") format("woff2"),
        url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.ttf") format("truetype");
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--hud-bg) !important;
}

#hud-dashboard-container {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    color: var(--hud-text);
}

/* NAVIGATION */
.hud-nav ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.hud-nav li {
    list-style: none !important;
    margin-bottom: 8px !important;
    padding-left: 0 !important;
}

.hud-nav li::before,
.hud-nav ul::before {
    content: none !important;
    display: none !important;
}

.hud-nav a {
    display: flex !important;
    align-items: center !important;
    padding: 14px 20px !important;
    border-radius: 12px !important;
    color: #64748b !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    border: none !important;
    background: transparent;
}

.hud-nav a:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    transform: translateX(4px);
}

.hud-nav a.active {
    background: linear-gradient(135deg, var(--hud-primary) 0%, #059669 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
}

/* ICONS */
.hud-nav a i {
    width: 32px !important;
    height: 32px !important;
    margin-right: 8px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 1.15rem !important;
    line-height: 1 !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    transform: none !important;
    border: none !important;
}

.fa-right-from-bracket::before {
    content: "\f2f5";
}

.hud-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 20px 0;
}

.text-danger {
    color: #ef4444 !important;
}

/* PC LAYOUT */
@media (min-width: 993px) {
    #hud-dashboard-container {
        display: grid !important;
        grid-template-columns: 280px 1fr !important;
        grid-template-areas: "sidebar main";
        min-height: 100vh;
        margin-top: -32px !important;
        padding-top: 0 !important;
    }

    #hud-sidebar {
        grid-area: sidebar;
        width: 280px;
        background: #fff;
        border-right: 1px solid var(--hud-border);
        display: flex;
        flex-direction: column;
        padding: 24px;
        position: sticky;
        top: 0;
        height: 100vh;
        z-index: 1;
        overflow-y: auto;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.02);
    }

    #hud-sidebar .hud-nav ul {
        margin: 10px 0 !important;
    }

    #hud-main {
        grid-area: main;
        min-width: 0;
        padding: 40px 3px !important;
        width: 100%;
    }
}

/* CARD */
.hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.hud-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.hud-content-card {
    background: var(--hud-card-bg);
    padding: 20px !important;
    border-radius: var(--hud-rad);
    box-shadow: var(--hud-shadow);
    min-height: 400px;
}

.hud-content-card h2 {
    margin-top: 0;
}

/* MOBILE */
.hud-mobile-nav {
    display: none;
}

@media (max-width: 992px) {
    #hud-dashboard-container {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        min-height: auto !important;
        overflow-x: hidden !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .hud-mobile-nav {
        display: none !important;
    }

    #hud-sidebar {
        display: block !important;
        position: static !important;
        width: 100% !important;
        height: auto !important;
        background: #fff;
        border-bottom: 1px solid var(--hud-border);
        order: 1 !important;
        padding: 100px 5px 10px 5px !important;
        z-index: 0 !important;
        box-shadow: none !important;
    }

    /* HORIZONTAL SCROLL MENU WITH SCROLLBAR */
    #hud-sidebar .hud-nav ul {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        gap: 8px !important;
        justify-content: flex-start !important;
        margin: 0 !important;
        /* Padding bottom to show scrollbar */
        padding: 0 5px 12px 5px !important;

        /* FIREFOX Custom Scrollbar */
        scrollbar-width: thin !important;
        scrollbar-color: #cbd5e1 transparent !important;
    }

    /* WEBKIT Custom Scrollbar (Visible) */
    #hud-sidebar .hud-nav ul::-webkit-scrollbar {
        height: 4px !important;
        display: block !important;
        /* Force Display */
    }

    #hud-sidebar .hud-nav ul::-webkit-scrollbar-track {
        background: transparent !important;
    }

    #hud-sidebar .hud-nav ul::-webkit-scrollbar-thumb {
        background-color: #cbd5e1 !important;
        /* Visible Slate Bar */
        border-radius: 4px !important;
    }

    #hud-sidebar .hud-nav li {
        margin: 0 !important;
        flex: 0 0 auto !important;
    }

    #hud-sidebar .hud-nav a {
        padding: 8px 16px !important;
        font-size: 0.9rem !important;
        justify-content: center !important;
        border: 1px solid #10b981 !important;
        border-radius: 12px !important;
        background: #fff;
        white-space: nowrap !important;
    }

    #hud-sidebar .hud-nav a:hover {
        transform: none !important;
    }

    #hud-sidebar .hud-nav a.active {
        background: var(--hud-primary) !important;
        border-color: var(--hud-primary) !important;
    }

    .hud-divider {
        display: none !important;
    }

    #hud-main {
        order: 2 !important;
        width: 100% !important;
        padding: 20px 3px !important;
        display: block !important;
    }

    .hud-content-card {
        padding: 10px 5px !important;
    }

    #hud-overlay {
        display: none !important;
    }

    .hud-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}