@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
/* font kit start here */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Medium.woff2') format('woff2'),
        url('../fonts/Poppins-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Bold.woff2') format('woff2'),
        url('../fonts/Poppins-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-SemiBold.woff2') format('woff2'),
        url('../fonts/Poppins-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.woff2') format('woff2'),
        url('../fonts/Poppins-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-ExtraBold.woff2') format('woff2'),
        url('../fonts/Poppins-ExtraBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* font kit end here */

/* Modern Design System - Base Variables */
:root {
    /* Colors - Sharp & High Contrast */
    --app-bg: #ffffff;
    --surface-bg: #FAFDFF;
    --surface-border: #E1E7F2;
    --primary-blue: #4F6BF5;
    --primary-blue-hover: #3F58E0;
    --text-primary: #0B1220;
    --text-secondary: #5B6472;
    --success-color: #48BB78;
    --info-color: #4299E1;
    --warning-color: #ED8936;
    --error-color: #F56565;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
    
    /* Typography */
    --font-size-xs: 12.5px;
    --font-size-sm: 13.5px;
    --font-size-base: 14.5px;
    --font-size-lg: 16px;
    --font-size-xl: 17px;
    --font-size-xxl: 18px;
    
    /* Line heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 20px;
    --spacing-xl: 24px;
    
    /* Legacy support */
    --primary-bg: var(--app-bg);
    --secondary-bg: var(--surface-bg);
    --card-bg: var(--surface-bg);
    --hover-bg: #F0F8FF;
    --primary-text: var(--text-primary);
    --secondary-text: var(--text-secondary);
    --accent-color: var(--primary-blue);
    --border-color: var(--surface-border);
    --transition-speed: 0.2s;
    --primary-input-color: var(--text-primary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    background-color: var(--app-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-weight: 400;
}

/* Typography Scale - Sharp & Dark */
h1, .h1 { 
    font-size: var(--font-size-xxl); 
    line-height: var(--line-height-tight); 
    font-weight: 500; 
    color: var(--text-primary);
    letter-spacing: -0.015em;
}

h2, .h2 { 
    font-size: var(--font-size-xl); 
    line-height: var(--line-height-tight); 
    font-weight: 500; 
    color: var(--text-primary);
    letter-spacing: -0.015em;
}

h3, .h3 { 
    font-size: var(--font-size-lg); 
    line-height: var(--line-height-tight); 
    font-weight: 500; 
    color: var(--text-primary);
}

h4, .h4 { 
    font-size: var(--font-size-base); 
    line-height: var(--line-height-tight); 
    font-weight: 500; 
    color: var(--text-primary);
}

h5, .h5 { 
    font-size: var(--font-size-base); 
    line-height: var(--line-height-tight); 
    font-weight: 500; 
    color: var(--text-primary);
}

h6, .h6 { 
    font-size: var(--font-size-sm); 
    line-height: var(--line-height-tight); 
    font-weight: 500; 
    color: var(--text-primary);
}

p {
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    font-size: var(--font-size-base);
}

.text-muted {
    color: var(--text-secondary) !important;
    font-size: var(--font-size-sm);
}

.text-strong {
    color: var(--text-primary) !important;
    font-weight: 500;
}

/* Modern Form Controls - Unified Surface Design */
textarea, .form-control, .form-select {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: var(--font-size-base);
    background-color: var(--surface-bg) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: var(--spacing-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    line-height: var(--line-height-normal);
}

textarea:focus, .form-control:focus, .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(79, 107, 245, 0.1);
    outline: none;
    background-color: var(--surface-bg) !important;
}

/* Modern Component Classes */
.surface-card {
    background-color: var(--surface-bg);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-xl);
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    line-height: 1;
}

.chip-default {
    background-color: #F3F4F6;
    color: var(--text-normal);
}

.chip-success {
    background-color: rgba(72, 187, 120, 0.1);
    color: var(--success-color);
}

.chip-info {
    background-color: rgba(66, 153, 225, 0.1);
    color: var(--info-color);
}

.chip-warning {
    background-color: rgba(237, 137, 54, 0.1);
    color: var(--warning-color);
}

.chip-error {
    background-color: rgba(245, 101, 101, 0.1);
    color: var(--error-color);
}

/* Modern Input Focus Ring */
.focus-ring:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(79, 107, 245, 0.1);
}

/* Modern Table Styling */
.table {
    font-size: var(--font-size-base);
    background-color: white;
}

.table th {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--surface-border);
    background-color: var(--surface-bg);
}

.table td {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    font-weight: 400;
    border-bottom: 1px solid rgba(225, 231, 242, 0.5);
    background-color: white;
}

