/* UI Modals - Custom Dialogs */

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.custom-modal {
    background: white;
    border-radius: 12px;
    padding: 0;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.custom-modal-overlay.active .custom-modal {
    transform: translateY(0);
}

.custom-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-modal-body {
    padding: 1.5rem;
    color: #555;
    line-height: 1.5;
    font-size: 0.95rem;
}

.custom-modal-footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.btn-modal {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-size: 0.9rem;
}

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

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

.btn-modal-confirm {
    background: var(--primary-teal, #2aaca2);
    color: white;
}

.btn-modal-confirm:hover {
    filter: brightness(1.1);
}

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

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

/* Dark Mode Support */
body.dark-mode .custom-modal {
    background: var(--surface-color, #1e293b);
    border: 1px solid var(--border-color, #334155);
}

body.dark-mode .custom-modal-header {
    border-bottom-color: var(--border-color, #334155);
}

body.dark-mode .custom-modal-title {
    color: var(--text-primary, #f8fafc);
}

body.dark-mode .custom-modal-body {
    color: var(--text-secondary, #94a3b8);
}

body.dark-mode .custom-modal-footer {
    background: var(--bg-color, #0f172a);
    border-top-color: var(--border-color, #334155);
}

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

body.dark-mode .btn-modal-cancel:hover {
    background: #475569;
}