﻿.sactive {
    width: 100%;
    color: var(--color-primary);
    background-color: var(--color-light);
    margin-left: 0;
}

#arrowBackBtn {
    cursor: pointer;
}

#arrowExBtn {
    cursor: pointer;
    display: none
}

.sidebar {
    position: relative;
    width: 100%;
    height: calc(100vh - 24px);
    overflow-y: scroll;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding-top: 1rem;
    padding-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    cursor: pointer;
    color: #555;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.sidebar-toggle-container:hover {
    color: #E51A22;
    background: rgba(229, 26, 34, 0.05);
}

.sidebar-toggle-container i {
    font-size: 22px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.sidebar.collapsed .sidebar-toggle-container i {
    transform: rotate(180deg); /* 180deg looks more intentional for a toggle */
}

.sidebar.collapsed .sidebar-toggle-container {
    padding: 12px 0;
}

/* Base sidebar transitions */

.toggle {
    position: fixed;
    z-index: 1001;
}

.newSideMenu {
    display: flex;
    justify-content: flex-start;
    /* Align left */
    align-items: center;
    flex-direction: row;
    /* Row layout */
    background-color: transparent;
    /* Transparent by default */
    color: #555;
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: 8px;
    /* Smaller radius */
    margin: 4px 12px;
    /* Tighter vertical spacing */
    padding: 10px 16px;
    /* Row padding */
    box-shadow: none;
    /* No default shadow */
    border: none;
    width: auto;
}

/* --- Collapsed State Styles --- */
.sidebar.collapsed {
    width: 72px !important;
    padding: 1rem 0 !important;
}

.sidebar.collapsed .sidebar-toggle-container {
    padding: 12px 0;
    width: 100%;
}

.sidebar.collapsed .newSideMenu {
    padding: 12px 0;
    justify-content: center;
    margin: 4px 8px;
    width: auto;
}

/* Force icons to be visible */
.sidebar.collapsed .newSideMenu .menu-icon,
.sidebar.collapsed .collapsed-item .menu-icon {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-right: 0 !important;
    font-size: 24px !important;
    width: 100% !important;
    height: auto !important;
    color: inherit;
    justify-content: center;
    align-items: center;
}

.sidebar.collapsed .activeClassMenu .menu-icon {
    color: white !important;
}

/* Hide labels definitively */
.sidebar.collapsed .sidebar-header-label,
.sidebar.collapsed .menu-label {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.newSideMenu:not(.activeClassMenu):hover {
    background-color: #fff5f5;
    box-shadow: none;
    transform: none;
    color: #E51A22;
}

.newSideMenu:not(.activeClassMenu):hover .material-icons-outlined,
.newSideMenu:not(.activeClassMenu):hover span {
    color: #E51A22 !important;
}

.newSideMenu .material-icons-outlined {
    color: #777;
    /* Neutral icon default */
    font-weight: 500;
    font-size: 20px;
    margin-bottom: 0;
    /* Remove bottom margin */
    margin-right: 16px;
    /* Space between icon and text */
}

.activeClassMenu {
    background-color: #E51A22 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(229, 26, 34, 0.3);
}

.activeClassMenu .material-icons-outlined,
.activeClassMenu span {
    color: white !important;
}

.newSideMenu span {
    color: #444;
    font-weight: 600;
    font-size: 13px;
    /* Slightly larger text */
}

/* Redesigned Sub-Menu (hr-sub) */
/* Assuming this is a special menu item, making it look like others */
.hr-sub {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    background-color: #ffffff;
    /* Clean white card */
    color: #475569;
    /* Slate gray text */
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 12px;
    /* Modern rounded corners */
    margin: 8px 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    /* Soft minimal shadow */
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.hr-sub:hover {
    background-color: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    /* Lift effect */
    transform: translateY(-2px);
    color: #E51A22;
    /* Coke Red */
    border-color: rgba(229, 26, 34, 0.1);
}

.hr-sub:hover .material-icons-outlined,
.hr-sub:hover span {
    color: #E51A22;
}

.hr-sub .material-icons-outlined {
    color: #777;
    font-weight: 500;
    font-size: 20px;
    margin-bottom: 0;
    margin-right: 16px;
}

.hr-sub span {
    color: #444;
    font-weight: 600;
    font-size: 13px;
    text-align: left;
}

.appTopBar {
    position: fixed;
    height: 4rem;
    background-color: var(--color-background);
    z-index: 1000;
}

.profile-photo-container img {
    height: 20px;
    width: 20px;
    margin: 0 10px;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.profile-photo-container img:hover {
    transform: scale(1.1);
}

.UserTitle {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
}

.leftBar {
    display: flex;
    align-items: center;
}

.uraLogo {
    width: 13.3vw;
    padding: 5px;
}

.uraLogo img {
    height: 4rem;
    width: 6rem;
    margin-left: 3vw;
}

.searchbar {
    margin-right: 20px
}

.searchbar .material-icons-sharp {
    font-size: 20px;
}

.langtoggle {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 25px;
    background: linear-gradient(to top, rgba(255, 0, 0, 0.3), rgba(0, 0, 255, 0.3));
    border-radius: 25px;
    border: 2px solid gray;
}

/* After slide changes */
.langtoggle:after {
    content: '';
    position: absolute;
    width: 35px;
    height: 22px;
    border-radius: 25px;
    background-color: var(--color-primary);
    top: 0;
    left: 1px;
    transition: all 0.5s;
}


p {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
}


.checkbox:checked+.langtoggle::after {
    left: 30px;
}

.checkbox:checked+.langtoggle {
    background: linear-gradient(to top, rgba(255, 0, 0, 0.7), rgba(0, 0, 255, 0.6));
    color: white
}

.checkbox {
    display: none;
}

.userImg .proImg {
    height: 25px;
    width: 25px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
}

.popUpProfile {
    display: flex;
    visibility: hidden;
    opacity: 0;
    flex-direction: column;
    position: absolute;
    background-color: white;
    top: 3.2rem;
    right: 55px;
    border-radius: 6px;
    box-shadow: 0 0px 7px rgba(11, 11, 15, 0.4);
    z-index: 3000;
    /* transition: all 0.4s ease; */
}

.popup-user-img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    border: 1px solid;
    border-color: var(--color-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid;
    border-color: var(--color-primary);
    transition: all 0.3s ease-in;
}

.popUpItems {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.popUpItems:hover {
    background-color: rgba(241, 17, 17, 0.2);
}


.popUpUser {
    border-bottom: 1px solid;
    border-color: rgba(12, 25, 25, 0.12);
}

.user-profile-section:hover .popUpProfile {
    opacity: 0;
    transform: translateX(100px);
    animation: slideIn 0.4s forwards;
    visibility: visible;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.popUpTitle {
    font-size: 13px;
    font-weight: 500;
}

@media (max-width:1460px) and (min-width:950px) {
    .newSideMenu .material-icons-outlined {
        color: var(--color-primary);
        font-weight: 500;
        font-size: 20px;
    }

    .newSideMenu span {
        color: var(--color-primary);
        font-weight: 500;
        font-size: 11px;
    }
}

@media (min-width:1400px) {
    .hr.col-xxl-2 {
        width: 20% !important;
    }
}

@media screen and (max-width: 950px) and (min-width:650px) {
    .newSideMenu {
        padding: 5px 2px;
        margin: 0 0 5px 0.5rem;
    }

    .newSideMenu .material-icons-outlined {
        font-size: 17px;
    }

    .newSideMenu span {
        font-size: 10px;
    }

    .aside {
        width: 115px !important;
    }

    .UserTitle {
        font-size: 10px;
        font-weight: 500;
    }

    .appTopBar .searchbar {
        width: 110px;
    }
}

@media screen and (max-width: 650px) and (min-width:350px) {
    .newSideMenu {
        padding: 5px 2px;
        margin: 0 0 5px 0.5rem;
    }

    .newSideMenu .material-icons-outlined {
        font-size: 17px;
    }

    .newSideMenu span {
        font-size: 10px;
    }


    .UserTitle {
        font-size: 10px;
        font-weight: 500;
    }

    .appTopBar .searchbar {
        width: 110px;
    }
}