.table tbody tr:hover {
    background-color: var(--hover-bg);
}

.table tbody tr:hover td {
    background-color: var(--hover-bg);
}

/* Main Container */
.main-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background-color: #ffffff;
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar.collapsed,
.sidebar.show {
    width: 70px;
}
.sidebar.collapsed .sidebar-header{
    justify-content: center;
}

.sidebar.collapsed .menu-items {
    padding: 0px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 15px;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-text);
    transition: opacity var(--transition-speed);
}

.sidebar.collapsed .logo-text,
.sidebar.show .logo-text {
    opacity: 0;
    width: 0;
    display: none;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: var(--primary-text);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    border-radius: 5px;
    transition: background-color var(--transition-speed);
}

.toggle-btn:hover {
    background-color: var(--hover-bg);
}

/* Menu Items */
.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 15px 0;
}

.menu-items {
    list-style: none;
}

.menu-item {
    margin-bottom: 5px;
}

.menu-item a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--secondary-text);
    text-decoration: none;
    border-radius: 5px;
    margin: 0 10px;
    transition: all var(--transition-speed);
    gap: 10px;
}

.menu-item a:hover {
    background-color: rgba(247, 251, 255, 0.8);
    color: var(--text-strong);
    border-radius: var(--radius-md);
}

.menu-item.active a {
    background-color: rgba(247, 251, 255, 0.9);
    color: var(--text-strong);
    font-weight: 600;
    border-radius: var(--radius-md);
}

.menu-item i {
    font-size: 1.2rem;
}

.menu-text {
    transition: opacity var(--transition-speed);
}

.sidebar.collapsed .menu-text {
    opacity: 0;
    width: 0;
    display: none;
}

/* Sidebar Footer with Profile */
.sidebar-footer {
    padding: 15px;
    border-top: 1px solid var(--border-color);
}

.profile-info {
    display: flex;
    align-items: center;
}

.profile-info a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-text);
    width: 100%;
}

.profile-pic {
    margin-right: 10px;
    font-size: 1.5rem;
    color: var(--secondary-text);
}

.user-info {
    display: flex;
    flex-direction: column;
    transition: opacity var(--transition-speed);
}

.sidebar.collapsed .user-info {
    opacity: 0;
    width: 0;
    display: none;
}

.username {
    font-weight: 500;
}

.role {
    font-size: 0.8rem;
    color: var(--secondary-text);
}

/* Content Area */
.content-area {
    margin-left: 250px;
    transition: margin-left 0.3s ease;
    background-color: #ffffff;
    flex: 1;
    min-height: 100vh;
}

.content-area.expanded {
    margin-left: 70px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--primary-bg);
}

.page-title h1 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-text);
}

.top-right {
    display: flex;
    align-items: center;
}

.notifications,
.user-dropdown {
    margin-left: 20px;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--secondary-text);
    transition: color var(--transition-speed);
}

.notifications:hover,
.user-dropdown:hover {
    color: var(--primary-text);
}

.content-wrapper {
    padding: var(--spacing-xl);
    background-color: var(--app-bg);
}

/* Dashboard Styling */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
    width: 100%;
    max-width: 990px;
}
.most-called-agents-title{
    font-size: 18px;
}

.greeting {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    background: #f2f2f2;
    padding: 12px 10px;
    width: 100%;
}

.active-calls {
    display: inline-flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 20px;
    padding: 6px 15px;
    margin-bottom: 20px;
    color: #333;
    font-size: 0.9rem;
}

.active-calls i {
    margin-right: 8px;
    color: #333;
    font-size: 0.8rem;
}

.workspace-header {
    margin-bottom: 15px;
}

.workspace-title {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 400;
    margin-bottom: 5px;
}

.stat-card {
    background-color: white;
    border-radius: 8px;
    padding: 15px 16px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    border: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-label {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 0px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: baseline;
    color: #333;
}

.stat-value .unit {
    font-size: 0.85rem;
    color: #6c757d;
    margin-left: 4px;
    font-weight: 400;
}

.chart-container {
    grid-column: 1 / -1;
    background-color: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    height: 250px;
    margin: 5px 0 15px 0;
    border: none;
}

.filters {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
    width: 60%;
    margin-left: auto;
}

.filter-select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e1e5eb;
    background-color: white;
    font-size: 0.85rem;
    color: #333;
}

.bottom-grid {
    /* display: grid;
    grid-template-columns: 2fr 1fr; */
    gap: 16px;
    margin-top: 5px;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.agent-section {
    background-color: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    border: none;
}

.agent-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f5;
}

