:root {
    --sidebar-width: 256px;
    --brand-50: #F0EADF;
    --brand-100: #F0EADF;
    --brand-500: #193B4F;
    --brand-600: #193B4F;
    --brand-700: #12303F;
    --brand-900: #12303F;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Segoe UI", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", Arial, sans-serif;
    background-color: #F5F2EC;
    color: #1D2F3A;
}

body {
    overflow: hidden;
}

#moduleFrame {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: var(--sidebar-width);
    border: none;
    width: calc(100% - var(--sidebar-width));
    height: 100vh;
    background-color: #fff;
}

.nav-link {
    transition: background-color 120ms ease, color 120ms ease;
    border-radius: 0.75rem;
}

.nav-link svg {
    flex-shrink: 0;
}

.nav-link.active {
    background-color: var(--brand-50) !important;
    color: var(--brand-700) !important;
}

.nav-link.active svg {
    color: var(--brand-600);
}

.brand-initial {
    background-color: var(--brand-600);
    color: #fff;
    font-weight: 600;
}

/* Hamburger button */
.hamburger-btn {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 60;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #ECE4D6;
    background: #fff;
    color: #1D2F3A;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 45;
}

@media (max-width: 1024px) {
    aside {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    aside.sidebar-open {
        transform: translateX(0);
    }

    .sidebar-overlay.active {
        display: block;
    }

    .hamburger-btn {
        display: flex;
    }

    #moduleFrame {
        left: 0;
        width: 100%;
    }
}

@media (min-width: 1025px) {
    .hamburger-btn {
        display: none;
    }
}
