﻿
#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
}

    #mobile-menu.open {
        transform: translateX(0);
    }
.ed-mm-inn {
    width: 80%;
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding:15px 25px;
    overflow: scroll;
}
.agent-menu-container {
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 90vh; /* Adjust this value based on your sidebar height */
    position: relative;
}

.agent-menu-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 2rem;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
    padding-bottom: 25px;
}

    .agent-menu-scroll::-webkit-scrollbar {
        width: 4px;
    }

    .agent-menu-scroll::-webkit-scrollbar-track {
        background: transparent;
    }

    .agent-menu-scroll::-webkit-scrollbar-thumb {
        background-color: #d1d5db;
        border-radius: 4px;
    }

.agent-details-part {
    padding: 0;
    margin-top: 2rem;
}

.agent-profile {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #fff;
}
.logout-container {
    background: #f9e1e7;
    border-radius: 6px;
    display: inline-block;
    padding: 0;
    width: 55%;
}

.menu-item-all.logout > a {
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    width: fit-content;
    margin: 0 auto;
}

.menu-item-all.logout .menu-icon {
    color: #ef4444;
    width: 20px;
    height: 20px;
}

.menu-item-all.logout > a:hover {
    background-color: rgba(239, 68, 68, 0.08);
}



.main-menu-all {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 90%;
}

.menu-item-all {
    position: relative;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.3s ease;
}

    .menu-item-all:last-child {
        border-bottom: none;
    }

    .menu-item-all > a {
        display: flex !important;
        align-items: center;
        padding: 14px 16px;
        text-decoration: none;
        color: #374151;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s ease;
    }

        .menu-item-all > a:hover {
            background-color: #f3f4f6;
            color: #4f46e5;
        }

.menu-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    color: #6b7280;
}

.arrow-icon {
    width: 16px;
    height: 16px;
    margin-left: auto;
    transition: transform 0.3s ease;
    color: #9ca3af;
}

.submenu {
    max-height: 0;
    overflow: hidden;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 5px !important;
    margin-top: 5px !important;
    background-color: #f9fafb;
    transition: max-height 0.3s ease;
}

.menu-item-all.active > .submenu {
    max-height: 1000px; /* Adjust this value based on your content */
}

/* Main submenu styles */
.submenu {
    max-height: 0;
    overflow: hidden;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 5px !important;
    margin-top: 5px !important;
    background-color: #f9fafb;
    transition: max-height 0.3s ease;
    display: none; /* Start with display none */
}

/* When active, show the submenu */
.menu-item-all.active .submenu {
    max-height: 500px;
    display: block; /* Change to block instead of flex */
	overflow:scroll;
}

.submenu li {
    border-bottom: 1px solid rgba(229, 231, 235, 0.3);
}

    .submenu li:last-child {
        border-bottom: none;
    }

.submenu a {
    display: block;
    padding: 12px 16px 12px 48px;
    text-decoration: none;
    color: #4b5563;
    font-size: 13px;
    transition: all 0.2s ease;
}

    .submenu a:hover {
        background-color: #f3f4f6;
        color: #4f46e5;
    }

/* Sub-submenu styles */
.submenu, .sub-submenu {
    max-height: max-content;
    overflow: hidden;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #eef1f6;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    display: block;
}

    .submenu.open, .sub-submenu.open {
        max-height: 500px;
        opacity: 1;
    }

.has-submenu.active > .sub-submenu {
    max-height: 500px;
    opacity: 1;
}

.menu-item-all.active > a {
    color: #4f46e5;
    background-color: rgba(79, 70, 229, 0.08);
}

    .menu-item-all.active > a .arrow-icon {
        transform: rotate(180deg);
        color: #4f46e5;
    }
.submenu, .sub-submenu {
    display: none;
    padding-left: 20px;
}

    .submenu.open, .sub-submenu.open {
        display: block;
    }
.menu-item-all.active > a,
.has-submenu.active > a {
    font-weight: bold;
}

