/* 공통 모던 스타일 - 2024.07 - AI 생성 */

:root {
	--primary-color: #0088CC;
	--secondary-color: #e36159;
	--accent-color: #0088CC;
	--background-color: #ffffff;
	--content-bg-color: #f9fafc;
	--text-color: #333;
	--text-light: #6c757d;
	--border-radius: 10px;
	--transition: all 0.3s ease;
	--border-color: #dee2e6;
}

body, button, a {
	font-family: 'Pretendard', sans-serif;
	line-height: 1.6;
	font-variant-numeric: tabular-nums;
}

.text-primary {
	color: var(--primary-color) !important;
}

.text-secondary {
	color: var(--secondary-color) !important;
}

.text-blue {
	color: #0088CC !important;
}

/* 그라데이션 텍스트 */
.text-color-gradient {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* 모던 카드 스타일 */
.modern-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
    border: 1px solid #e9ecef;
    margin: 0;
}

.card-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color));
    z-index: 2;
}

.card-content {
    position: relative;
    z-index: 2;
}

/* 모던 버튼 스타일 */
.btn-modern {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    /* background: linear-gradient(45deg, var(--primary-color), var(--primary-color)); */
    /* border: none; */
    border-radius: 50px;
    /* color: #fff; */
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-modern:hover {
    transform: translateY(-3px);
    color: #fff;
}

.btn-text {
    margin-right: 8px;
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn-modern:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-modern.btn-lg {
    font-size: 1.2rem;
    padding: 1rem 2rem;
}

/* 동의 박스 스타일 */
.agree-box {
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* 동의 라디오 폼 스타일 */
.agree-radio-form {
    display: flex;
    justify-content: center;
    align-items: center;
}

.agree-radio-form .form-check-inline {
    margin-right: 1.5rem;
}

/* 커스텀 체크박스 및 라디오 버튼 스타일 */
.form-check-input[type="radio"],
.form-check-input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
    margin-right: 0.5rem;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    border: 2px solid #ddd;
    transition: all 0.2s ease;
    position: relative;
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-input[type="checkbox"] {
    border-radius: 4px;
}

.form-check-input[type="radio"]:checked,
.form-check-input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
}

.form-check-input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: #fff;
    line-height: 1;
}

.form-check-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(63, 164, 96, 0.25);
}

.form-check-label {
    cursor: pointer;
    font-weight: 500;
    color: #555;
    transition: color 0.2s ease;
}

.form-check-input:checked + .form-check-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* 전체동의 체크박스 특별 스타일 */
#all_agree {
    width: 20px;
    height: 20px;
}

#all_agree + .form-check-label {
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
}

#all_agree:checked + .form-check-label {
    color: var(--primary-color);
}

/* 전체동의 래퍼 스타일 */
.all-agree-wrapper {
    background-color: rgba(var(--primary-color), 0.05) !important;
    transition: all 0.3s ease;
}

.all-agree-wrapper:hover {
    background-color: rgba(var(--primary-color), 0.1) !important;
}

/* 마우스 오버 효과 */
.form-check:hover .form-check-input {
    border-color: var(--primary-color);
}

.form-check:hover .form-check-label {
    color: var(--primary-color);
}

/* 리스트 스타일 개선 */
.list-icons-style-3 li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
}

.list-icons-style-3 li i {
    position: absolute;
    left: 0;
    top: 5px;
    font-size: 0.85rem;
}

/* 두번째 박스 아이콘 수정 */
.list-primary.list-icons-style-3 li i {
    font-size: 0.8rem;
    top: 5px;
}

/* 성공 아이콘 스타일 */
.list-success.list-icons-style-3 li i {
    font-size: 0.8rem;
    top: 5px;
    color: var(--primary-color);
}

/* 아이콘 배경 스타일 */
.list-icons-style-3.list-success li i {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(63, 164, 96, 0.1);
}

