/**
 * components/modal.css — 모달 시스템
 * display:none 이 기본값. JS에서 display:flex 로 열기.
 */

.modal-overlay {
    display: none;
    /* 기본 숨김 — JS에서 display:flex 로 열기 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--white);
    width: 100%;
    height: 100%;
    max-width: 600px;
    max-height: 120vh;
    overflow-y: auto;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--danger);
}

/* 모달 내 빈 상태 */
.modal-empty-state {
    text-align: center;
    padding: 40px 0;
    color: #adb5bd;
    font-size: 15px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}