﻿/* Main Static val */
:root {
     --bg-app: #fefefe;
    /*    --bg-app: #eb4034;*/
    --bg-primary: #3a444e;
    --text-primary: #ffffff;
    --text-off-primary: #8391a2;
    /* ------------ */
    --bg-secondary: #ffffff;
    --text-secondary: #8391a2;
    --text-off-secondary: #8391a2;
    /* ------------ */
    --top-bar-height: 65px;
    --left-bar-width: 70px;
    --icon-font-size: 20px;
}



/* Main Layouts */
.main-view {
    background: var(--bg-app);
    position: relative;
    display: flex;
    height: 100vh;
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}
.left-bar {
    background: var(--bg-primary);
    z-index: 1000;
    width: var(--left-bar-width);
    transition: width 0.8s ease;
    .dropdown-hover .collapse-menu
{
    max-height: 0; /* collapsed */
    overflow: hidden; /* hide overflowing content */
    opacity: 0; /* fade effect */
    transition: max-height 0.1s ease-in, /* fast open */
    opacity 0.1s ease-in; /* fast fade-in */
}
}
.nav-cont {
    display: none;
    transition: opacity 0.1s ease;
}
.left-bar:hover {
    --left-bar-width: 250px; /* Expanded width on hover */
    transition: width 0.1s ease;
    .nav-cont{
    display: block;
        }

.app-logo img {
    height: 20px;
    width: 20px;
    margin-left: unset;
}

.dropdown-hover .collapse-menu {
    max-height: 5000px; /* enough to fit content */
    opacity: 1;
    transition: max-height 0.2s ease-out, /* slower close */
    opacity 0.2s ease-out; /* slower fade-out */
}
}




@media (max-width: 641px) {
 
    :root {
        --left-bar-width: 250px !important;
    }
    .nav-cont {
        display: block;
    }

    .app-logo img {
        height: 20px !important;
        width: 20px !important;
        margin-left: 0px !important;
         
    }

    .dropdown-hover .collapse-menu {
        max-height: 5000px !important; /* enough to fit content */
        opacity: 1 !important;
    }
}



.top-bar {
    background: var(--bg-secondary);
    z-index: 1000;
    height: var(--top-bar-height);
    width:100%;
    position: sticky;
    top: 0;
}
    .top-bar i {
        font-size: var(--icon-font-size);
        cursor: pointer;
    }
    .top-bar .user-dropdown-toggle:hover {
        border: 1px solid #dee2e6;
        background-color: #f8f9fa;
    }


.main-content {
    flex: 1;
    overflow-y: auto;
}

/* Main Elements */


.app-logo {
    height: var( --top-bar-height);
    width: var(--left-bar-width);
    display: flex;
    align-items: center; /* Vertical center */
    justify-content: center; /* Align content to the left (use center if needed) */
    padding: 10px; /* Optional horizontal padding */
}

    .app-logo img {
        height: 30px;
        width: 30px;
        margin-right: 10px;
        margin-left:16px;
    }
    .app-logo label {
        font-size: 20px;
        font-weight:500;
        color: var(--text-primary);
        text-decoration: none;
        cursor:pointer;
    }

        .app-logo a:hover {
            text-decoration: none; /* Prevent underline on hover too */
            /* color:var(--text-off-primary);*/

        }
.app-logo-mobile {
    font-size: 20px;
    font-weight: 500;
    color: var(--bg-primary);
    text-decoration: none;
}



.dark-mode {
    --bg-color: #3a434e;
    --bg-app: #333a40;
    --text-color: #ffffff;
    --secondary-color: #8391a2;
    background-color: var(--bg-color);
    color: var(--text-color);
}

    .dark-mode .navbar {
        background-color: var(--bg-color) !important;
    }

    .dark-mode .input-group,
    .dark-mode input,
    .dark-mode .form-control {
        background-color: #333649;
        color: white;
    }

    .dark-mode .btn-primary {
        background-color: #5551d4;
    }
    .dark-mode .app-logo-mobile {
        color: var(--text-primary);
    }






       