/* ==========================================================================
   TELECALLER PORTAL SPECIFIC STYLES
   ========================================================================== */

/* --- Subtle Custom Card Borders for Distinct Telecaller Visualizations --- */
.telecaller-alert-card {
    border: 1.5px solid rgba(244, 63, 94, 0.25) !important;
}
.telecaller-alert-card:hover {
    border-color: rgba(244, 63, 94, 0.5) !important;
    box-shadow: 0 20px 40px -15px rgba(244, 63, 94, 0.12), 0 0 0 1px rgba(244, 63, 94, 0.3) !important;
}

.telecaller-workload-card {
    border: 1.5px solid rgba(124, 58, 237, 0.25) !important;
}
.telecaller-workload-card:hover {
    border-color: rgba(124, 58, 237, 0.5) !important;
    box-shadow: 0 20px 40px -15px rgba(124, 58, 237, 0.12), 0 0 0 1px rgba(124, 58, 237, 0.3) !important;
}

.telecaller-performance-card {
    border: 1.5px solid rgba(99, 102, 241, 0.25) !important;
}
.telecaller-performance-card:hover {
    border-color: rgba(99, 102, 241, 0.5) !important;
    box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.12), 0 0 0 1px rgba(99, 102, 241, 0.3) !important;
}

/* --- Today's True Effort Performance Radial Gauge Card Styles --- */
.telecaller-radial-gauge-card {
    height: 500px !important; /* Fully restored to 500px for absolute grid balance */
    border: 1.5px solid rgba(16, 185, 129, 0.25) !important;
}
.telecaller-radial-gauge-card:hover {
    border-color: rgba(16, 185, 129, 0.5) !important;
    box-shadow: 0 20px 40px -15px rgba(16, 185, 129, 0.12), 0 0 0 1px rgba(16, 185, 129, 0.3) !important;
}

/* --- Telecaller Special Alert Cards --- */
.alert-pulse-coral {
    background: rgba(244, 63, 94, 0.04) !important;
    border-color: rgba(244, 63, 94, 0.35) !important;
    animation: cardGlowAlertCoral 2.5s infinite ease-in-out;
}
.alert-pulse-coral .command-card-value {
    color: var(--accent-coral) !important;
}

.alert-pulse-orange {
    background: rgba(249, 115, 22, 0.04) !important;
    border-color: rgba(249, 115, 22, 0.35) !important;
    animation: cardGlowAlertOrange 2.5s infinite ease-in-out;
}
.alert-pulse-orange .command-card-value {
    color: var(--accent-orange) !important;
}

@keyframes cardGlowAlertCoral {
    0% { border-color: rgba(244, 63, 94, 0.35); box-shadow: 0 0 10px rgba(244, 63, 94, 0.05); }
    50% { border-color: rgba(244, 63, 94, 0.65); box-shadow: 0 0 20px rgba(244, 63, 94, 0.15); }
    100% { border-color: rgba(244, 63, 94, 0.35); box-shadow: 0 0 10px rgba(244, 63, 94, 0.05); }
}

@keyframes cardGlowAlertOrange {
    0% { border-color: rgba(249, 115, 22, 0.35); box-shadow: 0 0 10px rgba(249, 115, 22, 0.05); }
    50% { border-color: rgba(249, 115, 22, 0.65); box-shadow: 0 0 20px rgba(249, 115, 22, 0.15); }
    100% { border-color: rgba(249, 115, 22, 0.35); box-shadow: 0 0 10px rgba(249, 115, 22, 0.05); }
}

/* --- Telecaller Profile Card Dashboard Component --- */
.telecaller-profile-card {
    background: var(--dash-card);
    border: 1px solid var(--dash-border);
    border-radius: 24px;
    padding: 2.25rem 1.5rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.telecaller-profile-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(124, 58, 237, 0.2);
}

.telecaller-avatar-circle {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-indigo) 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 2.1rem;
    font-weight: 800;
    margin: 0 auto 1.15rem auto;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
    border: 3px solid #FFFFFF;
    letter-spacing: -0.5px;
}

.telecaller-profile-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-main);
    text-align: center;
    margin: 0 0 1.75rem 0;
    letter-spacing: -0.2px;
}

