
    /* 1) 논문 상세정보 테이블의 전체 스타일 */
    .custom-table {
        width: 100%;  /* 전체 너비 사용 */
        border-collapse: collapse;  /* 셀 테두리 겹침 제거 */
        border-radius: 10px;  /* 테두리 둥글게 */
        overflow: hidden;  /* 테두리 밖 내용 숨김 */
        font-size: 16px;  /* 기본 글자 크기 */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);  /* 그림자 효과 */
    }

    /* 2) 테이블 헤더(제목 셀) 스타일 */
    .custom-table th {
        background: linear-gradient(135deg, #6a0dad, #9b59b6);  /* 보라색 그라데이션 배경 */
        color: white;  /* 글자색 흰색 */
        font-weight: bold;  /* 굵은 글씨 */
        text-align: center;  /* 가운데 정렬 */
        padding: 1px;  /* 안쪽 여백 */
        border-bottom: 2px solid #9b59b6;  /* 하단 보더 진하게 */
    }

    /* 3) 테이블의 본문 셀(td) 스타일 */
    .custom-table td {
        padding: 15px;  /* 셀 안쪽 여백 */
        border-bottom: 1px solid #ddd;  /* 셀 구분 선 */
        text-align: left;  /* 왼쪽 정렬 */
    }

    /* 4) 홀수 번째 행 배경색 (줄무늬 효과) */
    .custom-table tr:nth-child(odd) {
        background-color: #faf5ff;  /* 연한 보라색 */
    }

    /* 5) 행에 마우스를 올렸을 때 배경 변화 */
    .custom-table tr:hover {
        background-color: #f3e5f5;  /* 조금 더 진한 보라색 */
        transition: 0.3s ease-in-out;  /* 부드러운 전환 효과 */
    }

    /* 6) 마지막 행은 하단 테두리 제거 */
    .custom-table tr:last-child td {
        border-bottom: none;
    }

    /* 7) 페이지네이션 스타일 - 페이지 버튼 중앙 정렬 */
    /* .pagination {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
    } */
    /* 태윤이꺼 */
     /* ✅ 페이지네이션 전체 컨테이너 스타일 */
    .pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-left: -50px;
    justify-content: center;  /* ✅ 가운데 정렬 */
    }

    /* ✅ 기본 페이지 버튼 스타일 */
    .page-btn {
    border: 1px solid #D1C4E9;
    padding: 8px 14px;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    color: #1d1d1d;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    }

    /* ✅ 비활성(비클릭) 버튼 */
    .page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    }

    /* ✅ 마우스를 올렸을 때, 클릭했을 때, 포커스했을 때 */
    .page-btn:hover,
    .page-btn:focus,
    .page-btn:focus-visible,
    .page-btn:active {
    background-color: #E0E2E8 !important;
    border-color: #D5D7DC !important;
    color: #1d1d1d !important;
    box-shadow: 0 0 0 0.15rem rgba(105, 0, 184, 0.15) !important;
    outline: none !important;
    }

    /* ✅ 현재 활성 페이지 버튼 (보라색) */
    .page-btn.active {
    background: #6900B8 !important;
    color: #fff !important;
    border-color: #6900B8 !important;
    }


    /* 8) 좋아요 버튼 컨테이너 스타일 */
    .like-button-container {
        margin-top: 0 !important;  /* 여백 제거 */
        display: inline-block;  /* 인라인 블록 요소로 표시 (버튼이 다른 요소 옆에 배치 가능) */
    }

    /* 9) 좋아요 버튼 자체 스타일 */
    .like-button-container .like-paper {
        font-size: 16px !important;  /* 버튼 텍스트 크기 조정 */
        padding: 8px 15px !important;  /* 버튼 내부 여백 */
        border-radius: 8px !important;  /* 버튼 테두리 둥글게 */
        transition: all 0.2s ease-in-out;  /* 호버 시 부드러운 효과 */
    }

    /* 10) 정성적 분석 박스 공통 스타일 */
    .analysis-box {
        height: 400px;  /* 고정 높이 */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: #f8f9fa;  /* 연한 회색 배경 */
        box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);  /* 박스 그림자 효과 */
    }
    /* ==========================
   헤더 컴팩트 + 브레드크럼 호버 효과
   ========================== */

