/* ✅ 전체 스타일 */
body {
    font-family: Arial, sans-serif;
}

/* ✅ 필터 컨테이너 전체 스타일 (가운데 정렬 추가) */
.filters-container {
    display: flex;
    justify-content: space-between; /* 좌우 배치 */
    align-items: center; /* ✅ 세로 중앙 정렬 */
    margin-bottom: 10px;
    margin-top: 10px; /* ✅ 위쪽 여백 추가 */
    gap: 25px; /* ✅ LIONS칼리지 정보 입력 & 전공과목 탐색 사이 간격 조정 */
}

/* ✅ 각 필터 섹션 공통 스타일 */
.lions-info, .major-explore {
    width: 50%; /* 반반씩 차지 */
    display: flex;
    flex-direction: column; /* ✅ 내부 요소 세로 배치 */
    align-items: center; /* ✅ 내부 요소 가운데 정렬 */
}

/* ✅ 섹션 라벨 (가운데 정렬) */
.section-label {
    display: block;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
    text-align: center; /* ✅ 텍스트 가운데 정렬 */
}

/* ✅ 드롭다운 & 체크박스 스타일 */
.dropdown-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%; /* ✅ 전체 너비 차지 */
    justify-content: center; /* ✅ 드롭다운/버튼 가운데 정렬 */
}

/* ✅ 드롭다운 스타일 */
#majorCategorySelect, #classSelect, #departmentSelect {
    width: 100%; /* ✅ 동일한 크기 유지 */
    max-width: 350px; /* ✅ 드롭다운 크기 제한 */
    height: 42px;
    padding: 8px;
    border: 2px solid #6b7073;
    border-radius: 8px;
    background-color: white;
    font-size: 16px;
    cursor: pointer;
}

/* 📌 드롭다운 화살표 스타일 */
#majorCategorySelect, #classSelect, #departmentSelect {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='gray'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}

/* ✅ 학과 선택 드롭다운 hover & focus 효과 */
#majorCategorySelect:hover, #classSelect:hover, #departmentSelect:hover,
#majorCategorySelect:focus, #classSelect:focus, #departmentSelect:focus {
    border-color: #87CEEB;
    background-color: #f0f8ff;
}

/* ✅ 체크박스 버튼 스타일 */
#toggleCheckedDataLabel {
    width: 100%;
    max-width: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 10px;
    background-color: #87CEEB;
    font-weight: bold;
    border-radius: 8px;
    border: 1px solid #6b7073;
    cursor: pointer;
    transition: background-color 0.3s ease;
    gap: 5px; /* ✅ 체크박스와 텍스트 간격 줄이기 */
}

/* ✅ 체크박스 크기 조정 */
#toggleCheckedData {
    width: 18px; /* 기존 20px → 18px로 약간 축소 */
    height: 18px;
    accent-color: rgb(248, 244, 123);
}

/* ✅ 테이블 스타일 */
table {
    margin-top: 20px;
    font-size: 9px;
    text-align: center;
}

/* ✅ 반응형 테이블 (모바일 최적화) */
@media (max-width: 768px) {
    table {
        width: 100%;
        overflow-x: auto;
        display: block;
        -webkit-overflow-scrolling: touch;
    }
    .filters-container {
        flex-direction: column; /* ✅ 세로 정렬 */
        align-items: stretch; /* ✅ 부모 요소 너비만큼 확장 */
        gap: 15px; /* ✅ 상하 간격 추가 */
    }

    .lions-info, .major-explore {
        width: 100%; /* ✅ 전체 너비 차지 */
    }

}

/* ✅ 테이블 관련 스타일 */
.dataTables_filter {
    margin-bottom: 10px;
}

table.dataTable {
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

table.dataTable tbody td {
    border-bottom: 1px solid #ddd;
}

/* ✅ 새로 추가된 행의 배경색 */
tr.new-row td {
    background-color: #f0f8ff !important;
    font-weight: normal !important;
}

/* ✅ 클릭된 원래 행 볼드 적용 */
tr.bold-row td {
    background-color: #f0f8ff !important;
    font-weight: bold !important;
}

/* ✅ 펼침/접기 아이콘 스타일 */
.expand-row {
    cursor: pointer;
    font-size: 18px;
    color: #333;
    transition: transform 0.3s ease;
}

/* ✅ 아이콘 클릭 시 효과 */
.expand-row:hover {
    color: #007bff;
}

/* ✅ 테이블 헤더 스타일 */
table.dataTable thead th {
    background-color: #c3dfea !important;
    color: black !important;
    font-weight: bold;
    text-align: center;
    font-size: 14px;
}

/* ✅ 툴팁 스타일 */
#tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    border-radius: 5px;
    font-size: 14px;
    white-space: normal;
    display: none;
    z-index: 1000;
    width: 300px;
    max-width: 500px;
    word-wrap: break-word;
}

/* ✅ 로딩 화면 스타일 */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    z-index: 9999;
}

/* ✅ 로딩 스피너 애니메이션 */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ✅ 점 제거 */
.custom-list {
    list-style: none;
    padding-left: 0; /* 기본 목록 패딩 제거 */
    margin-left:10px;
    margin-bottom:5px;
    font-size:14px;
}

/* ✅ 리스트 항목 스타일 */
.custom-list li {
    color: rgb(30, 30, 30); /* ✅ 볼드 부분은 기본 검은색 */
    font-weight: 300; /* ✅ 기본 텍스트 가벼운 폰트 */
}

/* ✅ 볼드 텍스트는 기존 스타일 유지 */
.custom-list li b {
    color: rgb(30, 30, 30); /* ✅ 볼드 부분은 기본 검은색 */
    font-weight: 500; /* ✅ 기본 텍스트 가벼운 폰트 */
}
