﻿/* ==========================================================
   Maestro Modal
   ========================================================== */

.maestro-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(4px);
}

.maestro-modal-dialog {
    width: 1400px;
    max-width: 95vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--maestro-radius-lg);
    box-shadow: 0 30px 80px rgba(0,0,0,.25);
    overflow: hidden;
}

.maestro-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: #fff;
    border-bottom: 1px solid var(--maestro-border);
}

.maestro-modal-title h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.maestro-modal-title p {
    margin: .25rem 0 0;
    color: var(--maestro-text-light);
    font-size: .95rem;
}

.maestro-modal-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.maestro-modal-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(37,99,235,.08);
    color: var(--maestro-primary);
    font-size: 1.3rem;
}

.maestro-modal-close {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--maestro-text-light);
    transition: .2s ease;
    cursor: pointer;
}

    .maestro-modal-close:hover {
        background: #f1f5f9;
        color: var(--maestro-text);
    }

.maestro-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: #f8fafc;
}

.maestro-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--maestro-border);
    background: #fff;
}

.maestro-modal {
    opacity: 0;
    transition: opacity .19s ease;
}

    .maestro-modal.show {
        opacity: 1;
    }

.maestro-modal-dialog {
    transform: scale(.98);
    transition: transform .18s ease;
}

.maestro-modal.show .maestro-modal-dialog {
    transform: scale(1);
}