/* ==========================================================================
   LMS School Dashboard — Modal Styles
   ========================================================================== */

.lmsgb-scld-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lmsgb-scld-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.lmsgb-scld-modal-dialog {
    position: relative;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    background: var(--lmsgb-scld-card-bg, #fff);
    border-radius: var(--lmsgb-scld-radius, 8px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: lmsgb-scld-modal-in 0.2s ease;
}

.lmsgb-scld-modal-lg .lmsgb-scld-modal-dialog,
.lmsgb-scld-modal-dialog.lmsgb-scld-modal-lg {
    max-width: 720px;
}

/* Fix: the lg class is on the outer .lmsgb-scld-modal, not the dialog */
.lmsgb-scld-modal.lmsgb-scld-modal-lg .lmsgb-scld-modal-dialog,
div.lmsgb-scld-modal-lg .lmsgb-scld-modal-dialog {
    max-width: 720px;
}

@keyframes lmsgb-scld-modal-in {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lmsgb-scld-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--lmsgb-scld-border, #e5e7eb);
}

.lmsgb-scld-modal-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.lmsgb-scld-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--lmsgb-scld-text-light, #6b7280);
    line-height: 1;
    padding: 4px;
}

.lmsgb-scld-modal-close:hover {
    color: #ef4444;
}

.lmsgb-scld-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.lmsgb-scld-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--lmsgb-scld-border, #e5e7eb);
    background: var(--lmsgb-scld-bg, #f3f4f6);
}