/* 최강력 아이콘 크기 축소 규칙 - !important 사용 */
.agree-box .list-icons li i.fa-check,
.list-success li i.fa-check,
.list-icons-style-3 li i.fa-check {
    font-size: 0.65rem !important;
    width: 14px !important;
    height: 14px !important;
    line-height: 14px !important;
    text-align: center !important;
    background-color: rgba(63, 164, 96, 0.1) !important;
    border-radius: 50% !important;
    top: 7px !important;
    color: var(--primary-color) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 재사용 가능한 아이콘 클래스 */
.icon-small-check {
    font-size: 0.7rem !important;
    width: 16px !important;
    height: 16px !important;
    line-height: 16px !important;
    text-align: center !important;
    background-color: rgba(63, 164, 96, 0.1) !important;
    border-radius: 50% !important;
    top: 7px !important;
    color: var(--primary-color) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 경고 아이콘 클래스 */
.icon-small-warning {
    font-size: 0.7rem !important;
    width: 16px !important;
    height: 16px !important;
    line-height: 16px !important;
    text-align: center !important;
    background-color: rgba(220, 53, 69, 0.1) !important;
    border-radius: 50% !important;
    top: 4px !important;
    color: var(--secondary-color) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.agree-box .list-icons li,
.list-success li,
.list-icons-style-3 li {
    padding-left: 24px !important;
    line-height: 1.4 !important;
}

/* 모던 폼 스타일 */
.form-control-modern {
    height: 3rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 8px;
    border: 1px solid #e9e9e9;
    /* background-color: #f9f9f9; */
    transition: all 0.3s ease;
}

.form-control-modern:focus {
    border-color: #0088CC;
    background-color: #fff;
}

select.form-control-modern {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 8px 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.col-form-label {
    display: flex;
    align-items: center;
}

/* 테이블 스타일 */
.table-result {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.table-result thead th {
    background: linear-gradient(45deg, rgba(0,136,204,0.05), rgba(0,183,255,0.05));
    border: none;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: #555;
    font-weight: 600;
    text-align: center;
}

.table-result tbody td {
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: none;
    padding: 1rem 1.25rem;
    text-align: center;
    vertical-align: middle;
    font-size: 0.9rem;
    color: #666;
    background-color: #fff;
}

.table-result tbody tr:last-child td {
    border-bottom: none;
}

.btn-view, .btn-edit {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: none;
    border: none;
}

.btn-view {
    background-color: rgba(0,136,204,0.1);
    color: #0088CC;
}

.btn-edit {
    background-color: rgba(255,193,7,0.1);
    color: #FFC107;
}

.btn-view:hover {
    background-color: #0088CC;
    color: #fff;
}

.btn-edit:hover {
    background-color: #FFC107;
    color: #fff;
}

.no-results {
    padding: 2rem !important;
}

/* 정보 박스 */
.bg-light-5 {
    background-color: rgba(2, 184, 240, 0.05);
}

.info-box {
    border-left: 4px solid #3FA460;
}

.info-box ul li {
    color: #777;
}

/* 반응형 조정 */
@media (max-width: 767px) {
    .card-content {
        padding: 1rem !important;
    }
    
    .form-control-modern {
        height: 2.5rem;
        padding: 0.5rem 1rem;
    }
    
    .btn-modern {
        padding: 0.6rem 1.5rem;
    }
    
    .text-6 {
        font-size: 1.5rem !important;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .table-result {
        min-width: 600px;
    }
}

/* 애니메이션 최적화 */
@media (prefers-reduced-motion: reduce) {
    .animated {
        transition-property: none !important;
        transform: none !important;
        animation: none !important;
    }
}

/* Register 페이지 스타일 - 2024.07 */
/* 접수 페이지 그룹 스타일링 */
#cate1_ui .mr-4 {
    margin-right: 40px !important;
}

/* 동의 섹션 디자인 개선 */
.agree-item {
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.agree-item:hover { 
    border-color: var(--primary-color); 
    box-shadow: 0 0 10px rgba(63,164,96,0.1); 
}

.agree-item .form-check-inline { 
    margin-right: 20px; 
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

#all_agree_container {
    background-color: #e9f7ef;
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 10px 15px;
    margin-top: 10px;
}

#agree02_text {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #555;
}

#agree02_text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

#agree02_text h4:first-of-type { 
    margin-top: 0; 
}

#agree02_text p { 
    margin-bottom: 0.75rem; 
}

#agree02_text .indent10 { 
    padding-left: 10px; 
}

#agree02_text::-webkit-scrollbar { 
    width: 8px; 
}

#agree02_text::-webkit-scrollbar-track { 
    background: #f1f1f1; 
    border-radius: 10px; 
}

