/* ===== 모달 기본 구조 ===== */

/* 모달 오버레이 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

/* 모달 컨테이너 */
.modal-container {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 480px;
    height: 50vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.show .modal-container {
    transform: scale(1) translateY(0);
}

/* 모달 헤더 */
.modal-header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 20px 20px 16px;
}

/* 모달 바디 */
.modal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* 모달 푸터 */
.modal-footer {
    padding: 16px 20px 20px;
    display: flex;
    gap: 12px;
}

/* 모바일 최적화 */
@media (max-width: 576px) {
    .modal-container {
        width: 95%;
        height: 85vh;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-footer {
        padding: 12px 16px 16px;
    }
}
