/**
 * YognikShala — Lead Management Custom Stylesheet
 * Location: /yoga1/leads/css/leads_style.css
 * Time Zone: Indian Standard Time (Asia/Kolkata +05:30)
 */

@keyframes pulse-subtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.animate-pulse-subtle {
    animation: pulse-subtle 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Custom Hide Scrollbar for filter tabs */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Lead Status Badges */
.badge-status-active {
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.badge-status-expiring {
    background-color: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.badge-status-expired {
    background-color: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.badge-status-renewal {
    background-color: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

/* Custom Table Row Hover */
.lead-row:hover {
    background-color: #f8fafc;
}

/* Tooltip & Popover */
.custom-tooltip {
    position: relative;
}

/* Toast styling - 100% Solid & High Visibility */
#toast_container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
    max-width: 440px;
    width: calc(100% - 2rem);
    isolation: isolate;
}

@media (max-width: 640px) {
    #toast_container {
        bottom: 1rem;
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
        max-width: 100%;
    }
}

.toast-message {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.875rem 1.25rem;
    background-color: #0f172a !important;
    color: #ffffff !important;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 0.875rem;
    border: 1.5px solid #334155;
    box-shadow: 0 20px 30px -4px rgba(0, 0, 0, 0.45), 0 10px 15px -3px rgba(0, 0, 0, 0.3) !important;
    opacity: 1 !important;
    animation: toast-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-message.toast-success {
    border-color: #10b981 !important;
    background-color: #064e3b !important;
    color: #ffffff !important;
}

.toast-message.toast-error {
    border-color: #f43f5e !important;
    background-color: #881337 !important;
    color: #ffffff !important;
}

.toast-message.toast-info {
    border-color: #3b82f6 !important;
    background-color: #1e3a8a !important;
    color: #ffffff !important;
}

.toast-message.toast-warning {
    border-color: #f59e0b !important;
    background-color: #78350f !important;
    color: #ffffff !important;
}

/* Professional Rich Notification Card - Fully Opaque & Solid */
.lead-toast-card {
    pointer-events: auto;
    position: relative;
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border-radius: 1rem;
    border: 2px solid #e2e8f0;
    box-shadow: 0 25px 35px -5px rgba(15, 23, 42, 0.3), 0 12px 18px -6px rgba(15, 23, 42, 0.2) !important;
    overflow: hidden;
    opacity: 1 !important;
    animation: toast-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.25s ease;
}

.lead-toast-card.closing {
    opacity: 0 !important;
    transform: translateY(0.75rem) scale(0.96);
    pointer-events: none;
}

.lead-toast-card.success-card {
    border: 2px solid #10b981 !important;
    border-left: 6px solid #059669 !important;
}

.lead-toast-card.error-card {
    border: 2px solid #f43f5e !important;
    border-left: 6px solid #e11d48 !important;
}

.lead-toast-card.info-card {
    border: 2px solid #3b82f6 !important;
    border-left: 6px solid #2563eb !important;
}

.lead-toast-card.warning-card {
    border: 2px solid #f59e0b !important;
    border-left: 6px solid #d97706 !important;
}

.lead-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3.5px;
    background: linear-gradient(to right, #10b981, #059669);
    width: 100%;
    transform-origin: left;
    animation: toast-progress 5s linear forwards;
}

.lead-toast-card.error-card .lead-toast-progress {
    background: linear-gradient(to right, #f43f5e, #e11d48);
    animation-duration: 6.5s;
}

@keyframes toast-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(1.2rem) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Compact Typography for Dense High-Efficiency CRM */
html {
    font-size: 13.5px;
}

@media (min-width: 640px) {
    html {
        font-size: 14px;
    }
}

table th, table td {
    letter-spacing: -0.01em;
}

/* 3D Floating Bar Graph & Area Graph Popup Modal Effects */
#bargraph_3d_dialog_card,
#areagraph_3d_dialog_card {
    transform-style: preserve-3d;
    perspective: 1200px;
    will-change: transform, opacity;
}

@keyframes float-subtle {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-4px);
    }
}

#floating_bargraph_container {
    animation: float-subtle 4s ease-in-out infinite;
}

#floating_areagraph_container {
    animation: float-subtle 4s ease-in-out infinite 0.5s;
}

#floating_bargraph_container:hover,
#floating_areagraph_container:hover {
    animation-play-state: paused;
}

