/* =========================
   MODAL SYSTEM (ISOLATED)
========================= */

.modal {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.85);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 9999;
}

.modal.hidden {
    display: none !important;
}

.modal-box {
    width: 600px;
    height: 80vh;

    background: #1a1a1a;
    border-radius: 10px;

    display: flex;
    flex-direction: column;

    overflow: hidden;
}

/* HEADER */
.modal-header {
    flex: 0 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 15px;
    font-weight: bold;

    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* BODY */
.modal-body {
    flex: 1;
    overflow-y: auto;

    padding: 15px;
}

/* 🔥 CRITICAL: RESET INSIDE MODAL */
.modal-body * {
    min-height: 0;
}

/* 🔥 REMOVE PANEL-STYLE CONSTRAINTS */
.modal-body .side,
.modal-body .right-panel {
    height: auto !important;
    overflow: visible !important;
}