﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap');

* {
    box-sizing: border-box;
}


/* =========================================
   SIDEBAR DEFAULTS
========================================= */

.sidebar-container {
    --sidebar-main-bg: #00071d;
    --sidebar-item-hover: #1c2339;
    --sidebar-secondary-bg: #36415e;
    --sidebar-container-bg: #131c31;
    --sidebar-text-color: #ffffff;
    --sidebar-border-color: #252e47;
    --sidebar-shadow: rgba(0, 0, 0, 0.4) 0px 7px 29px 0px;
    font-family: 'Poppins', sans-serif;
    background-color: var(--sidebar-container-bg);
    color: var(--sidebar-text-color);
    box-shadow: var(--sidebar-shadow);
    border-radius: 12px;
    padding: 20px;
    position: fixed;
    left: 20px;
    top: 10px;
    width: 300px;
    height: calc(100vh - 20px);
    transition: width .3s ease-in-out;
    z-index: 1000;
    overflow: hidden;
}


    /* =========================================
   COLLAPSED SIDEBAR
========================================= */

    .sidebar-container.shrink {
        width: 95px;
    }


/* =========================================
   WRAPPER
========================================= */

.sidebar-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}


/* =========================================
   LAB MANAGER TITLE
========================================= */

.sidebar-greeting {
    color: #0d6efd;
    font-size: 16px;
    font-weight: 500;
    padding: 5px 5px 15px 5px;
    white-space: nowrap;
    flex-shrink: 0;
}


/* =========================================
   COLLAPSE BUTTON
========================================= */

.sidebar-viewButton {
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    right: 10px;
    top: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    background-color: var(--sidebar-secondary-bg);
    box-shadow: var(--sidebar-shadow);
    z-index: 9999;
    transition: background-color .3s ease, box-shadow .3s ease;
}

    .sidebar-viewButton:hover {
        opacity: .85;
    }

    .sidebar-viewButton i {
        font-size: 18px;
        transition: transform .3s ease;
    }


/* =========================================
   COLLAPSE ARROW
========================================= */

.sidebar-container.shrink .sidebar-viewButton i {
    transform: rotate(180deg);
}


/* =========================================
   MENU
========================================= */

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 5px 0 0;
    overflow: hidden;
    flex-shrink: 1;
}


/* =========================================
   MENU ITEMS
========================================= */

.sidebar-listItem {
    display: flex;
    align-items: center;
    padding: 2px 0;
    border-top: 1px solid var(--sidebar-border-color);
    position: relative;
}

    .sidebar-listItem:first-child {
        border-top: none;
    }


/* =========================================
   LINKS
========================================= */

.sidebar-link {
    width: 100%;
    padding: 12px 15px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--sidebar-text-color);
    font-size: 15px;
    font-weight: 400;
    transition: background .2s ease;
}

    .sidebar-link:hover {
        background-color: var(--sidebar-item-hover);
        color: var(--sidebar-text-color);
    }


/* =========================================
   ICONS
========================================= */

.sidebar-listIcon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 13px;
    flex-shrink: 0;
    font-size: 20px;
}


/* =========================================
   COLLAPSED MENU
========================================= */

.sidebar-container.shrink .sidebar-link {
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
}

.sidebar-container.shrink .sidebar-listIcon {
    margin-right: 0;
}

.sidebar-container.shrink .sidebar-listItemText {
    display: none;
}
.sidebar-container.shrink .sidebar-greeting {
    display: none;
}
.sidebar-container {
    position: fixed !important;
}
.sidebar-is-shrink #sidebar {
    width: 95px;
}


/* =========================================
   PROFILE / BOTTOM AREA
========================================= */

.sidebar-profileSection {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    border: 1px solid var(--sidebar-border-color);
    padding: 6px 10px;
    border-radius: 30px;
    overflow: hidden;
    height: 50px;
    flex-shrink: 0;
    color: var(--sidebar-text-color);
}

    .sidebar-profileSection span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }


/* =========================================
   LOGOUT
========================================= */

.sidebar-logout {
    margin-top: 8px;
}

.sidebar-logoutButton {
    width: 100%;
    border: 1px solid var(--sidebar-border-color);
    background: transparent;
    color: var(--sidebar-text-color);
    border-radius: 7px;
    padding: 9px 12px; /* Smaller */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px; /* Slightly smaller */
    min-height: 38px; /* Keeps it neat */
}

    .sidebar-logoutButton:hover {
        background-color: var(--sidebar-item-hover);
    }

    .sidebar-logoutButton i {
        margin-right: 8px;
        font-size: 17px;
    }

/* =========================================
   COLLAPSED LOGOUT
========================================= */

.sidebar-container.shrink .sidebar-logoutButton span {
    display: none;
}

.sidebar-container.shrink .sidebar-logoutButton i {
    margin-right: 0;
}
/* =========================================
   COLLAPSED LOGOUT
========================================= */

.sidebar-container.shrink .sidebar-logoutButton span {
    display: none;
}

.sidebar-container.shrink .sidebar-logoutButton i {
    margin-right: 0;
}


/* =========================================
   FORM LABELS
   ALWAYS BLACK
========================================= */

main label,
main .form-label {
    color: #000000 !important;
}


/* =========================================
   MOBILE
========================================= */

@media screen and (max-width: 768px) {

    .sidebar-container {
        left: 10px;
        top: 10px;
        width: 280px;
        height: calc(100vh - 20px);
        padding: 15px;
        overflow: hidden;
    }

        .sidebar-container.shrink {
            width: 80px;
        }

    .sidebar-link {
        padding: 10px 12px;
        font-size: 14px;
    }

    .sidebar-listIcon {
        font-size: 19px;
    }

    .sidebar-greeting {
        font-size: 15px;
    }
}