#agree02_text::-webkit-scrollbar-thumb { 
    background: #ccc; 
    border-radius: 10px; 
}

#agree02_text::-webkit-scrollbar-thumb:hover { 
    background: #aaa; 
}

/* 테이블 스타일 추가 */
.table-responsive table tr td { 
    font-size: 0.75rem; 
    text-align: center; 
    border: 1px solid #4e4e4e; 
}

/* 들여쓰기 스타일 */
.indent-20 {
    padding-left: 20px;
}

/* 워드 래핑 처리 */
.word-keep {
    word-break: keep-all;
    word-wrap: break-word;
}

/* 라디오 버튼 레이블 정렬 수정 */
.form-check {
    display: inline-flex;
    align-items: center;
    margin-bottom: 5px;
    margin-right: 0;
}

.form-radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px 15px;
    padding-top: 3px;
    width: 100%;
}

.form-check-input[type="radio"] {
    position: relative;
    top: 3px;
    margin-top: 0;
    margin-right: 6px;
}

.form-check-label {
    position: relative;
    line-height: 1.2;
    margin-bottom: 0;
    white-space: nowrap;
}

/* 반응형 조정 */
@media (max-width: 767px) {
    .form-radio-group {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* 커스텀 알림 모달 디자인 */
#alertModal .modal-content,
#confirmModal .modal-content {
  border-radius: 1.2rem;
  box-shadow: 0 8px 32px 0 rgba(0, 60, 180, 0.18), 0 1.5px 6px 0 rgba(0,0,0,0.08);
  border: none;
  background: linear-gradient(135deg, #fafdff 0%, #e8f0ff 100%);
  padding: 0.5rem 0.5rem 0 0.5rem;
}
#alertModal .modal-body,
#confirmModal .modal-body {
  color: #222;
  font-size: 1.02rem;
  padding: 2.2rem 2rem 1.2rem 2rem;
  text-align: center;
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  word-break: keep-all;
}
#alertModal .modal-footer,
#confirmModal .modal-footer {
  justify-content: center;
  background: none;
  border: none;
  padding-bottom: 2rem;
}
#alertModal .btn-primary,
#confirmModal .btn-primary {
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 0.6rem 2.5rem;
  box-shadow: 0 2px 8px 0 rgba(59,130,246,0.10);
  transition: all 0.18s;
}
#alertModal .btn-primary:hover, #alertModal .btn-primary:focus,
#confirmModal .btn-primary:hover, #confirmModal .btn-primary:focus {
  background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px 0 rgba(37,99,235,0.13);
}
#alertModal .btn-secondary,
#confirmModal .btn-secondary {
  border-radius: 2rem;
  font-weight: 500;
  font-size: 0.97rem;
  padding: 0.6rem 2.5rem;
  background: #e5e7eb;
  color: #222;
  border: none;
  margin-left: 0.5rem;
  transition: all 0.18s;
}
#alertModal .btn-secondary:hover, #alertModal .btn-secondary:focus,
#confirmModal .btn-secondary:hover, #confirmModal .btn-secondary:focus {
  background: #d1d5db;
  color: #111;
  transform: translateY(-2px) scale(1.04);
}
#alertModal .modal-dialog,
#confirmModal .modal-dialog {
  max-width: 370px;
}

/* 숫자 전용 스타일 - 동일한 너비 보장 */
.numbers, .numeric, .tabular-nums,
input[type="number"], 
.table-result td:contains('0'),
.table-result td:contains('1'),
.table-result td:contains('2'),
.table-result td:contains('3'),
.table-result td:contains('4'),
.table-result td:contains('5'),
.table-result td:contains('6'),
.table-result td:contains('7'),
.table-result td:contains('8'),
.table-result td:contains('9') {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
	font-family: 'Pretendard', 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
}

/* 두 번째 레벨 li도 첫 번째와 동일한 마커 사용 */
ul ul {
	list-style-type: disc;
} 