/* ============================================================
   MEDICURESOFT HIMS - TRANSPARENT BLURRED CARDIAC PULSE LOADER
   (No dark box, transparent blurred backdrop, glowing pulsing heart)
   ============================================================ */

.health-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Transparent overlay with frosted glass blur so the page behind is visible */
    background: rgba(4, 10, 24, 0.40) !important;
    backdrop-filter: blur(8px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(120%) !important;
    z-index: 9999999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.health-loader-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
    cursor: wait;
}

/* Container: Transparent, NO BOX, NO BORDERS, NO SHADOWS */
.health-loader-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: auto !important;
    max-width: 90vw !important;
    text-align: center !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    animation: none !important;
}

/* Remove decorative box glow and extra elements */
.health-loader-card::before,
.health-ecg-wrapper,
.health-loader-title,
.health-loader-badges,
.health-loader-progress-track {
    display: none !important;
}

/* Cardiac Pulse Heart Visual Container */
.health-heart-container {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Expanding ripple rings */
.health-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 59, 92, 0.75);
    box-shadow: 0 0 16px rgba(255, 59, 92, 0.5);
    animation: healthRingPulse 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    pointer-events: none;
}

.health-pulse-ring.pulse-2 {
    border-color: rgba(0, 242, 254, 0.7);
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.4);
    animation-delay: 0.45s;
}

@keyframes healthRingPulse {
    0% {
        transform: scale(0.65);
        opacity: 0.95;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* Glowing, Beating & Blinking Cardiac Heart */
.health-heart-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ff3b5c, #d90429);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 38px;
    box-shadow: 0 0 35px rgba(255, 59, 92, 0.95), 0 0 15px rgba(255, 255, 255, 0.6);
    animation: cardiacBlinkBeat 1.25s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes cardiacBlinkBeat {
    0% {
        transform: scale(1);
        box-shadow: 0 0 25px rgba(255, 59, 92, 0.75);
        filter: drop-shadow(0 0 8px rgba(255, 59, 92, 0.6));
        opacity: 0.92;
    }
    15% {
        transform: scale(1.22);
        box-shadow: 0 0 50px rgba(255, 59, 92, 1), 0 0 22px rgba(255, 255, 255, 0.75);
        filter: drop-shadow(0 0 25px rgba(255, 59, 92, 1));
        opacity: 1;
    }
    28% {
        transform: scale(1);
        box-shadow: 0 0 28px rgba(255, 59, 92, 0.8);
        filter: drop-shadow(0 0 10px rgba(255, 59, 92, 0.7));
        opacity: 0.94;
    }
    42% {
        transform: scale(1.15);
        box-shadow: 0 0 42px rgba(255, 59, 92, 0.95), 0 0 16px rgba(255, 255, 255, 0.55);
        filter: drop-shadow(0 0 20px rgba(255, 59, 92, 0.9));
        opacity: 1;
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 59, 92, 0.6);
        filter: drop-shadow(0 0 6px rgba(255, 59, 92, 0.5));
        opacity: 0.88;
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 25px rgba(255, 59, 92, 0.75);
        filter: drop-shadow(0 0 8px rgba(255, 59, 92, 0.6));
        opacity: 0.92;
    }
}

/* Floating Clean Status Message (No box, glowing frosted text) */
.health-loader-msg {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 14px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 242, 254, 0.6);
    min-height: 20px;
    max-width: 320px;
    text-align: center;
    line-height: 1.4;
    transition: color 0.2s ease;
}

/* In-Drawer Mini Health Loader (Inside modals and drawers) */
.drawer-health-loader {
    padding: 24px 15px;
    text-align: center;
    background: transparent;
    border-radius: 12px;
    margin: 10px 0;
}

.drawer-heart-pulse {
    font-size: 32px;
    color: #ff3b5c;
    display: inline-block;
    animation: cardiacBlinkBeat 1.25s ease-in-out infinite;
    filter: drop-shadow(0 0 14px rgba(255, 59, 92, 0.8));
    margin-bottom: 8px;
}

.drawer-loader-text {
    font-size: 12px;
    font-weight: 700;
    color: #00f2fe;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

/* Floating Toast Notifications */
.hims-toast-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 99999999 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.hims-custom-toast {
    pointer-events: auto;
    background: linear-gradient(135deg, rgba(13, 27, 56, 0.96), rgba(6, 14, 32, 0.96));
    color: #fff;
    border: 1px solid rgba(0, 242, 254, 0.4);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.65), 0 0 15px rgba(0, 242, 254, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    max-width: 440px;
    animation: himsToastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hims-custom-toast.toast-error {
    border-color: rgba(239, 68, 68, 0.7);
    box-shadow: 0 10px 30px rgba(0,0,0,0.65), 0 0 15px rgba(239, 68, 68, 0.25);
}

.hims-custom-toast.toast-success {
    border-color: rgba(16, 185, 129, 0.7);
    box-shadow: 0 10px 30px rgba(0,0,0,0.65), 0 0 15px rgba(16, 185, 129, 0.25);
}

.hims-custom-toast.toast-warning {
    border-color: rgba(245, 158, 11, 0.7);
    box-shadow: 0 10px 30px rgba(0,0,0,0.65), 0 0 15px rgba(245, 158, 11, 0.25);
}

@keyframes himsToastIn {
    from { transform: translateX(80px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