/* 1) 헤더 높이 축소(컴팩트) */
.hero-compact {
  /* 상하 패딩 축소: 기존 py-5(약 3rem) → 1.75rem로 축소 */
  padding-block: 1.75rem !important;
}

/* 반응형에서 조금만 키움 */
@media (min-width: 992px) {
  .hero-compact { padding-block: 2.25rem !important; }
}

/* 2) 제목 여백/크기 살짝 줄이기 */
.hero-compact .page-title {
  margin-bottom: 0.6rem;   /* 제목-브레드크럼 간격 축소 */
  line-height: 1.2;
}

/* 3) 브레드크럼 카드 자체도 슬림하게 */
.crumb-card {
  padding: 6px 10px !important;   /* 카드 안쪽 여백 축소 */
  border-radius: 10px;
}

/* 4) 링크에 호버 효과 (부드러운 하이라이트 + 살짝 떠오름) */
.crumb-link {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 8px;
  color: #ffffff;                /* 기본 흰색 */
  text-decoration: none;
  transition: all .25s ease;
}
.crumb-link:hover,
.crumb-link:focus {
  background: rgba(255,255,255,0.22);
  color: #6900B8 !important;     /* 💜 연보라 텍스트 */
  box-shadow: 0 2px 8px rgba(105,0,184,0.25);
  transform: translateY(-1px);
  text-decoration: none;
}

/* 5) 마지막 활성 항목은 약간 흐리게 유지 */
.breadcrumb-item.active {
  color: #fff !important;
  opacity: .85;
  font-weight: 700;
}
/* ==========================
   연관 논문 리스트 레이아웃 고정
   ========================== */
/* 기본 상태: 회색 (#444~#555) */
.meta-authors a {
  color: #555 !important;
  text-decoration: none !important;
  font-weight: 500;
}

/* 호버 시: 짙은 보라색 포인트 */
.meta-authors a:hover {
  color: #6900B8 !important;
  text-decoration: underline;
}

/* 부모가 .text-center 여도 리스트/카드는 좌정렬 유지 */
.related-list,
.related-list * {
  text-align: left !important;     /* ✅ 강제 좌정렬 */
}

/* 리스트: 세로 스택 + 자식 폭 100% 확장 */
.related-list{
  display: flex;
  flex-direction: column;
  align-items: stretch;            /* ✅ 카드 가로 100% */
  gap: 10px;
  padding: 0;
}

/* 카드: 논문 상세와 동일 — 항상 100% 폭 */
.paper-card{
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 28px 1fr auto;   /* 체크박스 | 본문 | 우측메타(있을 때) */
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #EEE8F8;
  border-radius: 14px;
  background: #fff;
  transition: box-shadow .2s ease, transform .06s ease, background .2s ease;
}
.paper-card:hover{
  background: #fff;
  box-shadow: 0 10px 24px rgba(105,0,184,.12);
  transform: translateY(-1px);
}

/* 체크박스 열 정렬 */
.paper-card .check-col{ display:flex; align-items:center; justify-content:center; }

/* ==========================
   타이포 리셋 + 메타 라인 스타일
   ========================== */
.paper-card, .paper-card *{
  font-family: inherit !important;   /* ✅ 이상한 폰트 상속 차단 */
  font-style: normal !important;     /* ✅ 기울임 방지 */
  letter-spacing: normal;
}

.paper-card .body-col{
  display:flex; flex-direction:column; gap:6px;
}

