/**
 * Custom Modal Styles
 * 공통 모달 스타일
 */

/* 모달 오버레이 */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* 모달 컨텐츠 래퍼 */
.custom-modal-wrapper {
    background-color: white;
    border-radius: 20px;
    padding: 32px 24px 24px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.3s ease-out;
}

/* 모달 헤더 */
.custom-modal-header {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
}

/* 모달 본문 */
.custom-modal-body {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 28px;
}

.custom-modal-body p {
    margin: 0;
}

/* 버튼 컨테이너 */
.custom-modal-button-container {
    display: flex;
    gap: 12px;
    width: 100%;
}

/* 확인 버튼 */
.custom-modal-confirm-btn {
    flex: 1;
    padding: 16px;
    background-color: #2B6ADF;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.custom-modal-confirm-btn:hover {
    background-color: #1E5BCC;
}

.custom-modal-confirm-btn:active {
    background-color: #174AA3;
}

/* 단일 버튼일 때 */
.custom-modal-wrapper > .custom-modal-confirm-btn {
    width: 100%;
}

/* 취소 버튼 */
.custom-modal-cancel-btn {
    flex: 1;
    padding: 16px;
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-modal-cancel-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.custom-modal-cancel-btn:active {
    background-color: #dee2e6;
}

/* Bottom Sheet Styles */
.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    animation: fadeIn 0.3s ease;
}

.bottom-sheet-content {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    max-height: 70vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding-bottom: 80px;
}

.bottom-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.bottom-sheet-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.btn-close-bottom-sheet {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-bottom-sheet:hover {
    color: #000;
}

.bottom-sheet-body {
    padding: 20px;
}

.radio-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-item:hover {
    background-color: #f8f9fa;
    border-color: #0d6efd;
}

.radio-item input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
}

.radio-item label {
    flex: 1;
    cursor: pointer;
    margin: 0;
    font-size: 16px;
}

.radio-item.selected {
    background-color: #e7f1ff;
    border-color: #0d6efd;
}

.bottom-sheet-footer {
    padding: 16px 20px;
    border-top: 1px solid #e9ecef;
}

.bottom-sheet-footer .btn-apply {
    position: initial;
    margin: 0;
}

.bottom-sheet-footer.position-fixed {
    border-top: 0;
    bottom: 0;
    width: 100%;
}

/* Custom Modal Styles */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.custom-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: scaleIn 0.3s ease;
}

.custom-modal-body {
    padding: 30px 20px;
    text-align: center;
}

.custom-modal-body p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.custom-modal-footer {
    padding: 0 20px 20px;
}

/* 애니메이션 */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 디자인 */
@media (max-width: 576px) {
    .custom-modal-wrapper {
        width: 85%;
        padding: 28px 20px 20px;
    }
    
    .custom-modal-header {
        font-size: 18px;
    }
    
    .custom-modal-body {
        font-size: 14px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}