/* ========================================
   Modal Overlay and Content Styles
   ======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    background: var(--ns-bg-card, #161b2e);
    border: 1px solid var(--ns-border-accent, rgba(0, 240, 255, 0.2));
    border-radius: var(--ns-radius-lg, 14px);
    padding: 20px;
    max-width: 90%;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--ns-shadow-lg, 0 8px 32px rgba(0, 0, 0, 0.6));
}

/* PC 환경에서 종목 수가 많을 때 스크롤이 끝까지 내려가도록 수정 */
@media (min-width: 768px) {
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* 관리자 테이블 컨테이너에 명시적 스크롤 영역 설정 */
    #admin-table-container {
        max-height: 50vh;
        overflow-y: auto;
        overflow-x: auto;
    }
}
