/* Modern Sidebar Styles */
.sidenav {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    height: 100dvh;
    background: #41474e;
    padding-top: 0.8rem;
    position: fixed;
    min-width: 12.5rem;
    width: auto;
    flex: 0 0 12.5rem;
    transition: all 0.3s ease;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.581);
    overflow: auto;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;

}

/* For split screen */
@media (max-width: 992px){
    .sidenav{
        min-width:100px;
        width:100px;
        flex:0 0 100px;
        transition: all 0.3s ease;

    }

}

.sidenav::-webkit-scrollbar {
    width: 6px;
}

.sidenav::-webkit-scrollbar-track {
    background: transparent;
}

.sidenav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidenav ul {
    padding: 0;
    list-style: none;
    height: 100%;
}

.sidenav .nav-item {
    margin: 0;
    padding: 0;
}

.sidenav .nav-link {
    color: #94a3b8 !important;
    padding: 0.56rem 1.2rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
}

.sidenav .nav-link:active,
.sidenav .nav-link:focus {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #94a3b8 !important;
}

/* For touch devices */
@media (hover: none) {
    .sidenav .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.2) !important;
        color: #94a3b8 !important;
    }
}


.sidenav .nav-link:hover {
    background-color: rgb(57, 57, 60) !important;
    color: #ffffff !important;
    border-left: 3px solid #3498db;
}

.sidenav .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidenav .active-sidebar {
    background-color: rgb(57, 57, 60);
    color: rgb(255, 255, 255) !important;
    border-left: 3px solid #3498db;
}

.sidenav .nav-item p {
    margin: 0;
}

/* Separator Line */
.sidenav .nav-separator {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0.5rem 1rem;
}

/* Category Label */
.sidenav .nav-category {
    color: #95a5a6;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 1rem 1.5rem 0.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Compact Icons */
.sidenav.compact {
    width: 60px;
}

.sidenav.compact .nav-link span {
    display: none;
}

.sidenav.compact .nav-link i {
    margin: 0;
    font-size: 1.2rem;
}

/* Badge Styling */
.sidenav .nav-badge {
    position: absolute;
    right: 1rem;
    background: #e74c3c;
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.7rem;
}

/* Scrollbar Styling */
.sidenav::-webkit-scrollbar {
    width: 5px;
}

.sidenav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidenav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* Logo Area */
.sidenav-logo {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidenav-logo img {
    max-width: 150px;
    height: auto;
}

/* Bottom Section */
.sidenav-bottom {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main content adjustment */
.page-scroll {
    /*
    margin-left: 12.5rem;
    width: calc(100% - 12.5rem);
    */
    transition: all 0.3s ease;
}

/* For split screen */
@media (max-width: 900px){
    .page-scroll{
        margin-left: 100px;
        width:100%;
        /* width: calc(100% - 100px); */
        transition: all 0.3s ease;
    }
}

/* Tooltip for compact mode */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover:after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-left: 10px;
    white-space: nowrap;
    z-index: 1000;
}



      /* For others dropdown */

        /* Smooth chevron rotation */
#othersToggle .others-chevron {
    transition: transform 0.25s ease;
}
#othersToggle[aria-expanded="true"] .others-chevron {
    transform: rotate(90deg);
}
#othersToggle[aria-expanded="false"] .others-chevron {
    transform: rotate(0deg);
}

/* Smooth collapse animation */
#othersMenu.collapsing {
    transition: height 0.25s ease;
}

/* White chevron */
#othersToggle .others-chevron {
    color: #ffffff;
    transition: transform 0.25s ease;
}
/* on hover black color */
#othersToggle:hover .others-chevron {
    color: #000000;
}
