/* 관리자 공용 모달 디자인 모듈 */
.admin-modal[hidden] {
    display: none;
}

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

.admin-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.admin-modal__dialog {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 520px;
    max-height: 80vh;
    min-height: 0;
    box-sizing: border-box;
    background: var(--color-white, #fff);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.admin-modal__dialog--wide {
    max-width: 720px;
}

.admin-modal__dialog--extra-wide {
    max-width: 1200px;
}

.admin-modal__header {
    position: relative;
    display: block;
    flex: 0 0 auto;
    min-height: 32px;
    padding: 4px 48px 20px 0;
    border-bottom: 1px solid var(--color-gray2, #e5e7eb);
    margin-bottom: 20px;
}

.admin-modal__heading {
    min-width: 0;
}

.admin-modal__title {
    margin: 0;
    color: var(--color-gray5, #1c1c1c);
    font-size: 18px;
    font-weight: bold;
    line-height: 24px;
}

.admin-modal__description {
    margin: 6px 0 0;
    color: var(--color-gray4, #4a4a4a);
    font-size: 14px;
    line-height: 1.5;
}

.admin-modal__close {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--color-gray5, #1c1c1c);
    font-family: inherit;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
}

.admin-modal__close::before,
.admin-modal__close::after {
    position: absolute;
    width: 16px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    content: '';
}

.admin-modal__close::before {
    transform: rotate(45deg);
}

.admin-modal__close::after {
    transform: rotate(-45deg);
}

.admin-modal__close:hover,
.admin-modal__close:focus-visible {
    background: var(--color-gray1, #f8f9fa);
    outline: none;
}

.admin-modal__body {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

body.admin-modal-open {
    overflow: hidden;
}
