* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 230px;
    background: #24052f;
    color: white;
    display: flex;
    flex-direction: column;
    padding: 20px 10px 0 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    left: 0;
    top: 0;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-family: 'Roboto', sans-serif;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-align: center;
}

.status-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.3s;
    position: relative;
        border-radius: 24px;
    background: #f9a8221c;
}

.status-dropdown:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.status-indicator.away {
    background-color: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}

.status-indicator.busy {
    background-color: #9ca3af;
    box-shadow: 0 0 8px #9ca3af;
}

.status-indicator.offline {
    background-color: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}

.status-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background-color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 150px;
    display: none;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.status-dropdown.active .status-menu {
    display: block;
}

.status-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 16px 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.status-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.status-option span {
    font-size: 14px;
    color: black;
}

.status-text {
    font-size: 14px;
    font-weight: 500;
}

.dropdown-arrow {
    font-size: 12px;
    margin-left: auto;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}



.nav-item.active {
    background-color: #f9a822;
    color: black;
    border-left-color: #fbbf24;
}
.nav-item.active span{
    color: #000;
}
.nav-item.active i{
    color: #000;
}

.nav-item i {
    font-size: 16px;
    width: 20px;
    color: rgba(255,255,255,.5);
    text-align: center;
}

.nav-item span {
   display: inline-block;
    padding-left: 10px;
    color: rgba(255,255,255,.5);
    font-size: 13px;
    vertical-align: top;
    line-height: 1.1;
    font-weight: 500;
    width: 140px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: 'Poppins', sans-serif;
}
.nav-item:hover span{
    color: #fff;
}
.nav-item:hover i{
    color: #fff;
}
.nav-item.active:hover span{
    color: #000;
}
.nav-item.active:hover i{
    color: #000;
}
/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar-footer .tt{
    text-align: center;
    color: rgba(255,255,255,.5);
    font-size: 12px;
    font-weight: 500;
    display: block;
    padding: 0 0 10px;
}

/* Settings Dropdown */
.settings-dropdown {
    position: relative;
    cursor: pointer;
    border-left: 0;
}

.nav-item-content {
    display: flex;
    align-items: center;
    /* gap: 12px;
    padding: 14px 20px; */
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
    border-left: 3px solid transparent;
}
.settings-dropdown .nav-item-content span{
        padding: 0 0 0 22px;
}
.settings-dropdown .dropdown-arrow {
    font-size: 12px;
    margin-left: auto;
    color: rgba(255,255,255,.5);
        padding: 0 0px 0 0;
}

.settings-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0px;
    background-color: #f3a070;
    border-radius: 0px;
    padding: 0;
    min-width: 220px;
    display: none;
    z-index: 100;
    overflow: hidden;
}

.settings-dropdown.active .settings-menu {
    display: block;
}

.settings-menu-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background-color: #e8941f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-menu-header i {
    font-size: 16px;
    color: #333;
}

.settings-menu-header span {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    font-family: 'Poppins', sans-serif;
}

.settings-menu-item {
    display: block;
    padding: 9px 16px 9px 53px;
    color: #24052f;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.2s;
    font-family: 'Poppins', sans-serif;

}

.settings-menu-item:last-child {
    border-bottom: none;
}

.settings-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* .settings-dropdown.active .nav-item-content {
    background-color: #f9a822;
    color: black;
    border-left-color: #fbbf24;
} */

.settings-dropdown.active .nav-item-content span {
    color: #000;
}

.settings-dropdown.active .nav-item-content i {
    color: #000;
}
.requests-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background-color: #f9a822;
    border-radius: 24px;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: 0;
}


.requests-button i {
    font-size: 16px;
    display: none;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 230px;
    background-color: #ffffff;
    min-height: 100vh;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb {
    font-size: 14px;
    color: #2f3941;
    font-weight: 700;
   
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-icon {
    /* width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s; */
    width: 20px;
    height: 20px;
}

.header-icon svg {
    /* font-size: 1.2rem;
    color: #bbb;
    cursor: pointer;
    margin: 0 4px; */
    font-size: 1.2rem;
        width: 20px;
    height: 20px;
    fill: #bbb;
}



.notification-icon {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

.header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.header-avatar img {
 width: 30px;
    height: 30px;
    border: 1px solid #bbb;
    border-radius: 50%;
    cursor: pointer;
}

.teamico {
    position: relative;
}
.noti {
    position: relative;
}
.noti.active .team-dropdown {
    display: block;
}

.team-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    display: none;
    z-index: 1000;
}

.teamico.active .team-dropdown {
    display: block;
}

.team-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
 font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #2f3941;
}
.team-dropdown-header p{
        display: block;
    font-size: 10px;
    color: #68737d;
    font-weight: 400;
    letter-spacing: 0;
}

.team-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.team-dropdown-item:hover {
    background-color: #f3f4f6;
}

.team-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-avatar span {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.team-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.team-name {
      text-align: left;
    color: #49545c;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    letter-spacing: -.3px;

    font-family: 'Poppins', sans-serif;
}

.noti .team-dropdown-item {
   justify-content: center;
   display: block;
}
.noti .team-info{
        padding: 0 0 10px;
}
.noti .team-name {
    font-size: 11px;
    font-weight: 600;
    color: #000;
    padding: 0px 0;
}
.noti p {
    font-size: 11px;
    font-weight: 400;
    color: #000;
    padding: 0px 0;
}

.header-avatar {
    position: relative;
}

.avatar-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    display: none;
    z-index: 1000;
}

.header-avatar.active .avatar-dropdown {
    display: block;
}

.avatar-dropdown-header {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.avatar-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-name {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    display: block;
}

.avatar-email {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #6b7280;
    display: block;
}

.avatar-dropdown-menu {
    padding: 8px 0;
}

.avatar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #1f2937;
    text-decoration: none;
    transition: background-color 0.2s;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
}
.avatar-dropdown-item.leave{
    text-align: center;
    justify-content: center;
    color: #68737d;
    font-size: 12px;
}
.avatar-dropdown-item:hover {
    background-color: #f3f4f6;
}

.avatar-dropdown-item i {
    font-size: 14px;
    color: #6b7280;
    width: 16px;
}

.avatar-dropdown-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 8px 0;
}

.team-dropdown-footer {
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
}





.user-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.user-icon:hover {
    background-color: #e5e7eb;
}

.user-icon i {
    font-size: 24px;
    color: #6b7280;
}

/* Content Wrapper */
.content-wrapper {
    padding: 20px;
}

.greeting {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #4a4a4a;
    margin-bottom: 30px;
    position:relative;
}
.greeting:before{
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    background: #eaeaea;
    height: 1.5px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}



/* .card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0px;
} */

.card-icon i {
    font-size: 17px;
    color: black;
}
.card .d-flex{
    display: flex;
    align-items: center;
    gap: 6px;
}