.profile-metrics-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.profile-metric-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem;
    background: #F8FAFC;
    border: 1px solid var(--dash-border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.profile-metric-item:hover {
    transform: translateX(4px);
    background: #FFFFFF;
    border-color: rgba(124, 58, 237, 0.25);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    z-index: 100 !important; /* Elevate the hovered item's stacking context above sibling items */
}

.profile-metric-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.profile-metric-icon-wrapper.wrapper-indigo {
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent-indigo);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.profile-metric-icon-wrapper.wrapper-teal {
    background: rgba(16, 185, 129, 0.08);
    color: var(--accent-teal);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.profile-metric-icon-wrapper.wrapper-purple {
    background: rgba(124, 58, 237, 0.08);
    color: var(--accent-purple);
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.profile-metric-icon-wrapper.wrapper-coral {
    background: rgba(244, 63, 94, 0.08);
    color: var(--accent-coral);
    border: 1px solid rgba(244, 63, 94, 0.15);
}

.profile-metric-icon-wrapper.wrapper-orange {
    background: rgba(249, 115, 22, 0.08);
    color: var(--accent-orange);
    border: 1px solid rgba(249, 115, 22, 0.15);
}

.profile-metric-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex-grow: 1;
}

.profile-metric-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-sub);
    letter-spacing: -0.1px;
    text-transform: uppercase;
    line-height: 1.3;
}

.profile-metric-value-container {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    margin-top: 0.1rem;
}

.profile-metric-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.profile-metric-suffix {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-sub);
    margin-left: 0.1rem;
}

/* --- Sales True Effort 3-Column outreach adapter --- */
.true-effort-layout-grid {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-height: 340px;
    padding: 0 1.5rem;
    gap: 1rem;
    box-sizing: border-box;
}

.true-effort-labels-col-left {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    flex: 1;
    text-align: left;
    justify-content: center;
}

.true-effort-labels-col-right {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    flex: 1;
    text-align: right;
    justify-content: center;
}

.true-effort-gauge-col {
    width: 340px;
    height: 340px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- Telecaller Profile & Filter Adaptations --- */
.agent-filter-panel {
    background: var(--dash-card);
    border: 1px solid var(--dash-border);
    border-radius: 24px;
    padding: 1.5rem 2.25rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.telecaller-split-layout {
    display: flex;
    gap: 1.75rem;
    width: 100%;
    align-items: flex-start;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.telecaller-profile-card-col {
    flex: 1 1 25%;
    min-width: 310px;
    box-sizing: border-box;
}

.telecaller-main-content-col {
    flex: 3 1 70%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-sizing: border-box;
    min-width: 500px;
}

/* --- Table Responsiveness Wrapper --- */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive .premium-table {
    min-width: 650px;
}

/* --- Table Shimmer Loading Animation --- */
#telecaller-table-container[data-dash-is-loading="true"] {
    opacity: 0.45;
    filter: blur(2px);
    animation: tablePulseShimmer 1.5s infinite ease-in-out;
    pointer-events: none;
    transition: all 0.2s ease-in-out;
}

/* --- RESPONSIVE MEDIA QUERIES FOR TELECALLER SPECIFICS --- */
@media (max-width: 768px) {
    .true-effort-layout-grid {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: auto !important;
        padding: 1rem 0 !important;
        gap: 2rem !important;
    }
    
    .true-effort-labels-col-left,
    .true-effort-labels-col-right {
        flex: none !important;
        width: 100% !important;
        text-align: center !important;
        align-items: center !important;
        gap: 1.5rem !important;
    }
    
    .true-effort-labels-col-left {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    .true-effort-labels-col-right {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
}

@media (max-width: 991px) {
    .agent-filter-panel {
        padding: 1.25rem 1.5rem !important;
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: center !important;
    }
    
    .agent-filter-panel .premium-dropdown-pill {
        margin: 0 auto !important;
    }
    
    .telecaller-main-content-col {
        min-width: 100% !important;
    }
}

@media (max-width: 1024px) {
    .card-header-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.25rem !important;
    }
    
    .card-title-section {
        flex: none !important;
        width: 100% !important;
    }
}
