/* Custom Modals System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
}

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

.modal-container {
    background: var(--card-bg, #ffffff);
    width: 90%;
    max-width: 450px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 32px;
    transform: scale(0.95);
    transition: transform 0.2s ease-in-out;
    border: 1px solid var(--border-color, #e2e8f0);
}

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

.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.modal-icon-help {
    background: #f0f9ff;
    color: #0ea5e9;
}

.modal-icon-danger {
    background: #fef2f2;
    color: #ef4444;
}

.modal-icon-warning {
    background: #fffbeb;
    color: #f59e0b;
}

.modal-icon-success {
    background: #f0fdf4;
    color: #22c55e;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    margin-bottom: 8px;
}

.modal-message {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary, #64748b);
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
}

.modal-btn-cancel {
    background: #f1f5f9;
    color: #475569;
}

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

.modal-btn-primary {
    background: var(--primary, #2563eb);
    color: white;
}

.modal-btn-primary:hover {
    background: var(--primary-dark, #1d4ed8);
    transform: translateY(-1px);
}

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

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