.agent-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.agent-name {
    font-weight: 500;
    margin-bottom: 10px;
}

.agent-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.agent-stat-value {
    font-weight: 500;
    margin-top: 5px;
}

.language-section {
    background-color: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: none;
}

.language-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.language-bar {
    width: 100%;
    height: 6px;
    background-color: #4c6ef5;
    border-radius: 3px;
}

/* Card Styling - Unified Surface Design */
.card {
    background-color: var(--surface-bg);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--surface-border);
}

.card-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: -0.015em;
}

/* Global override for any remaining gray backgrounds */
.bg-light {
    background-color: var(--surface-bg) !important;
    border: 1px solid var(--surface-border) !important;
}

.bg-secondary {
    background-color: var(--surface-bg) !important;
}

/* Ensure form labels are properly styled */
.form-label {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

/* Form text helpers */
.form-text {
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
}

/* Button Styling */

.btn-success, .btn-success:disabled {
    color: #fff;
    background-color: #000;
    border-color: #000;
}
.btn-success:disabled{
    opacity: 0.5;
    color: #c8c8c8;
}
.btn-success:focus, .btn-success:active{
    box-shadow: none;
    background-color: #000;
    border-color: #000;
}
.text-success{
    color: #000!important;
}

.btn-success:hover {
    background-color: #2c2c2c;
    border-color: #232323;
}
.btn-success:active {
    background-color: #000;
    border-color: #000;
}

.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    color: #fff;
    background-color: #bb2d3b;
    border-color: #b02a37;
}

.btn-primary:hover {
    background-color: rgba(76, 110, 245, 0.9);
}


.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 350px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.3s, transform 0.3s;
    max-width: 100%;
    border-left: 4px solid #4c6ef5;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.hiding {
    opacity: 0;
    transform: translateX(30px);
}

.notification.paused .notification-progress-bar {
    animation-play-state: paused;
}

.notification-content {
    padding: 15px;
    padding-right: 40px;
}

.notification-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-message {
    color: var(--secondary-text);
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--secondary-text);
    font-size: 0.9rem;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.notification-close:hover {
    background-color: var(--hover-bg);
    color: var(--primary-text);
}

.notification-progress {
    height: 4px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.05);
    position: relative;
}

.notification-progress-bar {
    height: 100%;
    width: 100%;
    background-color: #4c6ef5;
    transform-origin: left;
    animation: progress-animation linear forwards;
}

@keyframes progress-animation {
    0% {
        transform: scaleX(1);
    }

    100% {
        transform: scaleX(0);
    }
}

/* Notification types */
.notification.success {
    border-left-color: #28a745;
}

.notification.success .notification-title {
    color: var(--primary-input-color);
}

.notification.success .notification-progress-bar {
    background-color: var(--primary-input-color);
}

.notification.error {
    border-left-color: #dc3545;
}

.notification.error .notification-title {
    color: #dc3545;
}

.notification.error .notification-progress-bar {
    background-color: #dc3545;
}

.notification.warning {
    border-left-color: #ffc107;
}

.notification.warning .notification-title {
    color: #ffc107;
}

.notification.warning .notification-progress-bar {
    background-color: #ffc107;
}

.notification.info {
    border-left-color: #4c6ef5;
}

.notification.info .notification-title {
    color: #4c6ef5;
}

.notification.info .notification-progress-bar {
    background-color: #4c6ef5;
}


.agent_outer_section {
    padding: 10px 0px;
}

.agent_inner_sidebar {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.05);
    border: none;
    height: calc(100vh - 20px);
    border: 1px solid #e8e8e8;
}

.agent-list .agent-list-item {
    padding: 10px;
    border-bottom: 1px solid #e1e5eb;
    margin-bottom: 5px;
}
.agent-list .agent-list-item:hover{
    background-color: var(--hover-bg)!important;
}

.agent-list .agent-list-item:last-child {
    border-bottom: none;
}

