/*
 * Wedding Budget
 * Copyright (c) 2026 Amar Micro Inc.
 * Author: Jacques Amar
 *
 * All rights reserved. Proprietary software — see LICENSE for terms.
 *
 * Version: 1.0.0
 *
 * Base modal component — portable across projects.
 * Override via CSS custom properties in project app.css.
 */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--modal-overlay-bg, rgba(0, 0, 0, 0.45));
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background: var(--modal-bg, #fff);
    border-radius: 4px;
    box-shadow: var(--modal-shadow, 0 4px 20px rgba(0, 0, 0, 0.2));
    width: 100%;
    max-width: var(--modal-max-width, 28rem);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border-color, #ddd);
}

.modal-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-secondary, #666);
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary, #222);
}

.modal-body {
    padding: 0.75rem 1rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.5rem 1rem 0.75rem;
    border-top: 1px solid var(--border-color, #ddd);
}
