/* SDM Modal Overlay */
.sdm-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sdm-modal-overlay.active {
    display: flex;
}

/* SDM Modal */
.sdm-modal {
    background: #ffffff;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

/* Modal Header */
.sdm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #eee;
}

.sdm-modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #000;
}

.sdm-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.sdm-modal-close:hover {
    color: #000;
}

/* Modal Body */
.sdm-modal-body {
    padding: 32px;
}

/* Prevent body scroll when modal is open */
body.sdm-modal-open {
    overflow: hidden;
}

/* Mobile */
@media (max-width: 768px) {
    .sdm-modal {
        max-height: 85vh;
    }

    .sdm-modal-header {
        padding: 20px 24px;
    }

    .sdm-modal-body {
        padding: 24px;
    }
}
