/* popup.css - Shared Styles for Modals & Alerts */
:root {
    --popup-backdrop: rgba(255, 255, 255, 0.1);
    /* Glassmorphism Variables */
    --popup-bg: rgba(255, 255, 255, 0.75);
    /* Highly transparent for glass effect */
    --popup-border-radius: 20px;
    --popup-border: 1px solid rgba(255, 255, 255, 0.6);
    --popup-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.15),
        /* Color tint shadow */
        0 0 0 1px rgba(255, 255, 255, 0.4);
    /* Inner ring */
    --primary-color: #0ea5e9;
}

/* Custom Overlay */
.custom-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    /* No Dark Background */
    backdrop-filter: blur(5px);
    /* BLUR EFFECT ADDED */
    -webkit-backdrop-filter: blur(5px);
    /* Safari support */
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Popup Box - Glassmorphism Card */
.custom-popup-box {
    background: var(--popup-bg);
    box-shadow: var(--popup-shadow);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: var(--popup-border-radius);
    border: var(--popup-border);
    width: 380px;
    max-width: 90%;
    overflow: hidden;
    transform: scale(0.95);
    animation: popIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    padding: 32px 24px 28px 24px;
    text-align: center;
}

/* Icons - Glowing Effect */
.custom-popup-icon {
    font-size: 52px;
    margin-bottom: 12px;
    display: block;
    line-height: 1;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.icon-success {
    color: #10b981;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.icon-error {
    color: #ef4444;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.icon-warning {
    color: #f59e0b;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.icon-info {
    color: #0ea5e9;
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

/* Content */
.custom-popup-title {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    /* Keep dark for readability */
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.custom-popup-message {
    font-size: 15px;
    color: #475569;
    /* Slightly darker for contrast on glass */
    line-height: 1.6;
    margin-bottom: 28px;
    font-weight: 500;
}

/* Button - Modern Gradient */
.custom-popup-btn {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 14px;
    /* Matches popup roundedness */
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.custom-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -3px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
}

.custom-popup-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px -3px rgba(0, 0, 0, 0.2);
}

/* Footer & Button Groups */
.custom-popup-footer {
    display: flex;
    gap: 12px;
    width: 100%;
}

.custom-popup-btn.btn-cancel {
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

.custom-popup-btn.btn-cancel:hover {
    background: #f8fafc;
    color: #1e293b;
    border-color: #cbd5e1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}