.agent-list .agent-list-item .agent-circle {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-list .agent-list-item .agent-circle i {
    font-size: 14px;
    color: #6c757d;
}

.agent-list .agent-list-item .agent-circle {
    width: 30px;
    height: 30px;
}

.agent-list .agent-list-item:hover {
    background-color: var(--hover-bg);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.agent_main_content {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: none;
    height: 100vh;
    height: calc(100vh - 20px);
    border: 1px solid #e8e8e8;
}

.agent_main_content .agent_top_nav_btn button.link-btn {
    border: 1px solid #e1e5eb;
    background-color: #000;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

.agent_main_content .agent_top_nav_btn button.link-btn:hover {
    background-color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
}

.agent_tabs {
    border-bottom:none;
    padding-left: 20px;
}

.agent_tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 15px;
}

.agent_tabs .nav-link.active {
    background-color: #000;
    color: #fff;
}

.agent_tabs .nav-link:hover {
    background-color: #000;
    cursor: pointer;
    color: #fff;
}

.agent_tabs .nav-link.active {
    background-color: #000;
    color: #fff;
}

.agent_tabs .nav-link:hover {
    background-color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.agent_inner_sidebar h5 {
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
}

.agent_inner_sidebar .agent-list-item span {
    font-size: 14px;
    font-weight: 500;
    color: #000;
}

.call_history_outer_section {
    background-color: #f9f9fb;
    border: none;
}


.call_history_outer_section .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.call_history_outer_section .page-header .filter-dropdown {
    background-color: #000;
    color: #fff;
    border-radius: 5px;
    padding: 5px 10px;
}

.call_history_outer_section .page-header .filter-dropdown i {
    font-size: 14px;
    color: #fff;
}

.call_history_outer_section .page-header .filter-dropdown:hover {
    background-color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.call_history_outer_section .page-header .filter-dropdown:hover i {
    color: #fff;
}

.call_history_outer_section .page-header .filter-dropdown:hover span {
    color: #fff;
}

.call_history_outer_section .history-card {
    background-color: var(--surface-bg);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    padding: 12px var(--spacing-lg);
    margin-bottom: var(--spacing-xs);
    box-shadow: var(--shadow-sm);
    align-items: center;
    transition: all 0.2s ease;
    justify-content: space-between;
    display: grid;
    grid-template-columns: 22% 14% 14% 37%;
    min-height: 56px;
}

.call_history_outer_section .history-card:hover {
    background-color: var(--hover-bg);
    border-color: var(--primary-blue);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.call_history_outer_section .chat-icon {
    width: 100%;
    max-width: 32px;
    height: 32px;
    background-color: #f1f3f5;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.call_history_outer_section .time-info {
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-tight);
}

.call_history_outer_section .time-info span {
    display: flex;
    font-weight: 500;
    color: var(--text-primary);
    font-size: var(--font-size-base);
}

.conversation_history_section .history-card{
    background-color: var(--surface-bg);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-sm);
}
.copy_summary_icon {
    height: 30px;
    width: 30px;
    background: #dddddd;
    border: none;
    border-radius: 5px;
}
.conversation_history_section{
    min-height: calc(100vh - 40px);
}

.search_agent_box input {
    padding: 5px 11px;
    font-size: 14px;
}

.search_agent_box input:focus,
.form-select:focus,
.form-control:focus {
    box-shadow: none;
    border-color: #10b981;
}

.call_history_outer_section .number_info h5 {
    color: var(--text-primary);
    font-size: var(--font-size-base);
    font-weight: 400;
    margin-bottom: 0px;
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
}

.call_history_outer_section .number_info h5 strong {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.call_history_outer_section .agent-info {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.call_history_outer_section .agent-name {
    background-color: var(--surface-bg);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: 6px 12px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-right: var(--spacing-sm);
    color: var(--text-primary);
    white-space: nowrap;
}
.whitespace-nowrap{
    white-space: nowrap;
}

.call_history_outer_section .stat-item {
    display: flex;
    align-items: center;
    color: var(--text-primary);
    font-size: var(--font-size-base);
    font-weight: 500;
    margin-right: var(--spacing-md);
    white-space: nowrap;
}

.call_history_outer_section .stat-item i {
    margin-right: 5px;
}

.call_history_outer_section .status-badge {
    border-radius: 16px;
    padding: 4px 12px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.call_history_outer_section .status-badge.success {
    background-color: rgba(72, 187, 120, 0.12);
    color: #1F5F3F;
    font-weight: 500;
}

.call_history_outer_section .status-badge.failed {
    background-color: rgba(245, 101, 101, 0.12);
    color: #B91C1C;
    font-weight: 500;
}

.call_history_outer_section .status-badge.connecting {
    background-color: rgba(66, 153, 225, 0.12);
    color: #1E40AF;
    font-weight: 500;
}

.call_history_outer_section .status-badge.in-progress {
    background-color: rgba(66, 153, 225, 0.12);
    color: #1E40AF;
    font-weight: 500;
}

.call_history_outer_section .filter-dropdown {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
}

.call_history_outer_section .filter-dropdown i {
    margin-left: 8px;
}

.call_history_outer_section .responsive-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 5px;
    align-items: center;
}


.call_history_offcanvas .detail-card {
    background-color: white;
    border-radius: 8px;
    padding: 14px 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.call_history_offcanvas .waveform-container {
    height: 60px;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
}

.call_history_offcanvas .waveform {
    height: 100%;
    width: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAwIDYwIj48cGF0aCBkPSJNNSAzMGg1djEwaC01ek0xNSAyMGg1djMwaC01ek0yNSAyNWg1djIwaC01ek0zNSAzNWg1djVoLTV6TTQ1IDE1aDV2NDAuMmgtNXpNNTUgMTBoNXY1MGgtNXpNNjUgMzVoNXYxMGgtNXpNNzUgMjhoNXYxNWgtNXpNODUgMTVoNXY0MGgtNXpNOTUgNWg1djU1aC01ek0xMDUgMzBoNXYxNWgtNXpNMTE1IDI1aDV2MjJoLTV6TTEyNSAxNWg1djQwaC01ek0xMzUgMzJoNXYxMGgtNXpNMTQ1IDI4aDV2MThoLTV6TTE1NSAyMGg1djMwaC01ek0xNjUgNWg1djU1aC01ek0xNzUgMTBoNXY1MGgtNXpNMTg1IDI1aDV2MjVoLTV6TTE5NSA0MGg1djEwaC01ek0yMDUgMzJoNXYxNWgtNXpNMjE1IDIwaDV2MzBoLTV6TTIyNSAzNWg1djEwaC01ek0yMzUgMzJoNXYxNWgtNXpNMjQ1IDIwaDV2MzBoLTV6TTI1NSA1aDV2NTVoLTV6TTI2NSAxMGg1djUwaC01ek0yNzUgMjVoNXYyNWgtNXpNMjg1IDQwaDV2MTBoLTV6TTI5NSAzMmg1djE1aC01ek0zMDUgMjVoNXYyMGgtNXpNMzE1IDMwaDV2MTVoLTV6TTMyNSAyMmg1djI4aC01ek0zMzUgMjVoNXYzMGgtNXpNMzQ1IDQwaDV2MTBoLTV6TTM1NSAzMmg1djE1aC01ek0zNjUgMTVoNXY0MGgtNXpNMzc1IDEwaDV2NTBoLTV6TTM4NSA1aDV2NTVoLTV6TTM5NSAzMGg1djE1aC01ek00MDUgMzJoNXYxNWgtNXpNNDE1IDI1aDV2MjVoLTV6TTQyNSA0MGg1djEwaC01ek00MzUgMzJoNXYxNWgtNXpNNDQ1IDIwaDV2MzBoLTV6TTQ1NSAzNWg1djEwaC01ek00NjUgMzJoNXYxNWgtNXpNNDc1IDI1aDV2MjVoLTV6TTQ4NSA0MGg1djEwaC01ek00OTUgMzJoNXYxNWgtNXpNNTA1IDIwaDV2MzBoLTV6TTUxNSAzNWg1djEwaC01ek01MjUgMzJoNXYxNWgtNXpNNTM1IDIwaDV2MzBoLTV6TTU0NSA1aDV2NTVoLTV6TTU1NSAxMGg1djUwaC01ek01NjUgMjVoNXYyNWgtNXpNNTc1IDQwaDV2MTBoLTV6TTU4NSAzMmg1djE1aC01ek01OTUgMTVoNXY0MGgtNXpNNjA1IDIwaDV2MzBoLTV6TTYxNSAzMGg1djE1aC01ek02MjUgMzJoNXYxNWgtNXpNNjM1IDI1aDV2MjVoLTV6TTY0NSAzOGg1djEwaC01ek02NTUgMzJoNXYxNWgtNXpNNjY1IDIwaDV2MzBoLTV6TTY3NSAzNWg1djEwaC01ek02ODUgMzJoNXYxNWgtNXpNNjk1IDI1aDV2MjVoLTV6TTcwNSA0MGg1djEwaC01ek03MTUgMzJoNXYxNWgtNXpNNzI1IDIwaDV2MzBoLTV6TTczNSA1aDV2NTVoLTV6TTc0NSAxMGg1djUwaC01ek03NTUgMjVoNXYyNWgtNXpNNzY1IDQwaDV2MTBoLTV6TTc3NSAzMmg1djE1aC01ek03ODUgMTVoNXY0MGgtNXpNNzk1IDIwaDV2MzBoLTV6TTgwNSAzMGg1djE1aC01ek04MTUgMzJoNXYxNWgtNXpNODI1IDI1aDV2MjVoLTV6TTgzNSA0MGg1djEwaC01ek04NDUgMzJoNXYxNWgtNXpNODU1IDIwaDV2MzBoLTV6TTg2NSAzNWg1djEwaC01ek04NzUgMzJoNXYxNWgtNXpNODg1IDI1aDV2MjVoLTV6TTg5NSA0MGg1djEwaC01ek05MDUgMzJoNXYxNWgtNXpNOTE1IDIwaDV2MzBoLTV6TTkyNSA1aDV2NTVoLTV6TTkzNSAxMGg1djUwaC01ek05NDUgMjVoNXYyNWgtNXpNOTU1IDQwaDV2MTBoLTV6TTk2NSAzMmg1djE1aC01ek05NzUgMTVoNXY0MGgtNXpNOTg1IDI4aDV2MjBoLTV6TTk5NSAzN2g1djEwaC01eiIgZmlsbD0icmdiYSgxMDAsMTAwLDEwMCwwLjIpIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.call_history_offcanvas .audio-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.call_history_offcanvas .play-button {
    width: 40px;
    height: 40px;
    background-color: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    margin-right: 15px;
}

.call_history_offcanvas .audio-timeline {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.call_history_offcanvas .timeline-controls {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.call_history_offcanvas .tabs-container {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
}

.call_history_offcanvas .tab-link {
    display: inline-block;
    padding: 10px 5px;
    margin-right: 20px;
    font-weight: 500;
    color: #6c757d;
    text-decoration: none;
    position: relative;
}

.call_history_offcanvas .tab-link.active {
    color: #212529;
    font-weight: 600;
}

.call_history_offcanvas .tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #212529;
}

.call_history_offcanvas .summary-section h5 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.call_history_offcanvas .summary-content {
    font-size: 14px;
    line-height: 1.6;
    color: #495057;
}

.call_history_offcanvas .call-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #dee2e6;
    margin-top: 25px;
    padding-top: 15px;
}

.call_history_offcanvas .status-badge {
    background-color: #f8f9fa;
    border-radius: 16px;
    padding: 6px 15px;
    font-size: 13px;
}

.call_history_offcanvas_tabs .nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
}

.call_history_offcanvas_tabs .nav-link.active {
    color: #000;
}

.call_history_offcanvas_tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #000;
}

.chat-container {
    max-width: 800px;
    margin: 0 auto;
}

.transcription-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: calc(100vh - 300px);
    overflow-y: auto;
    padding: 0 8px;
}
.client-data-content .data-label{
    font-weight: 600;
}
.call_history_offcanvas strong#agent_name{
    font-weight: 600;
}

.conversation-message {
    max-width: 100%;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-message {
    align-self: flex-start;
}

.assistant-message {
    align-self: flex-start;
}

.message-role-label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.message-content-user {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 8px 12px;
    margin-left: 0;
}

.message-content-assistant {
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 8px 12px;
    margin-left: 0;
}

.profile-icon img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.message {
    word-wrap: break-word;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


.logout_dropdown .dropdown-toggle::after {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    rotate: 180deg;
    margin-top: 6px;
}

.logout_dropdown .dropdown-menu {
    margin-bottom: 10px;
    border-radius: 8px 0px 8px 0px;
}



.select-voice-btn{
    border: 1px solid #ced4da;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #ffffff;
    border-radius: .25rem;
    text-align: left;
}
.select-voice-modal .nav-tabs .nav-link{
    border: none;
    font-size: 14px;
    font-weight: 400;
    color: #232323;
}
.select-voice-modal .nav-tabs{
    border-bottom: 1px solid #ced4da;
}
.select-voice-modal .nav-tabs .nav-link.active{
    border-bottom: 2px solid var(--primary-input-color);
    font-weight: 500;
}
.tab_content_container{
    padding-top: 20px;
}
.tab_content_table th{
    font-size: 14px;
    font-weight: 500;
    padding: 10px 15px;
}
.tab_content_table td{
    font-size: 14px;
    font-weight: 400;
    vertical-align: middle;
    padding: 6px 15px;
}
.tab_content_table {
    border: 1px solid #ccc;
    border-radius: 6px;
}
.tab_content_table tbody{
    border-top: none!important;
}

.tab_content_table .voice_item .audio-controls {
    position: relative;
  }
  
.tab_content_table  .voice_item button {
    background-color: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
  }
  
 .tab_content_table .voice_item button:focus {
    outline: none;
  }
  
  /* You can add additional styling for the button as needed */
 .tab_content_table .voice_item button.play::before {
    content: '▶'; /* Play icon */
    font-size: 17px;
  }
  
 .tab_content_table .voice_item button.pause::before {
    content: '\2590\A0\258C'; /* Pause icon */
    font-size: 15px;
  }
  .voice_trait span{
    border-radius: 30px;
    background-color: var(--surface-bg);
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
  }
  .use_voice_btn{
    visibility: hidden;
  }
  .tab_content_table tbody tr:hover .use_voice_btn{
    visibility: visible;
  }
  .use_voice_btn button{
    background-color: #fff;
    color: #000;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 4px 14px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  }
  .select-voice-modal .modal-dialog{
    max-width: 1000px;
  }
  .select-voice-modal .table-responsive{
    height: 400px;
    overflow-y: auto;
  }
  
  .conversation_history_tab_content .stat-item{
    font-size: 14px;
    font-weight: 500;
    color: #333;
  }
  .summary_audio_section audio{
    max-height: 40px;
  }
  .history-card .alert{
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 12px;
    margin-bottom: 0px;
    line-height: normal;
    text-align: center;
  }
  .history-card .alert-failed{
    background-color: #f8d7da;
    color: #842029;
  }
  
 
  .history-card .alert-connecting{
    background-color: #cfe2ff;
    color: #0a369d;
  }
  .history-card .alert-in-progress{
    background-color: #cfe2ff;
    color: #0a369d;
  }

.status-connecting{
    color: #3f72e9;
}
.status-in-progress{
    color: #3f72e9;
}
.status-success{
    color: #45eb9d;
}
.status-failed{
    color: #eb4150;
}

.no_data_found_section{
    height: calc(100vh - 160px);
    display: flex;
    justify-content: center;
    align-items: center;
}
.no_data_found_section h5{
    font-size: 26px;
    font-weight: 500;
    color: #333;
}




/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
}

.pagination-btn {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
    background-color: white;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background-color: #f9fafb;
    color: var(--dark-color);
}

.pagination-container .pagination-btn.active{
    background-color: #050505;
    border-color: #070707;
    color: #fff;
}
.pagination-btn:not([disabled]):hover{
    background-color: #53b9822b;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: default;
}

.showing-entries {
    font-size: 0.9rem;
}
.history-list{
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 10px;
    height: calc(100vh - 210px);
    overflow-y: auto;
}
.click-agent-list {
    height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.click-agent-list i{
    font-size: 30px;
}
.click-agent-list p{
    font-size: 22px;
}
.agent-list-item.active{
    background-color: var(--surface-bg);
    border-radius: 8px;
}
.agent-content-section{
    border: 1px solid #e8e8e8;
    border-radius:10px;
    padding: 10px;
    height: calc(100vh - 150px);
    overflow: auto;
}
.call_history_outer_content .number_info h5{
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0px;
}
.call_history_outer_content .agent-name {
    background-color: var(--surface-bg);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: 6px 12px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-right: 15px;
    color: var(--text-primary);
    white-space: nowrap;
    display: inline-block;
}
.call_history_outer_content .history-card .alert{
    display: inline-block;
}
.call_history_outer_content .history-card{
    display: grid;
    justify-content: space-between;
    background-color: var(--surface-bg);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-md);
    gap: var(--spacing-sm);
    border-radius: var(--radius-md);
    grid-template-columns: 22% 22% 20% 13%;
}
.agent-description-text{
    background-color: var(--surface-bg);
    padding: var(--spacing-md);
    font-size: var(--font-size-base);
    font-weight: 400;
    border-radius: var(--radius-md);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.agent-description-text:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(79, 107, 245, 0.1);
    outline: none;
}
.password-requirements {
    font-size: 0.85rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    margin: 0px 10px;
    width: -webkit-fill-available;
}
.strength-text {
    font-size: 0.8rem;
    color:#6c757d;
}
input[type="password"]::-ms-reveal,
input[type="password"]::-webkit-reveal {
    display: none;
}

.password-requirements p {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.password-requirements ul {
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.password-requirements li {
    margin-bottom: 0.25rem;
}

.password-requirements li.valid {
    color: #28a745;
}

.password-requirements li.invalid {
    color: #dc3545;
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--secondary-text);
}
.star_card_icon{
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--surface-bg);
}
.star_card_icon i{
    font-size: 24px;
}
.admin_summary_section .summary-content-inner, .summary_section_content{
    background-color: var(--surface-bg);
    border: 1px solid var(--surface-border);
    padding: 18px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-md);
}
.admin_summary_section .summary-content-inner h1{
    font-size: var(--font-size-xl);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.015em;
}
.admin_summary_section .summary-content-inner h2{
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}
.admin_summary_section .summary-content-inner h3{
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

/* Call Info Bubble Styling */
.call-info-bubble {
    background-color: var(--surface-bg);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-md);
}

.call-info-bubble .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.call-info-bubble .info-item:last-child {
    margin-bottom: 0;
}

.call-info-bubble .info-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
    margin-right: 8px;
    min-width: fit-content;
}

.call-info-bubble .info-value {
    font-size: var(--font-size-base);
    color: var(--text-primary);
    font-weight: 400;
    word-break: break-word;
}

/* Mobile responsive stacking */
@media (max-width: 768px) {
    .call-info-bubble .row {
        flex-direction: column;
    }
    
    .call-info-bubble .col-md-6 {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
    
    .call-info-bubble .col-md-6:last-child {
        margin-bottom: 0;
    }
}

.user_filter_dropdown{
    width: 100%;
    max-width: 150px;
}
/* Responsive Design */

@media(max-width:1024px) {
    .call_history_outer_section .history-card {
        overflow: auto;
        display: flex;
        gap: 20px;
    }
    .call_history_outer_section .history-card div {
        width: max-content;
    }
    .call_history_outer_section .chat-icon{
        width: 100%!important;
    }
    .call_history_outer_section .responsive-container{
        flex-wrap: nowrap;
    }
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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



button.loading {
    position: relative;
    color: transparent !important; /* Ensure text is hidden regardless of other styles */
}

button.loading:disabled {
    color: transparent !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

button.loading * {
    visibility: hidden; /* Hide all child elements when loading */
}

button.loading::after {
    content: "";
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    top: calc(50% - 0.625rem);
    left: calc(50% - 0.625rem);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: white;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
    visibility: visible; /* Ensure spinner is visible */
}



div.loading {
    position: relative;
    color: transparent !important; /* Ensure text is hidden regardless of other styles */
}

div.loading::after {
    content: "";
    position: absolute;
    width: 3.25rem;
    height: 3.25rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-top-color: #000;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
    visibility: visible; /* Ensure spinner is visible */
}

.total-duration{
    font-size: 15px;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}


input:checked[type=checkbox]{
    background-color: var(--primary-input-color) !important;
}

.admin_call_history_pagination{
    border: 1px solid #e8e8e8;
    border-radius:0 0 10px 10px;
    padding: 10px;
}
.admin_call_history_list{
    border-bottom: 0px;
    border-radius: 10px 10px 0 0;
    height: calc(100vh - 160px);
}
.user_management_table table td{
    padding: 12px 16px;

}
.user_management_table .action_div{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.user_management_table .action_div i{
    color: #000;
    background-color: #9d9d9d69;
    height: 30px;
    width: 30px;
    border-radius: 4px;
    cursor: pointer;
    padding: 2px;
    align-items: center;
    justify-content: center;
    display: flex;
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }

    .sidebar .logo-text,
    .sidebar .user-info, .sidebar-header .voice-icon, .sidebar .logout_link span{
        opacity: 0;
        width: 0;
        display: none;
    }

    .sidebar.collapsed {
        width: 250px;
    }
    .sidebar-header{
        justify-content: center;
    }
    .sidebar.collapsed .sidebar-header{
        justify-content: space-between;
    }

    .sidebar.collapsed .logo-text,
    .sidebar.collapsed .menu-text,
    .sidebar.collapsed .user-info, 
    .sidebar-header.collapsed .voice-icon,
    .sidebar.collapsed .logout_link {
        opacity: 1;
        width: 100%;
        display: block;
    }

    .sidebar.collapsed .user-info {
        display: flex;
    }

    body.active {
        position: relative;
    }

    body.active::after {
        content: '';
        background-color: #4f4f5a87;
        top: 0px;
        position: absolute;
        left: 0px;
        width: 100%;
        height: 100%;
    }

    .sidebar .menu-text {
        opacity: 0;
        width: 0;
        display: none;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .content-area {
        margin-left: 70px;
    }

    .content-area.expanded {
        margin-left: 0;
    }

    .responsive-container {
        flex-direction: column;
    }

    .agent-info {
        margin-top: 10px;
        margin-right: 0;
    }

    .call_history_outer_section .page-header{
        flex-wrap: wrap;
        gap: 10px;
    }
    .greeting{
        font-size: 20px;
    }
    .agent_inner_sidebar, .agent_main_content{
        max-height: 400px;
        height: auto;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .filters{
        width: 100%;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .agent-stats {
        grid-template-columns: 1fr;
    }

    .conversation-message {
        max-width: 90%;
    }

    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .notification {
        width: 100%;
    }
    .login-wrapper, .signup-container{
        padding: 10px;
    }
}