/* 제목 */
.paper-card .paper-title{
  margin:0; font-weight:700; font-size:16px; line-height:1.35; color:#1D1D1D;
}
.paper-card .paper-title a{ color:inherit; text-decoration:none; }
.paper-card .paper-title a:hover{ color:#6900B8; text-decoration:underline; }

/* 메타 한 줄(저자/키워드/파트·연도) */
.meta-line{ display:block; font-size:14px; color:#333; line-height:1.4; }
.meta-label{ font-weight:700; color:#4C4C4C; margin-right:6px; }

/* 키워드 pill — 논문 상세와 동일 톤 */
.tag{
  display:inline-block; padding:4px 8px;
  border:1px solid #E0D5F4; border-radius:8px;
  background:#F8F5FF; color:#4A2C7F; font-size:12px; line-height:1;
  margin-right:6px; margin-bottom:4px;
}

/* 파트 | 연도 구분자 */
.meta-partyear .sep{ display:inline-block; margin:0 10px; color:#B7A9D8; font-weight:600; }

/* 우측 메타(있을 때만) */
.right-col{
  display:flex; flex-direction:column; gap:10px;
  justify-content:center; align-items:flex-end; min-width:120px;
}

/* 반응형: 우측 메타를 아래로 */
@media (max-width: 768px){
  .paper-card{ grid-template-columns:28px 1fr; }
  .right-col{ grid-column:1 / -1; align-items:flex-start; flex-direction:row; gap:8px; }
}

/* 카드/리스트 쪽은 작은 라벨 */
.meta-line{ display:block; font-size:14px; color:#333; line-height:1.4; }
.meta-label{ font-weight:700; color:#4C4C4C; margin-right:6px; }

/* 카드 내부는 어떤 상위 text-center 영향에도 좌정렬/일반 폰트 유지 */
.paper-card, .paper-card *{
  text-align: left !important;
  font-family: inherit !important;
  font-style: normal !important;
  letter-spacing: normal;
}

/* 키워드 pill(카드) */
.tag{
  display:inline-block; padding:4px 8px; border:1px solid #E0D5F4; border-radius:8px;
  background:#F8F5FF; color:#4A2C7F; font-size:12px; line-height:1;
  margin-right:6px; margin-bottom:4px;
}
/* 5) 좌측 체크박스 칼럼 (시각 정렬) */
.paper-card .check-col {
  display: flex;
  align-items: center;
  justify-content: center;
}
.paper-card .check-col .form-check-input {
  width: 18px; height: 18px;
  border-radius: 4px;
  border-color: #CBB6EE;
}
.paper-card .check-col .form-check-input:checked {
  background-color: #6900B8;
  border-color: #6900B8;
}

/* ==========================
   [논문 상세 버튼 통합 디자인]
   ========================== */

/* 1) 버튼 그룹 정렬 */
.button-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* 2) 공통 버튼 베이스 */
.btn-unified {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  padding: 10px 18px;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(105, 0, 184, 0.1);
  background: #fff;
  border: 2px solid transparent;
  letter-spacing: -0.2px;
}

/* 3) 공통 아이콘 */
.btn-unified i { font-size: 16px; }

/* 4) 서재 담기 버튼 */
.btn-save {
  border-color: #FFD54F;
  color: #8C6B00;
  background: linear-gradient(135deg, #FFF8E1, #FFECB3);
}
.btn-save:hover {
  background: linear-gradient(135deg, #FFD54F, #FFC107);
  color: #3E2E00;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.35);
  transform: translateY(-2px);
}

/* 5) 좋아요 버튼 */
.btn-like {
  border-color: #be3d3d;
  background: linear-gradient(135deg, #fff6f6, #ffecec);
  color: #cf4b4b;
  font-weight: 700;
}
.btn-like:hover {
  background: linear-gradient(135deg, #ffd6d6, #ffbdbd);
  color: #b84b4b;
  border-color: #f5aaaa;
  box-shadow: 0 4px 12px rgba(217, 48, 48, 0.35);
  transform: translateY(-2px);
}
.btn-like.active {
  background: linear-gradient(135deg, #e46363, #d93030);
  color: #fff;
  border-color: #d33f3f;
  box-shadow: 0 4px 14px rgba(217, 48, 48, 0.45);
  transform: translateY(-1px);
}
.btn-like i { color: inherit; transition: color 0.2s ease; }
.btn-like.active i { color: #fff; }

/* 6) PDF 저장 버튼 */
.btn-pdf {
  border-color: #D1C4E9;
  background: #fff;
  color: #333;
}
.btn-pdf:hover {
  background: #F3E5F5;
  border-color: #B39DDB;
  color: #4A148C;
  box-shadow: 0 4px 12px rgba(105, 0, 184, 0.2);
  transform: translateY(-2px);
}

/* 7) 아이콘 크기 */
.btn-unified i { font-size: 15px; }

/* 정성적 분석 바깥 컨테이너(초록 → 회색, 자동 높이) */
.analysis-shell{
  border:1px solid #E5E7EB;
  background:#F9FAFB;
  border-radius:12px;
  padding:16px;
}

/* 실제 결과 박스(내용 길이에 따라 자동 확장) */
.analysis-box{
  min-height:220px;
  height:auto;
  max-height:72vh;
  overflow-y:auto;
  background:#fff;
  border:1px solid #E5E7EB;
  border-radius:10px;
  padding:16px;
}

/* 모바일 최적화 */
@media (max-width: 768px){
  .analysis-box{
    max-height:64vh;
  }
}

/* ==========================
   키워드 상세탭 — 세련된 하이엔드 디자인
   ========================== */

.keyword-tabs-nav {
  border-bottom: 1px solid #E5E7EB;
}

/* 탭 컨테이너 */
.keyword-tabs {
  border-bottom: none;
  gap: 4px;
}

/* 비활성 탭 */
.keyword-tabs .nav-link {
  position: relative;
  border: none;
  background: transparent;
  padding: 10px 20px;
  color: #9CA3AF;        /* 회색 텍스트 */
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px 10px 0 0;
  transition: all 0.25s ease;
}

/* 비활성 탭 호버 */
.keyword-tabs .nav-link:hover {
  color: #6900B8;
  background: rgba(105, 0, 184, 0.06);  /* 은은한 보라 하이라이트 */
}

/* 활성 탭 */
.keyword-tabs .nav-link.active {
  color: #6900B8;                     /* 선명한 보라 */
  background: #ffffff;                /* 카드처럼 흰 배경 */
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(105,0,184,0.15); /* 입체감 */
  border-radius: 12px 12px 0 0;
}

/* 활성 탭 하단 포인트 라인 */
.keyword-tabs .nav-link.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -6px;
  height: 3px;
  background: #F9A825;  /* 세련된 골드 계열 노랑 */
  border-radius: 999px;
}

/* 모바일 최적화 */
@media (max-width: 576px) {
  .keyword-tabs .nav-link {
    padding: 7px 12px;
    font-size: 13px;
  }
}

/* ===== 연관 키워드 네트워크 전용 스타일 ===== */
#kwNetworkChart{
  width:100%;
  height:100%;
  min-height:260px;
  background:#FAFBFE;        /* 아주 옅은 미색 */
  border-radius:12px;
  display:block;
}
#kwNetworkChart, #kwNetworkChart *{
  user-select:none;
  -webkit-user-drag:none;
}

/* 공통 툴팁 */
.nc-tooltip{
  position:absolute;
  pointer-events:none;
  background:rgba(33,33,33,.96);
  color:#fff;
  padding:8px 10px;
  border-radius:8px;
  font-size:12px;
  line-height:1.4;
  box-shadow:0 6px 18px rgba(0,0,0,.25);
  transform:translate(-50%, calc(-100% - 10px));
  white-space:nowrap;
  z-index:9999;
}
