/* 공통 모달 스타일 - 이미지와 동일한 디자인 */

/* 모달 오버레이 (배경 블러 효과 포함) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* backdrop-filter: blur(4px); */
    /* -webkit-backdrop-filter: blur(4px); */
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

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

/* 모달 컨테이너 */
.modal-container {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    min-width: 400px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10000;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 모달 내용 영역 */
.modal-content {
    margin-bottom: 24px;
}

/* 모달 제목 */
.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #000;
}

/* 모달 본문 */
.modal-body {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.6;
}

.modal-body:last-child {
    margin-bottom: 0;
}

/* 모달 푸터 (버튼 영역) */
.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* 모달 버튼 스타일 */
.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s;
    min-width: 100px;
}

.modal-btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.modal-btn-secondary:hover {
    background: #d1d5db;
}

.modal-btn-primary {
    background: #2c7be5;
    color: #fff;
}

.modal-btn-primary:hover {
    background: #1a5bb8;
}

/* 반응형 디자인 */
@media (max-width: 576px) {
    .modal-container {
        min-width: 90%;
        padding: 20px;
    }
    
    .modal-title {
        font-size: 16px;
    }
    
    .modal-body {
        font-size: 13px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
}

