/* popup.css - Global Custom Alerts */

.alert-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: alertFadeIn 0.3s ease;
}

[data-bs-theme="dark"] .alert-popup-overlay {
    background: rgba(0, 0, 0, 0.8);
}

.alert-popup {
    background: white;
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: alertSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid #e0e0e0;
}

[data-bs-theme="dark"] .alert-popup {
    background: #1a1a2e;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    color: #e8e8f0;
}

.alert-popup-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
}

.alert-popup-icon.error {
    background: #fef2f2;
    color: #dc2626;
}

.alert-popup-icon.success {
    background: #f0fdf4;
    color: #16a34a;
}

.alert-popup-icon.warning {
    background: #fffbeb;
    color: #d97706;
}

.alert-popup-icon.info {
    background: #eff6ff;
    color: #2563eb;
}

[data-bs-theme="dark"] .alert-popup-icon.error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

[data-bs-theme="dark"] .alert-popup-icon.success {
    background: rgba(22, 163, 74, 0.15);
    color: #22c55e;
}

[data-bs-theme="dark"] .alert-popup-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

[data-bs-theme="dark"] .alert-popup-icon.info {
    background: rgba(37, 99, 235, 0.15);
    color: #3b82f6;
}

.alert-popup h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #1f1f1f;
}

[data-bs-theme="dark"] .alert-popup h3 {
    color: #ffffff;
}

.alert-popup p {
    color: #636363;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

[data-bs-theme="dark"] .alert-popup p {
    color: #b0b0c0;
}

.alert-popup-footer {
    display: flex;
    gap: 12px;
}

.alert-popup-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.alert-popup-btn-primary {
    background: #0056D2;
    color: white;
}

.alert-popup-btn-secondary {
    background: #e0e0e0;
    color: #3c3c3c;
}

[data-bs-theme="dark"] .alert-popup-btn-primary {
    background: #7c6af7;
}

[data-bs-theme="dark"] .alert-popup-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #b0b0c0;
}

.alert-popup-btn:hover {
    filter: brightness(0.9);
    transform: translateY(-1px);
}

@keyframes alertFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes alertSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}