/*!* 구글 폰트 적용 (Noto Sans KR) *!*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;700&display=swap');

body {
    font-family: 'Noto Sans KR', sans-serif;
}

.content-top-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 50px 0;
    border-bottom: 1px solid #dee2e6;
}


/* 카드 호버 효과 */
.hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

/* !*Hero 섹션 배경 텍스처 느낌 (선택) *!*/
/*.opacity-10 {*/
/*    opacity: 0.1;*/
/*}*/


.markdown table {
    border-collapse: collapse;
}

.markdown th,
.markdown td {
    border: 1px solid var(--bs-info-border-subtle) !important;
    padding: 6px 10px;
}


.sortable-ghost {
    opacity: 0.3; /* 원하는 투명도 값 (0.0 ~ 1.0) */
    background-color: #e0e0e0; /* 배경색 등 추가 스타일링 가능 */
}


/* -------------------- */
/* 가로 어코디언 전체 래퍼 */
.accordion-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    /*height: 120vh; !* 화면 높이에 맞게 조절 *!*/
    overflow-x: auto; /* 4개 이상 열릴 때 가로 스크롤 생성 */
    /*overflow-y: hidden;*/
    gap: 10px;
    padding-right: 1px;
    border-radius: 12px;
    /*background-color: #f8f9fa;*/
}

/* 개별 패널 기본 스타일 (애니메이션 적용) */
.accordion-panel {
    display: flex;
    flex-direction: row;
    background-color: #ffffff;
    border: 1px solid rgb(158 197 254 / 0.2);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* 부드러운 너비 트랜지션 */
    overflow: hidden;
    height: 100%;
}

/* 닫혀 있을 때 (아이콘만 표시) */
.accordion-panel.collapsed {
    width: 40px;
    min-width: 40px;
    flex: 0 0 auto;
    cursor: pointer;
}

/* 열려 있을 때 (최소 800px, 그 이상은 flex:1 로 등분) */
.accordion-panel.expanded {
    flex: 1;
    min-width: 800px; /* ★ 핵심: 3개 이하는 화면 등분, 4개 이상은 800px 고정으로 스크롤 발생 */
}

/* 패널 좌측 헤더 (클릭 영역) */
.panel-header-vertical {
    width: 40px;
    min-width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    background-color: rgb(158 197 254 / 0.2);
    border-right: 0px solid var(--bs-primary-border-subtle);
    border-left-radius: 12px;
    cursor: pointer;
}

/*.panel-header-vertical:hover {*/
/*    background-color: var(--bs-primary-bg-subtle);*/
/*}*/

/* 패널 본문 영역 */
.panel-body-content {
    flex: 1;
    min-width: 760px; /* 800px - 60px */
    /*padding: 10px;*/
    overflow-y: auto; /* 내용이 길면 세로 스크롤 */
    display: none; /* 닫혀있을 땐 DOM 렌더링 최적화를 위해 숨김 */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.accordion-panel.expanded .panel-body-content {
    display: block;
    opacity: 1;
}
/* -------------------- */


/* ---------------------------------------- */
/* spec_lab.html 플로팅 사이드바 (평소엔 좁게, 마우스 오버 시 확장) */
.spec-floating-sidebar {
    position: sticky;
    top: 43px; /* 상단 여백 (알맞게 조절) */
    margin-top: 23px;
    margin-left: 15px;

    width: 50px; /* 평소 닫혀 있을 때 너비 */
    max-height: 75vh;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgb(158 197 254 / 0.3);
    border-radius: 12px;
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1050; /* 캔버스 위로 올라오게 설정 */
    white-space: nowrap;
}

/* 마우스 오버 시 너비 확장 */
.spec-floating-sidebar:hover {
    width: 250px;
}

/* 스크롤바 숨기기 (깔끔한 UI용) */
.spec-floating-sidebar::-webkit-scrollbar {
    width: 4px;
}

.spec-floating-sidebar::-webkit-scrollbar-thumb {
    background: rgb(203 213 225 / 0.3);
    border-radius: 4px;
}

/* 메뉴 아이템 스타일 */
.spec-floating-sidebar .sidebar-item {
    display: flex;
    align-items: center;
    padding: 12px;
    color: var(--bs-primary);
    text-decoration: none;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f1f5f9;
}

.spec-floating-sidebar .sidebar-item:last-child {
    border-bottom: none;
}

.spec-floating-sidebar .sidebar-item:hover {
    background-color: var(--bs-primary-bg-subtle);
}

/* 아이콘 (항상 보임) */
.spec-floating-sidebar .sidebar-icon {
    min-width: 18px;
    text-align: center;
    /*font-size: 0.85rem;*/
    /*margin-right: 15px;*/
}

/* 텍스트 (확장 시 페이드인) */
.spec-floating-sidebar .sidebar-text {
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 0.8rem;
}

.spec-floating-sidebar:hover .sidebar-text {
    opacity: 1;
    padding-left: 6px;
    transition-delay: 0.1s;
}

/*!* 어코디언 패널 바디 기준점 설정 (스크롤 계산용) *!*/
.panel-body-content {
    position: relative;
}
/* ---------------------------------------- */