.widget-icon {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.visitor-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.analytics-icon {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.trigger-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.card-title {
        margin: 0;
    font-size: 16px;
    color: #000;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    vertical-align: middle;
    text-transform: capitalize;
    font-family: Poppins, sans-serif;
}

.card-description {
       color: #68737d;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0;
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
    width: 95%;
        padding: 10px 0 0;
}

.card-link {
    font-size: 13px;
    color: #b526e6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    font-family: 'Poppins', sans-serif;
}

.card-link:hover {
    color: #b526e6;
}

/* Analytics Section */
.analytics-section {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.analytics-header h2 {
    margin: 0;
    font-weight: 600;
     font-family: 'Poppins';
     color: #2f3941;
     font-size:16px;
}

.time-filters {
    display: flex;
    gap: 8px;
}

.time-filter {
    padding: 8px 10px;
    border: 0px solid #e5e7eb;
    border-radius: 0px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    background-color: transparent;
}



.time-filter.active {

    font-weight: 900;
     font-family: 'Poppins';
     color: #2f3941;
 
}

/* Chart */
/* .analytics-chart {
    margin-top: 20px;
}

.chart-legend {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.page-views {
    background-color: #6366f1;
}

.total-visits {
    background-color: #8b5cf6;
}

.unique-visitors {
    background-color: #a855f7;
}

.chats {
    background-color: #d946ef;
}

.chart-container {
    width: 100%;
    height: 300px;
    position: relative;
}

.line-chart {
    width: 100%;
    height: 100%;
} */
 .analytics-card{
    width:100%;
    border:1px solid #e5e5e5;
    border-radius:10px;
    padding:20px;
}

.analytics-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
}



.filter-tabs{
    display:flex;
    gap:40px;
}

.filter-tabs button{
    border:none;
    background:none;
    cursor:pointer;
    font-size:13px;
    font-weight:700;
    color:#555;
    text-transform:uppercase;
}

.filter-tabs button.active{
    color:#000;
    font-weight: 900;
}

.chart-wrapper{
    height:400px;
}

@media (max-width:1366px){
    .chat-history{
        max-height: 320px !important;
    }
}

/* Responsive Design */

/* iPad Styles (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Sidebar should be hidden by default on iPad */
    .sidebar {
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease-in-out;
        z-index: 1000 !important;
        width: 250px;
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
        background: #24052f;
        -webkit-transform: translateX(-100%) !important;
        -webkit-transition: -webkit-transform 0.3s ease-in-out;
    }
    
    .sidebar.active {
        transform: translateX(0) !important;
        -webkit-transform: translateX(0) !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    /* Show hamburger menu on iPad */
    .mobile-menu-toggle {
        display: block !important;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1002 !important;
        background: #24052f;
        color: white;
        border: none;
        padding: 12px 15px;
        border-radius: 8px;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: #3a0a45;
        transform: scale(1.05);
    }
    
    .mobile-menu-toggle:active {
        transform: scale(0.95);
    }
    
    .mobile-menu-toggle i {
        font-size: 20px;
        transition: transform 0.3s ease;
    }
    
    .mobile-menu-toggle.active i {
        transform: rotate(90deg);
    }
    
    /* Show overlay on iPad */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }
    
    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }
    
    .main-header {
        padding: 15px 25px;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .card {
        padding: 20px;
    }
    
    .card-description {
        font-size: 13px;
    }
    
    .analytics-header {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .filter-tabs {
        gap: 25px;
    }
    
    .filter-tabs button {
        font-size: 12px;
    }
    
    .chart-wrapper {
        height: 350px;
    }
    
    /* Agents Page */
    .agents-page .agents-header {
        flex-wrap: wrap;
    }
    
    .agents-page .agents-search {
        flex: 1;
        min-width: 300px;
    }
    
    .agents-page .agents-summary {
        flex-wrap: wrap;
    }
    
    .agents-page .agents-table th,
    .agents-page .agents-table td {
        padding: 12px 15px;
        font-size: 11px;
    }
    
    /* Visitors Page */
    .visitors-header {
        flex-wrap: wrap;
    }
    
    .visitors-filter {
        flex-wrap: wrap;
    }
    
    .search-box {
        width: 200px;
    }
    
    .visitors-table th,
    .visitors-table td {
        padding: 12px 15px;
        font-size: 11px;
    }
    
    /* History Page */
    .history .top-bar {
        flex-wrap: wrap;
    }
    
    .history .filters {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .history .search-box input {
        width: 180px;
    }
    
    .history th,
    .history td {
        padding: 12px 10px;
        font-size: 11px;
    }
    
    /* Analytics Page */
    .chat-analytics .top-header {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .chat-analytics .filters {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .chat-analytics .left-filter,
    .chat-analytics .right-filter {
        flex: 1;
        min-width: 200px;
    }
    
    /* Departments Page */
    .departments-page .agents-header {
        flex-wrap: wrap;
    }
    
    /* Agent Details Page */
    .agent-details-container {
        flex-direction: column;
    }
    
    .agent-details-sidebar {
        flex: 1;
        max-width: 100%;
    }
}

/* Mobile Styles (max-width: 767px) */
@media (max-width: 767px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000 !important;
        width: 280px;
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
        background: #24052f;
        -webkit-transform: translateX(-100%);
        -webkit-transition: -webkit-transform 0.3s ease-in-out;
    }
    
    .sidebar.active {
        transform: translateX(0);
        -webkit-transform: translateX(0);
    }
    
    /* Mobile Menu Toggle Button */
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1002;
        background: #24052f;
        color: white;
        border: none;
        padding: 12px 15px;
        border-radius: 8px;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: #3a0a45;
        transform: scale(1.05);
    }
    
    .mobile-menu-toggle:active {
        transform: scale(0.95);
    }
    
    .mobile-menu-toggle i {
        font-size: 20px;
        transition: transform 0.3s ease;
    }
    
    .mobile-menu-toggle.active i {
        transform: rotate(90deg);
    }
    
    /* Mobile Menu Toggle Button */
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1002;
        background: #24052f;
        color: white;
        border: none;
        padding: 12px 15px;
        border-radius: 8px;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: #3a0a45;
        transform: scale(1.05);
    }
    
    .mobile-menu-toggle:active {
        transform: scale(0.95);
    }
    
    .mobile-menu-toggle i {
        font-size: 20px;
        transition: transform 0.3s ease;
    }
    
    .mobile-menu-toggle.active i {
        transform: rotate(90deg);
    }
    
    /* Add overlay when sidebar is active */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }
    
    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }
    
    /* Improve sidebar navigation items for mobile */
    .nav-item {
        padding: 16px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .nav-item span {
        font-size: 14px;
    }
    
    .nav-item i {
        font-size: 18px;
    }
    
    /* Settings dropdown on mobile */
    .settings-menu {
        position: static;
        margin-top: 10px;
        margin-left: 0;
        box-shadow: none;
        border-radius: 0;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .settings-menu-header {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .settings-menu-item {
        padding: 12px 20px 12px 53px;
        color: white;
    }
    
    .settings-menu-item:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-wrapper {
        padding: 15px;
    }
    
    .main-header {
        padding: 12px 15px;
    }
    
    .breadcrumb {
        font-size: 12px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .header-icon {
        width: 18px;
        height: 18px;
    }
    
    .header-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .header-avatar {
        width: 35px;
        height: 35px;
    }
    
    .header-avatar img {
        width: 25px;
        height: 25px;
    }
    
    .greeting {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    /* Cards Grid */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .card .d-flex {
        width: 100%;
    }
    
    .card-description {
        font-size: 13px;
        width: 100%;
    }
    
    .img-title {
        width: 100%;
        text-align: center;
    }
    
    .img-title img {
        max-width: 100px;
        height: auto;
    }
    
    /* Analytics Section */
    .analytics-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .analytics-header h2 {
        font-size: 18px;
    }
    
    .filter-tabs {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .filter-tabs button {
        font-size: 11px;
        padding: 5px 0;
    }
    
    .chart-wrapper {
        height: 300px;
    }
    
    /* Agents Page */
    .agents-page .agents-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .agents-page .agents-search {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .agents-page .agents-search .search-box {
        width: 100%;
    }
    
    .agents-page .agents-search .search-box input {
        width: 100%;
    }
    
    .agents-page .add-agent-btn {
        width: 100%;
        margin-top: 10px;
    }
    
    .agents-page .agents-summary {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .agents-page .agents-summary p {
        font-size: 12px;
    }
    
    .agents-page .agents-summary .agents-select {
        width: 100%;
        margin-top: 10px;
    }
    
    /* Responsive Table for Agents */
    .agents-page .agents-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .agents-page .agents-table thead {
        display: none;
    }
    
    .agents-page .agents-table tbody,
    .agents-page .agents-table tr,
    .agents-page .agents-table td {
        display: block;
        width: 100%;
    }
    
    .agents-page .agents-table tr {
        margin-bottom: 15px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 15px;
        background: white;
    }
    
    .agents-page .agents-table td {
        padding: 10px 0;
        text-align: left;
        border-bottom: 1px solid #f2f2f2;
    }
    
    .agents-page .agents-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #2f3941;
        display: block;
        margin-bottom: 5px;
        font-size: 12px;
    }
    
    .agents-page .agents-table td:first-child,
    .agents-page .agents-table td:nth-child(2) {
        display: none;
    }
    
    /* Visitors Page */
    .visitors-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .visitors-filter {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .visitors-filter .dropdown-btn {
        width: 100%;
        justify-content: space-between;
    }
    
    .visitors-count {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .visitors-count .search-box {
        width: 100%;
        margin: 0 0 10px 0;
    }
    
    .visitor-data {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .visitor-data .icos {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    /* Responsive Table for Visitors */
    .visitors-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .visitors-table thead {
        display: none;
    }
    
    .visitors-table tbody,
    .visitors-table tr,
    .visitors-table td {
        display: block;
        width: 100%;
    }
    
    .visitors-table tr {
        margin-bottom: 15px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 15px;
        background: white;
    }
    
    .visitors-table td {
        padding: 10px 0;
        text-align: left;
        border-bottom: 1px solid #f2f2f2;
    }
    
    .visitors-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #2f3941;
        display: block;
        margin-bottom: 5px;
        font-size: 12px;
    }
    
    .visitor-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* History Page */
    .history .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .history .search-box input {
        width: 100%;
    }
    
    .history .filters {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .history .filter-btn {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .unread {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    
    .history .table-container {
        height: auto;
        max-height: 500px;
    }
    
    /* Responsive Table for History */
    .history table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .history thead {
        display: none;
    }
    
    .history tbody,
    .history tr,
    .history td {
        display: block;
        width: 100%;
    }
    
    .history tr {
        margin-bottom: 15px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 15px;
        background: white;
    }
    
    .history td {
        padding: 10px 0;
        text-align: left;
        border-bottom: 1px solid #f2f2f2;
    }
    
    .history td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #2f3941;
        display: block;
        margin-bottom: 5px;
        font-size: 12px;
    }
    
    .history td:first-child {
        display: none;
    }
    
    .history td span {
        max-width: 100%;
        white-space: normal;
    }
    
    /* Analytics Page */
    .chat-analytics .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .chat-analytics .header-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .chat-analytics .header-actions button,
    .chat-analytics .header-actions select {
        width: 100%;
    }
    
    .chat-analytics .filters {
        flex-direction: column;
        gap: 15px;
    }
    
    .chat-analytics .left-filter h1 {
        font-size: 14px;
    }
    
    .chat-analytics .filter-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .chat-analytics .filter-row select {
        width: 100%;
    }
    
    .chat-analytics .right-filter select {
        width: 100%;
    }
    
    .chat-analytics .overview {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .chat-analytics .chart-navigation {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .chat-analytics .chart-navigation button {
        flex: 1;
        min-width: 100px;
        font-size: 11px;
        padding: 8px 10px;
    }
    
    /* Departments Page */
    .departments-page .agents-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .departments-page .agents-search {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .departments-page .agents-search .search-box {
        width: 100%;
    }
    
    .departments-page .add-agent-btn {
        width: 100%;
        margin-top: 10px;
    }
    
    /* Responsive Table for Departments */
    .departments-page .agents-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .departments-page .agents-table thead {
        display: none;
    }
    
    .departments-page .agents-table tbody,
    .departments-page .agents-table tr,
    .departments-page .agents-table td {
        display: block;
        width: 100%;
    }
    
    .departments-page .agents-table tr {
        margin-bottom: 15px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 15px;
        background: white;
    }
    
    .departments-page .agents-table td {
        padding: 10px 0;
        text-align: left;
        border-bottom: 1px solid #f2f2f2;
    }
    
    .departments-page .agents-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #2f3941;
        display: block;
        margin-bottom: 5px;
        font-size: 12px;
    }
    
    .departments-page .agents-table td:first-child,
    .departments-page .agents-table td:nth-child(2) {
        display: none;
    }
    
    .num-messgae {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Agent Details Page */
    .agent-details-container {
        flex-direction: column;
    }
    
    .agent-details-form {
        padding: 15px;
    }
    
    .agent-details-form h2 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .agent-details-form .form-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .agent-details-form .form-group label {
        flex: none;
        width: 100%;
    }
    
    .agent-details-form .form-group input,
    .agent-details-form .form-group select,
    .agent-details-form .form-group textarea {
        max-width: 100%;
        width: 100%;
    }
    
    .agent-details-form .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .agent-details-form .form-actions {
        flex-direction: column;
    }
    
    .agent-details-sidebar {
        max-width: 100%;
    }
    
    /* Dropdowns and Modals */
    .team-dropdown,
    .avatar-dropdown {
        right: -50px;
        min-width: 200px;
    }
    
    .settings-menu {
        left: auto;
        right: 0;
        min-width: 200px;
    }
    
    /* History Sidebar */
    .history-sidebar {
        width: 100%;
        right: -100%;
        max-height: 100vh;
    }
    
    .history.sidebar-open .history-sidebar {
        right: 0;
    }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    .main-header {
        padding: 10px 12px;
    }
    
    .breadcrumb {
        font-size: 11px;
    }
    
    .content-wrapper {
        padding: 12px;
    }
    
    .greeting {
        font-size: 16px;
    }
    
    .card {
        padding: 15px;
    }
    
    .card-title {
        font-size: 14px;
    }
    
    .card-description {
        font-size: 12px;
    }
    
    .card-link {
        font-size: 12px;
    }
    
    .analytics-header h2 {
        font-size: 16px;
    }
    
    .filter-tabs button {
        font-size: 10px;
    }
    
    .chart-wrapper {
        height: 250px;
    }
    
    .agents-page .add-agent-btn,
    .departments-page .add-agent-btn {
        font-size: 10px;
        padding: 8px 12px;
    }
    
    .history .filter-btn {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .chat-analytics .chart-navigation button {
        font-size: 10px;
        padding: 6px 8px;
    }
    
    .agent-details-form .form-group label {
        font-size: 12px;
    }
    
    .agent-details-form .form-group input,
    .agent-details-form .form-group select,
    .agent-details-form .form-group textarea {
        font-size: 12px;
    }
    
    .mobile-menu-toggle {
        padding: 10px 12px;
    }
    
    .mobile-menu-toggle i {
        font-size: 18px;
    }
}

/* Mobile Menu Toggle Button - Hidden on desktop (1024px+) */
@media (min-width: 1025px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    /* Reset sidebar for desktop */
    .sidebar {
        transform: translateX(0);
        -webkit-transform: translateX(0);
        width: 230px;
    }
    
    .main-content {
        margin-left: 230px;
    }
    
    /* Hide overlay on desktop */
    .sidebar-overlay {
        display: none !important;
    }
    
    /* Reset sidebar z-index for desktop */
    .sidebar {
        z-index: 1000 !important;
    }
}

/* Scrollbar Styling */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

/* Agents Page Styles - Scoped to .agents-page */
.agents-page-body {
    overflow: hidden;
    height: 100vh;
}

.agents-page {
    height: 100vh;
    overflow: hidden;
}

.agents-page .main-content {
    height: 100%;
    overflow: hidden;
}

.agents-page .content-wrapper {
    height: calc(100vh - 80px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.agents-page .agents-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 0 10px;
}

.agents-page .agents-search {
    display: flex;
    align-items: center;
    gap: 15px;
}

.agents-page .agents-search .search-box {
    display: flex;
    align-items: center;
    gap: 0px;
    margin: 0;
}

.agents-page .agents-search .search-box input {
        padding: 0 0 0 10px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    width: 100%;
    box-shadow: none;
    border: 1px solid #d5cdd7;
}

.agents-page .agents-search .search-box input::placeholder {
    color: #9ca3af;
}

.agents-page .add-agent-btn {
    padding: 7px 10px;
    background-color: #b526e6;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
}

.agents-page .add-agent-btn:hover {
    background-color: #f59e0b;
}

.agents-page .agents-summary {
    display: flex;
    align-items: center;
}
.agents-page .agents-summary p {
    font-weight: 500;
    margin: 0 10px 0 auto;
    font-size: 14px;
    line-height: 30px;
    color: #000;

}
.agents-page .agents-summary .agents-select {
    padding: 4px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    color: #68737d;
    background-color: white;
    cursor: pointer;
}

.agents-page .agents-content {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.agents-page .table-wrapper {
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 210px);
}

.agents-page .agents-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    table-layout: fixed;
}

.agents-page .agents-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f9fafb;
}

/* .agents-page .agents-table th:last-child,
.agents-page .agents-table td:last-child {
    width: 80px;
    min-width: 80px;
} */

.agents-page .agents-table thead {
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.agents-page .agents-content::-webkit-scrollbar {
    width: 8px;
}

.agents-page .agents-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.agents-page .agents-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.agents-page .agents-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
.agents-page .agents-table th {
    padding: 15px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #2f3941;
    font-family: 'Poppins', sans-serif;
    background-color: #f8ebfe;
}

.agents-page .agents-table tbody tr {
    border-bottom: 1px solid #f2f2f2;
    cursor: pointer;
}

.agents-page .agents-table tbody tr.agent-row:hover {
    background-color: #f9fafb;
}

.agents-page .agents-table tbody tr:hover {
    background-color: #f9fafb;
}

.agents-page .agents-table tbody tr.pending-row {
        opacity: .8;
    pointer-events: none;
    cursor: not-allowed;
    
}

.agents-page .agents-table tbody tr.pending-row:hover {
    background-color: #fafafa;
}

.agents-page .agents-table tbody tr.pending-row td {
    color: #f9a822;
}

.agents-page .agents-table td {
    padding: 12px 20px;
    font-size: 12px;
    color: #848282;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
}

.agents-page .agents-table td:first-child {
    width: 40px;

}

.agents-page .agents-table td:nth-child(2) {
    width: 30px;

}

/* .agents-page .agents-table td:last-child {
    width: 70px;
    text-align: center;
    min-width: 70px;
} */

.agents-page .agents-table th:first-child {
    width: 40px;

}

.agents-page .agents-table th:nth-child(2) {
    width: 30px;
  
}

/* .agents-page .agents-table th:nth-child(3) {
    width: 15%;
}

.agents-page .agents-table th:nth-child(4) {
    width: 15%;
}

.agents-page .agents-table th:nth-child(5) {
    width: 25%;
}

.agents-page .agents-table th:nth-child(6) {
    width: 12%;
}

.agents-page .agents-table th:nth-child(7) {
    width: 10%;
}

.agents-page .agents-table th:last-child {
    width: 80px;
    text-align: center;
    min-width: 80px;
} */

.agents-page .agents-table input[type="checkbox"] {
    width: 12px;
    height: 12px;
    cursor: pointer;
    accent-color: #b526e6;
    border-radius: 5px;
}

.agents-page .agents-table input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.agents-page .status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.agents-page .status-dot.online {
    background-color: #22c55e;
}

.agents-page .status-dot.offline {
    background-color: #ffb24d;
}

.agents-page .user-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.agents-page .user-status-badge.accepted {
    
    color: #848282;
}
.agent-note{
    background-color: #fff;
        padding: 10px 0 0;
        text-align: center;
}
.agent-note p{
    margin: 0;
        color: #68737d;
    line-height: 1.5;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    letter-spacing: 0;
    margin: 0 auto;
    padding: 0;
    font-family: 'Poppins';
}
/* .agents-page .user-status-badge.pending {
   
    color: #92400e;
} */

.agents-page .enabled-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

.agents-page .enabled-icon {

    color: #1f73b6;

}
.agents-page .enabled-icon img {

    fill: #1f73b6;
    width: 10px;
    height: 10px;
    
}

/* .agents-page .enabled-icon.disabled {
    background-color: #fee2e2;
    color: #991b1b;
} */

/* Agent Details Page Styles */
.agent-details-page {
    padding: 20px;
}

.agent-details-container {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.agent-details-form {

    background: white;
    padding: 20px;
   
}

.agent-details-form h2 {
    margin: 0 0 30px;
    font-size: 24px;
    font-weight: 600;
    color: #2f3941;
    font-family: 'Poppins', sans-serif;
}

.agent-details-form .form-group {
    margin-bottom: 25px;
        display: flex;
    align-items: center;
    gap: 20px;
}

.agent-details-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.agent-details-form .form-group button{
        border: 1px solid #ccc;
    background: none;
    padding: 10px;
    border-radius: 5px;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
}
.agent-details-form .form-group button.active{
    background-color: #b526e6;
    color: #fff;
}
.agent-details-form .form-group label {
    display: block;
    margin-bottom: 0px;
    font-size: 14px;
    font-weight: 500;
    color: #2f3941;
    flex: 0 0 150px;
    font-family: 'Poppins', sans-serif;
}

.agent-details-form .form-group input,
.agent-details-form .form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    min-height: 30px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #2f3941;
    max-width: 300px;
}
.agent-details-form .form-group textarea{
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    min-height: 150px;
    font-size: 14px;
    resize: none;
    font-family: 'Poppins', sans-serif;
    color: #2f3941;
    max-width: 300px;
}
.agent-details-form .field-hint {
    margin: 10px 0 0 0;
    font-size: 12px;
    color: #68737d;
    line-height: 1.4;
    font-family: 'Poppins', sans-serif;
    max-width: 300px;
}

.agent-details-form .form-group input[readonly] {
    background-color: #f9fafb;
   pointer-events: none;
}
.agent-details-sidebar {
    flex: 0 0 40%;
    max-width: 40%;
}

.agent-details-form .form-actions {
    display: flex;
    gap: 10px;
    margin: 30px 0;
}

.agent-details-form .btn-enabled,
.agent-details-form .btn-disabled {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
}

.agent-details-form .btn-enabled {
    background-color: #b526e6;
    color: white;
}

.agent-details-form .btn-enabled:hover {
    background-color: #9333ea;
}

.agent-details-form .btn-disabled {
    background-color: #ef4444;
    color: white;
}

.agent-details-form .btn-disabled:hover {
    background-color: #dc2626;
}

.agent-details-form .form-buttons {

    margin-top: 30px;
}

.agent-details-form .btn-update,
.agent-details-form .btn-cancel {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
}

.agent-details-form .btn-update {
    background-color: #b526e6;
    color: white;
}

.agent-details-form .btn-update:hover {
    background-color: #9333ea;
}

.agent-details-form .btn-cancel {
    background-color: #f3f4f6;
    color: #2f3941;
}

.agent-details-form .btn-cancel:hover {
    background-color: #e5e7eb;
}



.agent-details-sidebar .sidebar-section {
     border: 1px solid #f4b500;
    border-radius: 3px;
    width: 100%;
    padding: 10px;
    color: #49545c;
    display: table;
    margin: 15px 0;
}

.agent-details-sidebar .sidebar-section h3 {
        color: #2f3941;
    font-weight: 800;
    margin: 0 0 8px;
    padding: 0;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0;

}

.agent-details-sidebar .sidebar-section p {
      color: #49545c;
    font-size: 12px;
    margin: 0;
    padding: 0;
    line-height: 1;
    letter-spacing: 0;
}

.agent-details-sidebar .sidebar-section.tips{
    background-color: transparent;
    border: 0;
}
.agent-details-sidebar .sidebar-section.tips h3{
    color: #4a4a4a;
    font-weight: 700;
    font-size: 18px;
    position: relative;
    border-bottom: 1px solid #eaeaea;
    padding: 0 0 10px;
}
.agent-details-sidebar .sidebar-section.tips h6{
        color: #000;
    line-height: 1.5;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0;
    margin: 10px auto 10px 0;
    padding: 0;
 
}
.agent-details-sidebar .sidebar-section.tips p{
      color: #68737d;
    line-height: 1.5;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0;
    margin: 0;
    padding: 0;

 
}

.breadcrumb-link {
    color: #68737d;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-link:hover {
    color: #b526e6;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #9ca3af;
}

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

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

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Visitors Page Styles */
.visitors-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 0 10px;
}

.visitors-filter {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dropdown {
    position: relative;
}

.visitors-filter .dropdown-btn {
        display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 23px;
    background-color: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.visitors-filter .dropdown-btn:hover {
    background-color: #e5e7eb;
}

.visitors-filter .dropdown-btn i {
    font-size: 12px;
    color: #6b7280;
}

.visitors-filter .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    display: none;
    z-index: 100;
}

.visitors-filter .dropdown.active .dropdown-menu {
    display: block;
}

.visitors-filter .dropdown-item {
  display: block;
    padding: 7px 16px;
    color: #333333;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    transition: background-color 0.2s;
    font-family: 'Poppins', sans-serif;
}

.visitors-filter .dropdown-item:hover {
    background-color: #f3f4f6;
}

.visitors-filter .dropdown-item.active {
    background-color: #f9a822;
    color: #000;
    font-weight: 600;
}

.visitors-filter .dropdown-menu {
    display: none;
}
.visitors-filter .dropdown-menu.active{
    display: block;
}

.visitors-filter .dropdown.active .dropdown-menu {
    display: block;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 10px 0 0;
    width: 150px;
}



.search-box input {
padding: 0 0 0 10px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    width: 100%;
    box-shadow: none;
    border: 1px solid #d5cdd7;
    min-height: 30px;
    font-size: 12px;
}

.search-box input::placeholder {
    color: #9ca3af;
}

.visitors-count {
    display: flex;
    align-items: center;
}

.visitors-count span {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    font-family: 'Poppins', sans-serif;

}

.visitors-content {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    margin: 0 0 20px;
}

.no-visitors {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    height: 100%;
    padding: 40px;
}

.no-visitors p {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

.simulate-btn {
    padding: 12px 24px;
    background-color: #f9a822;
    color: black;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}
.simulate p{
    align-items: center;
    justify-content: center;
    font-style: italic;
    color: #68737d;
    font-weight: 500;
    text-align: center;
    word-break: break-all;
    padding: 20px 0 0;
}
.simulate-btn:hover {
    background-color: #f59e0b;
}

.info-link {
    font-size: 13px;
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-family: 'Poppins', sans-serif;
}

.info-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* Visitors Table Styles */
.visitors-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.visitors-table thead {
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.visitors-table th {
    padding: 15px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #2f3941;
    font-family: 'Poppins', sans-serif;
    background-color: #f8ebfe;
}

.visitors-table tbody tr {
   border-bottom: 1px solid #f2f2f2;
    cursor: pointer;
}

.visitors-table tbody tr:hover {
    background-color: #f9fafb;
}

.visitors-table td {
    padding: 12px;
    vertical-align: middle;
    color: #848282;
        padding: 10px 20px 10px;
}

.visitor-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.visitor-avatar {
    width: 15px;
    height: 15px;
   
}
.visitor-data{
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb ;
    padding: 0 0 10px;
    margin: 0 0 10px;
}
.visitor-data .icos{
    margin-right: 10px;
    border-radius: 50%;
    border: 1px solid #d8dcde;
    color: #2f3941;
    padding: 0px;
    width: 27px;
    height: 27px;
    font-size: .6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 27px;
    max-width: 27px;
}
.visitor-data .icos:hover{
    background-color: #ccc;
}
.visitor-data .know-area{
    display: flex;
    align-items: center;
    gap: 10px;
}
.visitor-data .know-area h6{
    font-size: 14px;
    font-weight: 700;
    font-family: 'Roboto';
}

.visitor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visitor-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.visitor-name {
    font-size: 12px;
    font-weight: 400;
    color: #848282;
    font-family: 'Poppins', sans-serif;
    padding: 0 0 0 10px;
}


 .visitordetail_icons{
        margin-left: auto;
     
    }
 .visitordetail_icons img   {
        margin: 0 2px;
        max-width: 16px;
        max-height: 16px;
        object-fit: contain;
    }
.online-status {
        font-size: 12px;
    font-weight: 400;
    color: #848282;
    font-family: 'Poppins', sans-serif;
}




.viewing-page {
       font-size: 12px;
    font-weight: 400;
    color: #848282;
    font-family: 'Poppins', sans-serif;
}

.viewing-time {
    font-size: 12px;
    font-weight: 400;
    color: #848282;
    font-family: 'Poppins', sans-serif;
}

.served-by {
    font-size: 12px;
    font-weight: 400;
    color: #848282;
    font-family: 'Poppins', sans-serif;
}

.referrer {
     font-size: 12px;
    font-weight: 400;
    color: #848282;
    font-family: 'Poppins', sans-serif;
}

.visits-count,
.chats-count {
    font-size: 12px;
    font-weight: 400;
    color: #848282;
    font-family: 'Poppins', sans-serif;
}

/* Responsive Table */
@media (max-width: 1024px) {
    .visitors-table {
        font-size: 13px;
    }
    
    .visitors-table th,
    .visitors-table td {
        padding: 12px;
    }
    
    .visitor-avatar {
        width: 32px;
        height: 32px;
    }
    
    .visitor-name {
        font-size: 13px;
    }
    
    .visitor-location {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .visitors-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .visitors-filter {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-box {
        width: 100%;
    }
    
    .visitors-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .visitors-table thead,
    .visitors-table tbody,
    .visitors-table th,
    .visitors-table td,
    .visitors-table tr {
        display: block;
    }
    
    .visitors-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .visitors-table tr {
        border: 1px solid #e5e7eb;
        margin-bottom: 10px;
        border-radius: 8px;
        padding: 15px;
        background: white;
    }
    
    .visitors-table td {
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: right;
        white-space: normal;
        padding: 12px 12px 12px 50%;
    }
    
    .visitors-table td:before {
        position: absolute;
        top: 12px;
        left: 12px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 600;
        color: #6b7280;
        content: attr(data-label);
    }
    
    .visitor-info {
        flex-direction: column;
        align-items: flex-start;
    }
   
}


.history {
    padding: 15px;
}

.history .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 20px;
}

.history .search-box input {
    width: 220px;
    height: 37px;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    padding: 0 15px;
}

.history .filters {
    display: flex;
    align-items: center;
    gap: 25px;
}

.history .filter-btn {
        border: none;
    background: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 400;
    color: #555;
    text-transform: uppercase;
    background-color: transparent;
}
.unread{
     color: #000;
    font-weight: 700;
    font-size: 14px;
}
.history .filter-btn.active {
    color: #000;
    font-weight: 700;
}

.history .table-container {
    height: 700px;
    overflow-y: auto;
}

.history table {
    width: 100%;
    border-collapse: collapse;
}

.history thead tr {
    background: #f7eaff;
}

.history th,
.history td {
       padding: 15px 15px;
    border-bottom: 1px solid #f1f1f1;
    text-align: left;
        font-weight: 700;
    color: #2f3941;
    font-size: 12px;
}
.history td {
    color: #848282;
    font-weight: 400;
}
.history td span{
       white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    max-width: 195px;
}
.num-messgae{
    display: flex;
    align-items: center;
    grid-area: 5px;
}
.num-messgae p{
        border-radius: 3px;
    color: #49545c;
    background: #e9ebed;
    font-weight: 400;
    font-size: 10px;
    display: inline-block;
    width: 22px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    flex: 0 0 22px;
    margin-right: 5px;
}
.history tbody tr:hover {
    background: #fafafa;
}
.history th:first-child{
    border-top-left-radius: 15px;
}
.history th:last-child{
    border-top-right-radius: 15px;
}

.history-sidebar {
    position: fixed;
    top: 150px;
    right: -450px;
    width: 43%;
    height: 100%;
    background: #fff;
    border-left: 1px solid #ddd;
    transition: .4s ease;
        overflow-y: auto;
    overflow-x: hidden;
    max-height: 780px;
        display: none;
}

.history.sidebar-open .history-sidebar {
    right: 0;
        display: block;
}

.history-sidebar .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid #ddd;
}

.history-sidebar .tabs {
    display: flex;
    gap: 20px;
}

.history-sidebar .tabs button {
    border: 0;
    background: transparent;
    font-weight: 400;
    cursor: pointer;
    font-size: 12px;
      font-family: 'Roboto';
}
.history-sidebar .tabs button.active{
    font-weight: 900;
}

.history-sidebar .close-sidebar {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.history-sidebar .user-details {
    padding: 15px;
    margin: 7px 0;
    padding-right: 10px;
    color: #68737d;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-sidebar .user-details-full {
    padding: 15px;
    margin: 7px 0;
    padding-right: 10px;
    color: #68737d;
    font-size: 12px;
    font-weight: 400;
}

.history-sidebar .tab-content {
    display: none;
}

.history-sidebar .tab-content:first-child {
    display: block;
}

.history-sidebar .detail-row {
    display: flex;
  
    margin-bottom: 10px;
    gap: 20px;
}
.history-sidebar .chat-sidebar{
    width: 100%;
    overflow: hidden;
}

.history-sidebar .chat-body {
    padding: 10px 20px;
        overflow-y: auto;
    overflow-x: hidden;
    max-height: 430px;
}

.history-sidebar .message {
    padding: 10px 0;
    border-bottom: 1px dashed #ccc;
}
.history-sidebar .message {
    font-size: 12px;
}
.history-sidebar .message.center {
    text-align: center;
    font-style: italic;
}


/******************************Modal******************************/
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 9998;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.chat-modal {
  position: fixed;
    top: 50%;
    left: 50%;
    width: 1200px;
    max-width: 95%;
    height: 88vh;
    background: #f0f0f0;
    transform: translate(-50%, -50%) scale(.9);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 9999;
    overflow: hidden;
    border-radius: 8px;
}

.chat-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.chat-header {

    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
        background: #303030;
    padding: 7px 10px;
    min-height: 44px;
   
}

.visitor-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.visitor-info .name{
    font-size: 14px;
    font-weight: 700;
}
.visitor-info span{
    display: flex;
    align-items: center;
    gap: 4px;
}
.avatar {
    margin: 0;
    width: 20px;
    height: 20px;
    object-fit: cover;
    overflow: hidden;
}
.avatar img {
       margin: 0 8px 0 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, .2), 0 0 2px rgba(0, 0, 0, .5);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-actions select {
    width: 120px;
    border: 1px solid #222;
    background-color: #666;
    background: -webkit-linear-gradient(top, #686868, #5f5f5f);
    color: #fff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, .65);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .05), inset 0 1px hsla(0, 0%, 100%, .1);
    max-width: 260px;
    height: 30px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 5px;
    margin: 0 20px 0 0;
    border-radius: 12px;
}
.header-actions select option{
    color: #000;
}
.profile .flexx{
    display: flex;
    gap: 10px;
}
.minimize,
.close-modal {
    width: 30px;
    height: 30px;
    border: 0;
    cursor: pointer;
    border-radius: 50%;
    font-size: 14px;
    margin: 0 0 0 0;
    color: #fff;
    background-color: #666;
}
.close-modal{
        background: -webkit-linear-gradient(top, #ff9833, #ee7d32);
}

/* Add Agent Modal Styles */
.add-agent-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 600px;
    max-width: 90%;
    background: #fff;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 9999;
        padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.add-agent-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.add-agent-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 20px 0px;
  
}

.add-agent-modal .modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.add-agent-modal .close-modal-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.add-agent-modal .close-modal-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.add-agent-modal .modal-body {
    padding: 20px;
}

.add-agent-modal .form-group {
    margin-bottom: 20px;
}

.add-agent-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.add-agent-modal .form-group input,
.add-agent-modal .form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.add-agent-modal .form-group input:focus,
.add-agent-modal .form-group select:focus {
    outline: none;
    border-color: #f4cd1a;
}

.add-agent-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.add-agent-modal .btn-cancel {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.add-agent-modal .btn-cancel:hover {
    background: #f5f5f5;
}

.add-agent-modal .btn-add {
    padding: 10px 20px;
    border: none;
    background: #b526e6;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.add-agent-modal .btn-add:hover {
    background: #b526e6;
}

.chat-content {
    display: flex;
    height: calc(100% - 64px);
    overflow: hidden;
    position: relative;
        background: #f0f0f0;
}

.chat-left {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.chat-tabs {
    display: flex;
}

.chat-tabs button {
    padding: 10px 15px;
    border: 1px solid transparent;
    background: #fff;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 12px;
    font-family: 'Roboto';
}

.chat-tabs .active {
    background: none;
    font-weight: 900;
    color: #000;
}

.chat-tab-content {
    display: none;
}

.chat-tab-content:first-child {
    display: block;
}

.past-chats-table {
    padding: 20px;
}

.past-chats-table-layout {
    width: 100%;
    border-collapse: collapse;
}

.past-chats-table-layout thead {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.past-chats-table-layout th {
    padding: 12px 15px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #2f3941;
    font-family: 'Poppins', sans-serif;
    background-color: #f8ebfe;
}

.past-chats-table-layout tbody tr {
    border-bottom: 1px solid #f2f2f2;
}

.past-chats-table-layout td {
    padding: 12px 15px;
    font-size: 12px;
    color: #848282;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
}

.past-chats-table-layout .no-history {
    text-align: center;
    padding: 40px 20px;
    color: #68737d;
    font-style: italic;
}

.message-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-content .message-count {
    flex: 0 0 22px;
}

.message-content span:last-child {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.message-count {
    background-color: #e9ebed;
    color: #49545c;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 400;
    width: 22px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    display: inline-block;
}

.chat-history {
    flex: 1;
    border: 1px solid #ddd;
    margin-top: 10px;
    background-color: #fff;
    padding: 10px 0 0;
        height: calc(100% - 250px);
    overflow-y: auto;
    overflow-x: hidden;
    /* max-height: 330px; */
}


.simulate {
       color: #1f73b7;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    font-style: italic;
}

.chat-footer {
    height: 210px;
    border: 1px solid #ddd;
    margin-top: 10px;
    position: relative;
}

.footer-tabs {
    display: flex;
}

.footer-tabs button {
       cursor: pointer;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #2f3941;
    display: flex;
    align-items: center;
    border: 0;
    gap: 5px;
}
.footer-tabs button svg{
    width: 12px;
    height: 12px;
}
.footer-tabs button.active{
    background-color: #b33a3a;
    color: #fff;
}
.footer-tab-content {
    display: none;
    background-color: #fff;
    height: 90%;
}
.footer-tab-content:first-child {
    display: block;
}
.footer-message {


    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    color: #000;
    background: #fff;
    user-select: none;
}
.whisper-textarea {
    width: 100%;
    height: 100%;
    border: none;
    resize: none;
    padding: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #333;
    outline: none;
}
.whisper-textarea::placeholder {
    color: #999;
}

.chat-sidebar {
    width: 360px;
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden;
}

.profile input,
.profile textarea {
  background: #fff;
    font-size: 12px;
    resize: none;
    border: 1px solid #d8dcde;
    border-radius: 4px;
    text-align: start;
    padding: 5px;
    transition: border-color .25s ease-in-out, box-shadow .1s ease-in-out, background-color .25s ease-in-out, color .25s ease-in-out;
    height: 30px;
    margin: 0 0 10px;
    width: 100%;
}
.profile input:focus {
    box-shadow: 0 0 0 3px #b47d24d2;
    outline: none;
}
.profile textarea:focus {
    box-shadow: 0 0 0 3px #b47d24d2;
    outline: none;
}
.profile textarea {
    height: 100px;
}
.profile label{
        margin: 0 0 5px;
    font-size: 12px;
    color: #000;
    font-weight: 700;
    display: flex;
    align-items: center;
}
.stats {
    display: flex;
    border: 1px solid #e5e5e5;
    background-color: #fafafa;
}

.stats div {
    flex: 1;
    padding: 15px;
    border-right: 1px solid #e5e5e5;
}
.stats strong{
    display: block;
    margin: 0 0 0px;
    font-size: 13px;
    color: #000;
    font-weight: 700;
    display: flex;
    align-items: center;
}
.stats span{
        color: #2f3941;
    font-size: 12px;
    font-weight: 400;
    display: block;
}

.visitor-table td {
    cursor: pointer;
}

.visit-path {
    padding: 10px;
    background: #fafafa;
    border-radius: 3px;
    border: 1px solid #e5e5e5;
    margin: 10px 0 0;
}
.visit-path h6{
     color: #2f3941;
    font-size: 12px;
    font-weight: 400;
    display: block;
}
.visit-path p{
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 13px;
    color: #2f3941;
    line-height: 1.4;
    padding: 6px 0;
}
.link-path{
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 0 0;

}
.link-path .ico{
   border-radius: 50%;
    background: #ccc;
    margin-right: 5px;
    color: #9c9c9c;
    font-size: .6rem;
    padding: 3px;
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.link-path .ico img{
    width: 8px;
    height: 8px;
    fill: #9c9c9c;
}
.link-path a{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    color: #2f3941;
}
.location{
    padding: 10px;
    background: #fafafa;
    border-radius: 3px;
    border: 1px solid #e5e5e5;
    margin: 10px 0 0;
}
.location h6{
     color: #2f3941;
    font-size: 12px;
    font-weight: 400;
    display: block;
    padding: 10px 0 0;
}
.location span{
     color: #2f3941;
    font-size: 12px;
    font-weight: 400;
    display: block;
}
.chat-list {
    padding: 10px 10px 0;
}
.chat-list svg{
    width: 12px;
    height: 12px;
}
.chat-list p{

    width: 100%;
    background: #fff;
    padding: 5px;
    font-size: 11px;
    color: #68737d;
}
.w-100{
    width: 100%;
}
.history-table tbody{
        overflow-y: auto;
    overflow-x: hidden;
    max-height: 400px;
}
.chat-user{
    padding: 2px 10px 8px;
    border: 1px dashed #ccc;
    border-right: none;
    border-left: none;
    position: relative;
    margin: 10px 0 0;
}
.chat-user .user-name h5{
    margin: 5px 0 0;
    display: flex;
    font-size: 12px;
    font-weight: 700;
    color: #f4cd1a;
}
.chat-user .user-name span{
    font-style: normal;
    color: #49545c;
    background: #fff;
    position: absolute;
    right: 5px;
    font-weight: 400;
        font-size: 12px;
    top: 10px;
}
.chat-user p{
    align-items: center;
    justify-content: center;
    font-style: italic;
    color: #68737d;
    font-weight: 500;
    text-align: center;
    word-break: break-all;
        margin: 5px 0 0;
    display: flex;
    font-size: 12px;
}
.user-message p{
    font-style: normal;
    text-align: left;
        display: block;
}
.user-message p svg{
    width: 16px;
    height: 16px;
    margin: 0 0 0 5px;
    vertical-align: middle;
    color: #1eb848;
    fill: #1eb848;
}
.chat-user .user-name h5.black{
    color: #000;
}

.chat-analytics {
    width: 100%;
}

.chat-analytics * {
    box-sizing: border-box;
}

.chat-analytics .top-header,
.chat-analytics .filters,
.chat-analytics .overview {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-analytics .top-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}

.chat-analytics .section {
    padding: 20px;
    background: #fff;
    margin-bottom: 20px;
    border-radius: 8px;
}

.chat-analytics .report-tabs {
    display: flex;
    gap: 20px;
}

.chat-analytics .report-tabs button,
.chat-analytics .chart-navigation button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-weight: 400;
    font-family: 'Roboto';

}
.chart-navigation{
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-analytics .report-tabs .active,
.chat-analytics .chart-navigation .active {
    color: #000;
    font-weight: 700;
}

.chat-analytics .header-actions {
    display: flex;
    gap: 10px;
}

.chat-analytics .filters {
    padding: 10px 20px 0;
    background: #fff;
    margin-bottom: 20px;
}

.chat-analytics .filter-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.chat-analytics select,
.chat-analytics .download-btn {
    background: #fff;
    padding: 0 15px;
    border: 1px solid #d8cdd7;
    border-radius: 10px;
    max-width: 260px;
    height: 30px;
    font-size: 12px;
    color: #000;
    font-weight: 400;
    margin: 0;
    text-shadow: none;
    box-shadow: none;
}
.chat-analytics .left-filter h1 {
    font-size: 18px;
}
.chat-analytics .icon-inner svg{
        width: 19px;
    height: 19px;
    color: #9b9494;
    fill: #9b9494;
}

.chat-analytics .overview {
    padding: 0px 20px;
    background: #fff;
    margin-bottom: 0px;
}

.chat-analytics .main-chart {
    height: 400px;
    padding: 20px;
    background: #fff;
    margin-bottom: 10px;
}

.chat-analytics .cards {
    display: flex;
    justify-content: space-around;
    padding: 0 20px;
    margin-bottom: 0px;
}

.chat-analytics .card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    border: 0;
    min-width: 200px;
}

.chat-analytics .card .icon-box {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}
.chat-analytics .card .icon-box.green{
    background: #93b127;
}
.chat-analytics .card .icon-box.orange{
    background: #ffa000;
}
.chat-analytics .card .icon-box.blue{
    background: #256473;
}
.chat-analytics .card h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #93b127;
}
.chat-analytics .card h3.orange{
    color: #ffa000;
}
.chat-analytics .card h3.blue{
    color: #256473;
}
.chat-analytics .card p {
    font-size: 14px;
    line-height: 25px;
    color: #49545c;
}

.chat-analytics .card select {
    margin-top: 10px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;

}

.chat-analytics .bottom-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 10px;
}
.chat-analytics .bottom-charts h2{
        border-bottom: 1px solid #ccc;
    padding: 0 0 10px;
}

.chat-analytics .rating-chart,
.chat-analytics .timing-chart {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}
.chat-analytics .timing-chart select{
  
    margin: 0 auto;
    display: block;
}

.chat-analytics .rating-chart h2,
.chat-analytics .timing-chart h2 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.chat-analytics .rating-chart {
    min-height: 350px;
}

.chat-analytics .rating-text {
    text-align: center;
    margin-top: 20px;
}

.chat-analytics .rating-text h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #333;
     font-family: 'Roboto';
}

.chat-analytics .rating-text p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #666;
    
}

.chat-analytics .leaderboard-section {
    padding: 20px;
    background: #fff;
    margin-top: 20px;
}

.chat-analytics .leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chat-analytics .leaderboard-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.chat-analytics .leaderboard-table-wrapper {
    overflow-x: auto;
}

.chat-analytics .leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.chat-analytics .leaderboard-table thead {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.chat-analytics .leaderboard-table th {
    padding: 12px 15px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #2f3941;
    font-family: 'Poppins', sans-serif;
    background-color: #f8ebfe;
    white-space: nowrap;
}

.chat-analytics .leaderboard-table tbody tr {
    border-bottom: 1px solid #f2f2f2;
}

.chat-analytics .leaderboard-table tbody tr:hover {
    background: #fafafa;
}

.chat-analytics .leaderboard-table td {
    padding: 12px 15px;
    font-size: 12px;
    color: #848282;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

.chat-analytics .bottom-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.chat-analytics canvas {
    width: 100% !important;
    height: 100% !important;
}
.chat-analytics .main-chart {
    height: 420px;
}

.chat-analytics .rating-chart canvas {
    height: 250px !important;
    width: 100% !important;
}

.chat-analytics .circular-chart {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
    background: conic-gradient(
        #89a923 0deg 288deg,
        #e85243 288deg 360deg
    );
}

.chat-analytics .chart-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: white;
    border-radius: 50%;
}

.chat-analytics .chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.chat-analytics .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
}

.chat-analytics .legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.chat-analytics .legend-color.good {
    background: #89a923;
}

.chat-analytics .legend-color.bad {
    background: #e85243;
}

.chat-analytics .timing-chart canvas {
    height: 300px !important;
}

.chat-history.pastchats {
    max-height: max-content;
    height: calc(100% - 50px);
}
.agent-actions {
   display: flex;
    gap: 10px;
    position: absolute;
    bottom: 0;
    right: 0;
    border-top: 1px solid #ebebeb;
    width: 100%;
    justify-content: flex-end;
    padding: 10px 10px 0 0;
}

.action-btn {
  display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    cursor: pointer;
    border: 0;
    border-radius: 0;
    position: relative;
}
.action-btn .content-area{
    display: flex;
    flex-flow: column;
    padding: 10px;
    display: none;
    margin-top: 5px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, .10196078431372549);
        width: 220px;
    background: #fff;
    margin: 0 0 0;
    position: absolute;
    bottom: 30px;
    right: -60px;
    left: auto;
    z-index: 1;
}
.action-btn .content-area .content{
    flex-grow: 1;
    overflow: auto;
    display: flex;
    flex-flow: column;
    justify-content: center;
}
.action-btn .content-area .content .rating-label{
    user-select: none;
    color: #2f3941;
    font-size: 12px;
    text-align: center;

}
.action-btn .content-area .footer{
        margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.action-btn .content-area .footer .btn-primary{
    padding: 4px 10px;
    cursor: pointer;
    font-weight: 700;
    border-radius: 4px;
    font-size: 11px;
    transition: border-color .25s ease-in-out, box-shadow .1s ease-in-out, background-color .25s ease-in-out, color .25s ease-in-out;
    height: 30px;
    line-height: 20px;
    margin-left: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: #b526e6;
    color: #fff;
    border: 0;
}
.action-btn .content-area .footer .btn-outline{
    padding: 4px 10px;
    cursor: pointer;
    font-weight: 700;
    border-radius: 4px;
    font-size: 11px;
    transition: border-color .25s ease-in-out, box-shadow .1s ease-in-out, background-color .25s ease-in-out, color .25s ease-in-out;
    height: 30px;
    line-height: 20px;
    margin-left: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #2f3941;
    border: 1px solid #d8dcde;
    background: transparent;
}

.action-btn img {
   width: 15px;
    height: 15px;
}
.action-btn span {
      font-size: 12px;
    color: #68737d;
    font-weight: 500;
}
.file-input {
    display: none;
}

/* Enhanced Emoji Picker */
.emoji-picker {
    position: absolute;
    bottom: 30px;
    right: 10px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    width: 320px;
    max-height: 350px;
    display: none;
}

.emoji-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    padding: 8px 8px 0;
    gap: 4px;
}

.emoji-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    transition: all 0.2s;
    min-width: 50px;
}

.emoji-tab span:first-child {
    font-size: 18px;
}

.emoji-tab span:last-child {
    font-size: 10px;
    color: #68737d;
    font-weight: 500;
}

.emoji-tab:hover {
    background-color: #f3f4f6;
}

.emoji-tab.active {
    background-color: #f3f4f6;
    border-bottom: 2px solid #8b5cf6;
}

.emoji-tab.active span:last-child {
    color: #8b5cf6;
    font-weight: 600;
}

.emoji-content {
    padding: 12px;
    max-height: 280px;
    overflow-y: auto;
}

.emoji-category-content {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
}

.emoji-category-content.active {
    display: flex;
}

.emoji-item {
    font-size: 22px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s;
    display: inline-block;
    line-height: 1;
}

.emoji-item:hover {
    background-color: #f3f4f6;
    transform: scale(1.15);
}

/* Custom scrollbar for emoji picker */
.emoji-content::-webkit-scrollbar {
    width: 6px;
}

.emoji-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.emoji-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.emoji-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
.department-content{
    flex:1;
}

.department-row{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    padding:14px 0;
    border-bottom:1px solid #e5e7eb;
}
.department-row p{
    font-size: 12px;
    font-weight: 700;
}

.add-agent-section {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.add-agent-section input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.add-agent-section button {
    padding: 8px 16px;
    background: #6a6fd1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.add-agent-section button:hover {
    background: #5a5fc1;
}

.department-content .agent-tag{
    display:flex;
    align-items:center;
    gap:8px;
    padding:5px 10px;
    border:1px solid #1f73b7;
    border-radius:4px;
    background:#fff;
    font-size:12px;
    color:#333;
    white-space:nowrap;
}

.department-content .close-btn{
    width:16px;
    height:16px;
    border-radius:50%;
    background:#808080;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:11px;
    font-weight:bold;
    line-height:1;
}
@media (max-width: 991px) {

    .chat-analytics .top-header,
    .chat-analytics .filters,
    .chat-analytics .overview,
    .chat-analytics .cards {
        flex-direction: column;
        align-items: flex-start;
    }

    .chat-analytics .bottom-charts {
        grid-template-columns: 1fr;
    }
}

