
/* =========================================================
   RAK SIDEBAR THEME
   Brand: RAK Infinity Medical & Laboratory Supply
   ========================================================= */

:root {
    --rak-black: #050505;
    --rak-blue: #0795cf;
    --rak-blue-dark: #087eb5;
    --rak-green: #00d99a;
    --rak-green-dark: #079b79;

    --rak-text: #334155;
    --rak-text-muted: #718096;
    --rak-border: #e5edf2;
    --rak-hover: #eef9f7;
    --rak-active: #e1f8f0;
}


/* =========================================================
   SIDEBAR CONTAINER
   ========================================================= */

.rak-sidebar {
    position: fixed;
    top: 0;
    left: 0;

    width: 260px;
    height: 100vh;
    height: 100dvh;

    display: flex;
    flex-direction: column;

    background: #ffffff;
    border-right: 1px solid var(--rak-border);

    box-shadow: 3px 0 14px rgba(15, 35, 55, 0.04);

    z-index: 1000;
}


/* =========================================================
   BRAND HEADER
   ========================================================= */

.rak-brand {
    width: 100%;
    height: 145px;
    min-height: 145px;

    padding: 12px 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    overflow: hidden;

    background: var(--rak-black);
    border-bottom: 3px solid var(--rak-green);
}

.rak-logo {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.rak-logo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;
}

/* Retain support for a text-based logo if used elsewhere */
.rak-logo span {
    font-size: 55px;
    line-height: 1;
    font-weight: 300;

    background: linear-gradient(
            90deg,
            var(--rak-green),
            var(--rak-blue)
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rak-brand-name {
    color: var(--rak-blue);
    font-size: 22px;
    letter-spacing: 0.5px;
}

.rak-brand-subtitle {
    margin-top: 4px;
    color: #a7b6c5;
    font-size: 7px;
    letter-spacing: 1.3px;
}


/* =========================================================
   NAVIGATION AREA
   ========================================================= */

.rak-navigation {
    flex: 1;
    min-height: 0;

    padding: 20px 12px;

    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}


/* =========================================================
   MENU ITEM
   ========================================================= */

.rak-menu-item {
    position: relative;

    width: 100%;
    min-height: 45px;

    display: flex;
    align-items: center;
    gap: 11px;

    padding: 0 11px;
    margin-bottom: 4px;

    border: none;
    border-radius: 8px;

    background: transparent;

    color: var(--rak-text-muted);
    text-decoration: none;

    font-size: 13px;
    text-align: left;

    cursor: pointer;

    transition:
            background-color 0.18s ease,
            color 0.18s ease;
}

.rak-menu-item:hover {
    background: var(--rak-hover);
    color: var(--rak-blue-dark);
}


/* =========================================================
   MENU ICON
   ========================================================= */

.rak-menu-icon {
    flex: 0 0 32px;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #8295a8;
    font-size: 16px;

    transition: color 0.18s ease;
}

.rak-menu-item:hover .rak-menu-icon {
    color: var(--rak-green-dark);
}


/* =========================================================
   ACTIVE MENU
   ========================================================= */

.rak-menu-item.active {
    background: var(--rak-active);
    color: #087d69;
    font-weight: 600;
}

/* Green accent on the left of the selected menu */
.rak-menu-item.active::before {
    content: "";

    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;

    width: 3px;
    border-radius: 0 4px 4px 0;

    background: var(--rak-green-dark);
}

.rak-menu-item.active .rak-menu-icon {
    color: var(--rak-green-dark);
}


/* =========================================================
   PARENT MENU
   ========================================================= */

.rak-menu-parent {
    position: relative;
}

.rak-menu-parent .rak-menu-text {
    font-weight: 600;
}

.rak-menu-parent.expanded {
    background: #f0f8fc;
    color: var(--rak-blue-dark);
}

.rak-menu-parent.expanded .rak-menu-icon {
    color: var(--rak-blue-dark);
}


/* =========================================================
   CHEVRON
   ========================================================= */

.rak-chevron {
    margin-left: auto;

    color: #9aabba;
    font-size: 10px;

    transition:
            transform 0.2s ease,
            color 0.2s ease;
}

.rak-menu-parent.expanded .rak-chevron {
    transform: rotate(180deg);
    color: var(--rak-green-dark);
}


/* =========================================================
   SUBMENU
   ========================================================= */

.rak-submenu {
    display: none;

    padding: 4px 0 8px 43px;
}

.rak-submenu.show {
    display: block;
}

.rak-submenu a {
    display: block;

    padding: 8px 10px;
    margin-bottom: 2px;

    border-radius: 6px;

    color: var(--rak-text-muted);
    text-decoration: none;

    font-size: 12.5px;

    transition:
            background-color 0.18s ease,
            color 0.18s ease;
}

.rak-submenu a:hover {
    background: #f1f8fc;
    color: var(--rak-blue-dark);
}

.rak-submenu a.active {
    background: var(--rak-active);
    color: #087d69;
    font-weight: 600;
}


/* =========================================================
   SIDEBAR BOTTOM
   ========================================================= */

.rak-sidebar-bottom {
    flex-shrink: 0;

    padding: 12px;

    background: #ffffff;
    border-top: 1px solid var(--rak-border);
}


/* =========================================================
   LOGOUT
   ========================================================= */

.rak-logout {
    color: #7c8794;
}

.rak-logout:hover {
    color: #dc2626;
    background: #fff5f5;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.rak-menu-item:focus-visible,
.rak-submenu a:focus-visible {
    outline: 2px solid var(--rak-blue);
    outline-offset: 2px;
}