@media only screen and (min-width: 320px) and (max-width: 650px) {
    .ed-mm-inn {
        width: 80%;
        background-color: #fff;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        padding: 15px 25px;
        overflow: scroll;
    }

}
@media only screen and (min-width: 651px) and (max-width: 1024px) {
    .ed-mm-inn {
        width: 50%;
        background-color: #fff;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        padding: 15px 25px;
        overflow: scroll;
    }
    .agent-menu-scroll {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        
    }
}


/*Dashboard Master css*/
.dash-head-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 !important;
}

.dash-head-info {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f9 100%);
    border-radius: 12px;
    padding: 0 !important;
    padding: 16px 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .dash-head-info:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    }

/* Logo styling */
.dash-logo-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    margin-right: 20px;
}

.dash-logo {
    width: 70px !important;
    height: 70px !important;
    position:static !important;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* User info styling */
.dash-user-info {
    flex: 1;
}

.dash-designation {
    font-weight: 600;
    font-size: 14px;
    color: #5c6ac4;
    padding: 0 !important;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

    .dash-designation svg {
        margin-right: 8px;
        flex-shrink: 0;
    }

.dash-name {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    margin-top:0!important;
    display: flex;
    align-items: center;
}

    .dash-name svg {
        margin-right: 10px;
        flex-shrink: 0;
    }

.dash-status {
    position: absolute;
    top: 16px;
    right: 24px;
    display: flex;
    align-items: center;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 8px;
}

.status-text {
    font-size: 14px;
    color: #64748b;
}

/* Decorative elements */
.dash-decorative-icon {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 80px;
    height: 80px;
    opacity: 0.07;
}

    /* List container - parent > child relationship */
    .app-navigation__container .navigation-menu__list {
        list-style: none;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

.navigation-menu__list .menu-item__wrapper {
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.menu-item__wrapper .menu-item__link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 15px;
    padding: 7px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

    .menu-item__wrapper .menu-item__link:hover {
        background-color: #f1f5f9;
        color: #4f46e5;
    }

    /* Icon styling - grandparent > parent > child relationship */
    .menu-item__wrapper .menu-item__link .menu-item__icon {
        margin-right: 10px;
        width: 20px;
        height: 20px;
        transition: all 0.2s ease;
        color: #6b7280;
    }

  


/* Media query for smaller screens */
@media (max-width: 640px) {
    .app-navigation__container .navigation-menu__list {
        flex-direction: column;
        gap: 5px;
    }

    .menu-item__wrapper .menu-item__link {
        width: 100%;
    }
}

.sidebar__section-header {
    display: flex;
    align-items: center;
    padding: 0;
    margin-top: 10px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 16px;
    border-left: 3px solid transparent;
}

    .sidebar__section-header .header__icon {
        margin-right: 10px;
        display: flex;
        align-items: center;
        color: #4361ee;
    }

/* Menu list */
.sidebar__menu-list {
    list-style: none;
    padding: 0 0 15px 0;
    margin: 0;
}

/* Menu items */
.menu__item {
    position: relative;
    transition: all 0.2s ease;
}



    .menu__item a {
        display: block;
        padding: 10px 25px 10px 50px;
        color: #6c757d;
        text-decoration: none;
        font-size: 14px;
        transition: all 0.2s ease;
        position: relative;
    }
    .menu__item:hover a {
        color: #4361ee;
        background-color: rgba(67, 97, 238, 0.05);
    }
    .menu__item.active a {
        color: #4361ee;
        font-weight: 500;
    }

.slick-arrow-new{
    width: auto;
    height: auto;
    display: block !important;
    background: #007bff;
    border: 1px solid rgb(237, 237, 237);
    color: white;
    position: static;
    z-index: 1;
    top: 38%;
    text-align: center;
    padding: 14px 17px;
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 14px -3px;
    transition: all 0.5s ease 0s;
}