/* MODAL COMPONENT CSS */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1.25rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 400px;
    border-radius: 24px;
    padding: 2rem;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.dark .modal-content {
    background: #1e293b;
    border: 1px solid #334155;
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: #fef2f2;
    color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.dark .modal-icon {
    background: rgba(239, 68, 68, 0.1);
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.dark .modal-title {
    color: #f8fafc;
}

.modal-text {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.dark .modal-text {
    color: #94a3b8;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
}

.modal-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.2s;
    cursor: pointer;
}

.modal-btn-confirm {
    background: #ef4444;
    color: #fff;
    border: none;
}

.modal-btn-confirm:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.modal-btn-cancel {
    background: #f1f5f9;
    color: #64748b;
    border: none;
}

.dark .modal-btn-cancel {
    background: #334155;
    color: #cbd5e1;
}

.modal-btn-cancel:hover {
    background: #e2e8f0;
}
