/* --- Cohesive Warnings & Badges --- */
.warning-pill-footer {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--dash-border);
}

.warning-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(244, 63, 94, 0.05); /* Softer coral red background */
    padding: 0.6rem 1.2rem;
    border-radius: 14px;
    border: 1px solid rgba(244, 63, 94, 0.1);
}

.warning-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-coral);
    display: inline-block;
    box-shadow: 0 0 8px var(--accent-coral);
    animation: warningPulse 1.5s infinite ease-in-out;
}

@keyframes warningPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(244, 63, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

.warning-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-coral);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 8px;
    letter-spacing: 0.25px;
    text-transform: uppercase;
}

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

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

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

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

.badge-slate {
    background: rgba(100, 116, 139, 0.08);
    color: var(--text-sub);
    border: 1px solid rgba(100, 116, 139, 0.15);
}

/* === GLOBAL SKELETON SHIMMER LOADING ANIMATION ===
   Dash automatically sets data-dash-is-loading="true" on any output container
   while its callback is running. This rule creates a premium light sheen sweeping
   across loading elements, just like modern high-end SaaS applications.
*/
[data-dash-is-loading="true"] {
    position: relative !important;
    overflow: hidden !important;
    pointer-events: none !important;
    opacity: 0.65;
    transition: opacity 0.25s ease;
}

[data-dash-is-loading="true"]::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: premiumShimmerSweep 1.6s infinite cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
}

@keyframes premiumShimmerSweep {
    0% {
        left: -150%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Smooth fade-in restore when loading completes */
[data-dash-is-loading="false"],
[data-dash-is-loading=""] {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.4s ease-out;
}

/* --- Telecaller Profile Card Shimmer --- */
#profile-avatar[data-dash-is-loading="true"] {
    opacity: 0.4;
    animation: kpiPulseShimmer 1.5s infinite ease-in-out;
}

#profile-name[data-dash-is-loading="true"] {
    opacity: 0.4;
    animation: kpiPulseShimmer 1.5s infinite ease-in-out;
}

.profile-metric-value[data-dash-is-loading="true"] {
    opacity: 0.4;
    transform: scale(0.97);
    animation: kpiPulseShimmer 1.5s infinite ease-in-out;
    transition: all 0.15s ease-in-out;
}

@keyframes kpiPulseShimmer {
    0% { opacity: 0.4; }
    50% { opacity: 0.75; }
    100% { opacity: 0.4; }
}
