.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--bg-card);
    width: 90%;
    max-width: 400px;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay:not(.hidden) .modal-card {
    transform: scale(1);
}

.modal-icon {
    width: 64px;
    height: 64px;
    background-color: var(--secondary);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.modal-icon i, .modal-icon svg {
    width: 32px;
    height: 32px;
}

.modal-icon.danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.modal-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.modal-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 2rem;
}

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modal-actions button {
    padding: 0.8rem;
    font-weight: 600;
    justify-content: center;
}

.modal-actions .btn-primary.danger {
    background-color: #ef4444;
}

.modal-actions .btn-primary.danger:hover {
    background-color: #dc2626;
}

@media (max-width: 480px) {
    .modal-card {
        padding: 1.5rem;
    }
    
    .modal-actions {
        grid-template-columns: 1fr;
    }
}
