@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap');

@font-face {
    font-family: 'Graphik-Regular';
    src: url('../lib/font/GraphikRegular.otf') format('opentype');
}

:root {
    --primary1: #B455AA;
    --primary2: #A100FF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Graphik-Regular, sans-serif;
}

body {
    background-color: #FAFAFA;
}

.content {
    position: relative;
    width: 100%;
    height: 100vh;
}

    /* ===== HEADER ===== */

.flexstart {
    display: flex;
    justify-content: start;
    align-items: center;
}

.flexcenter {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flexend {
    display: flex;
    justify-content: end;
    align-items: center;
}

.content .content-header {
    position: relative;
    width: 100%;
    height: 60px;
    padding: 10px;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .content .content-header .content-header-logo {
        height: 32px;
        width: auto;
        object-fit: contain;
        margin-right: 10px;
    }

    .content .content-header .content-header-img {
        height: 28px;
        width: auto;
        object-fit: contain;
    }

    .content .content-header .content-header-title {
        font-size: 20px;
        font-weight: 600;
        color: black;
    }

.usrname-abbrev {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    background-color: transparent;
    border: 1px solid var(--primary1);
    color: var(--primary1) !important;
    font-size: 12px;
    padding-top: 1px;
}

    /* ===== BODY STRUCTURE ===== */

    .content .content-body {
        display: flex;
        width: 100%;
    }

/* ===== SIDENAV ===== */

.sidenav {
    width: 240px;
    background-color: white;
    height: calc(100vh - 60px);
    transition: 0.3s ease;
}

.main {
    width: calc(100% - 240px);
    height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 0 !important; /* Important for PowerBI full view */
    transition: 0.3s ease;
}

.subnav-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Collapse State */

.sidenav-active {
    width: 70px !important;
}

.main-active {
    width: calc(100% - 70px) !important;
}

/* ===== MAIN NAV ===== */

.app-main-nav {
    margin-top: 20px;
    list-style: none;
    padding: 0;
    width: 100%;
}

    .app-main-nav li {
        width: 100%;
        margin-bottom: 6px;
    }

        .app-main-nav li a {
            display: flex;
            align-items: center;
            padding: 12px 15px;
            text-decoration: none;
            color: var(--primary2);
            font-size: 14px;
            transition: 0.2s ease;
        }

            .app-main-nav li a:hover {
                font-weight: 600;
                background-color: #000000; /* equivalent to var(--dark) */
                color: #ffffff !important;
            }

/*.app-main-nav-active {
    font-weight: 600 !important;
    background-color: #000000 !important;
    color: #ffffff !important;
}*/

/* Dashboard main (black) */
.dashboard-active {
    background-color: #000000 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Primary purple items (DTOC, MMAD, RAMP) */
.primary-active {
    background-color: var(--primary2) !important;
    color: white !important;
    font-weight: 600 !important;
}

.menu-label {
    margin-left: 10px;
}

/* Tertiary light purple (Ramp children) */
#ramp_submenu a.active {
    background-color: #E6D4F8 !important;
    color: #7500C0 !important;
    font-weight: 600 !important;
}

.app-main-icon {
    width: 26px;
    margin-right: 10px;
    text-align: center;
}

/* ===== SUB NAV ===== */

.app-sub-nav {
    list-style: none;
    padding-left: 20px;
}

    .app-sub-nav li a {
        display: flex;
        align-items: center;
        padding: 8px 10px;
        font-size: 13px;
        text-decoration: none;
        color: black;
        transition: 0.2s ease;
    }

        .app-sub-nav li a:hover {
            font-weight: 600;
            color: white !important;
            background-color: #AC86F6 !important;
        }

    .app-sub-nav .active {
        font-weight: 600 !important;
        color: white !important;
        background-color: #AC86F6 !important;
    }

/* Nested submenu (RAMP children) */
#ramp_submenu {
    list-style: none;
    padding-left: 10px;
}

    #ramp_submenu li a {
        font-size: 13px;
    }

/* Arrow rotation when expanded */
.ramp-arrow {
    transition: 0.2s ease;
}

a[aria-expanded="true"] .ramp-arrow {
    transform: rotate(180deg);
}

/* Bullet styling */
.ramp-bullet {
    font-size: 7px;
    color: gray;
    width: 12px;
}

/* Only ramp tertiary links get light purple */
#ramp_submenu a.active {
    background-color: #E6D4F8 !important;
    color: #7500C0 !important;
    font-weight: 600;
}

.app-terul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

    .app-terul li a {
        display: flex;
        padding: 5px 10px 5px 45px !important;
        align-items: center;
        text-decoration: none;
        font-size: 13px;
        color: gray;
    }

.app-termenu-btn:hover {
    font-weight: 600;
    color: white !important;
    background-color: #AC86F6 !important;
}

.app-termenu-btn-active {
    font-weight: 600;
    color: white !important;
    background-color: #AC86F6 !important;
}

/* ===== FLOATING SUBNAV (Collapsed Mode) ===== */

.app-sub-nav-floater {
    position: absolute;
    top: 20px;
    left: 100%;
    width: 180px;
    background-color: var(--primary2);
    padding: 8px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    list-style: none;
    z-index: 999;
}

    .app-sub-nav-floater li a {
        color: white;
        font-size: 13px;
        padding: 8px 10px;
        display: block;
        text-decoration: none;
    }

        .app-sub-nav-floater li a:hover {
            font-weight: 600;
        }

/* ===== TOGGLE BUTTON ===== */

.app-toggle-btn {
    width: 35px;
    height: 35px;
    border-radius: 5px;
    border: none;
    background-color: var(--primary2);
    color: white;
    cursor: pointer;
}

    .app-toggle-btn:hover,
    .app-toggle-btn.active {
        background-color: white;
        color: var(--primary2);
        border: 1px solid var(--primary2);
    }

    .app-toggle-btn:focus {
        outline: none;
    }

/* Make icon white when main menu active */
.primary-active i,
.primary-active img {
    color: white !important;
    filter: brightness(0) invert(1);
}