.modern-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modern-alert-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modern-alert-modal {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    text-align: center;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body[data-theme="dark"] .modern-alert-modal {
    background: #1f2937;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modern-alert-overlay.show .modern-alert-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modern-alert-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    animation: iconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modern-alert-icon.alert-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.modern-alert-icon.alert-error {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.modern-alert-icon.alert-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.modern-alert-icon.alert-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.modern-alert-icon.alert-confirm {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

@keyframes iconPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modern-alert-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 1rem 0;
}

body[data-theme="dark"] .modern-alert-title {
    color: #f9fafb;
}

.modern-alert-message {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 2rem 0;
}

body[data-theme="dark"] .modern-alert-message {
    color: #d1d5db;
}

.modern-alert-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modern-alert-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.modern-alert-btn-confirm {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.modern-alert-modal[data-alert-type="success"] .modern-alert-btn-confirm {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.modern-alert-modal[data-alert-type="success"] .modern-alert-btn-confirm:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.modern-alert-modal[data-alert-type="warning"] .modern-alert-btn-confirm {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.modern-alert-modal[data-alert-type="warning"] .modern-alert-btn-confirm:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.modern-alert-modal[data-alert-type="info"] .modern-alert-btn-confirm {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.modern-alert-modal[data-alert-type="info"] .modern-alert-btn-confirm:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.modern-alert-modal[data-alert-type="error"] .modern-alert-btn-confirm,
.modern-alert-modal[data-alert-type="confirm"] .modern-alert-btn-confirm {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.modern-alert-modal[data-alert-type="error"] .modern-alert-btn-confirm:hover,
.modern-alert-modal[data-alert-type="confirm"] .modern-alert-btn-confirm:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.modern-alert-btn-confirm:hover {
    transform: translateY(-2px);
}

.modern-alert-btn-confirm:active {
    transform: translateY(0);
}

.modern-alert-btn-cancel {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

body[data-theme="dark"] .modern-alert-btn-cancel {
    background: #374151;
    color: #e5e7eb;
    border-color: #4b5563;
}

.modern-alert-btn-cancel:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

body[data-theme="dark"] .modern-alert-btn-cancel:hover {
    background: #4b5563;
    border-color: #6b7280;
}

@media (max-width: 480px) {
    .modern-alert-modal {
        padding: 2rem 1.5rem;
    }

    .modern-alert-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .modern-alert-title {
        font-size: 1.5rem;
    }

    .modern-alert-message {
        font-size: 0.95rem;
    }

    .modern-alert-buttons {
        flex-direction: column;
    }

    .modern-alert-btn {
        width: 100%;
    }
}

