/**
 * 공통 모달 스타일
 * 비밀번호 변경, 알림 팝업 등에서 사용
 */

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

.modal-overlay.show {
    display: flex;
}

/* 모달 컨텐츠 */
.modal-content {
    background: #fff;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 600px;
    max-width: 90%;
    position: relative;
}

/* 모달 헤더 */
.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.modal-header .close-btn {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-header .close-btn:hover {
    color: #333;
}

/* 모달 바디 */
.modal-body {
    padding: 30px;
}

/* 폼 테이블 레이아웃 (2열) */
.modal-body .form-table {
    width: 100%;
}

.modal-body .form-table .form-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.modal-body .form-table .form-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.modal-body .form-table .form-label {
    width: 120px;
    min-width: 120px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    padding-top: 10px;
}

.modal-body .form-table .form-field {
    flex: 1;
}

.modal-body .form-table .form-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 14px;
    box-sizing: border-box;
}

.modal-body .form-table .form-field input:focus {
    border-color: #5c7cfa;
    outline: none;
}

.modal-body .form-table .form-field .field-value {
    padding: 10px 0;
    font-size: 14px;
    color: #333;
}

.modal-body .form-table .form-field .field-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #5c7cfa;
}

/* 에러 메시지 */
.modal-body .error-msg {
    color: #ff3a96;
    font-size: 12px;
    margin-top: 8px;
    display: none;
}

.modal-body .error-msg.show {
    display: block;
}

/* 모달 푸터 (버튼 영역) */
.modal-footer {
    padding: 20px 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.modal-footer button {
    min-width: 100px;
    padding: 12px 30px;
    border: 1px solid #ddd;
    font-size: 14px;
    cursor: pointer;
}

.modal-footer .btn-primary {
    background: #5c7cfa;
    color: #fff;
    border-color: #5c7cfa;
}

.modal-footer .btn-primary:hover {
    background: #4c6ef5;
    border-color: #4c6ef5;
}

.modal-footer .btn-secondary {
    background: #fff;
    color: #333;
    border-color: #ddd;
}

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

/* 모달 사이즈 변형 - 작은 모달 */
.modal-content.modal-sm {
    width: 400px;
}

/* 안내 메시지 박스 */
.modal-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 20px;
}

.modal-info-box .info-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #5c7cfa;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.modal-info-box .info-text {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.modal-info-box .info-text strong {
    font-weight: 600;
    color: #333;
}
