
/* 기본 스타일 */
.custom-datalist {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-top: none;
  max-height: 70vh;
  overflow-y: auto;
  z-index: 999;
  border-radius: 0 0 8px 8px;
  box-shadow: var(--bs-box-shadow);
  display: none;
}

.custom-datalist div.option-item {
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  color: var(--bs-body-color);
}

.custom-datalist div.option-item:hover {
  background: var(--bs-tertiary-bg);
}

/* 강조 색상 (기본 밝은 노랑) */
.highlight {
  background-color: rgba(255, 230, 128, 0.7);
  font-weight: 600;
  border-radius: 2px;
  padding: 0 2px;
}

/* 🌙 다크 모드용 조정 */
:root[data-bs-theme="dark"] .highlight {
    background-color: rgba(255, 220, 90, 0.5); /* 눈 아프지 않은 부드러운 노랑 */
    color: #fff; /* 어두운 배경에서 대비 확보 */
}

/* 블러 오버레이 */
#blur-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 999;
}

/* 검색 패널 */
#disease-panel {
  position: fixed;
  top: 20%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  /* background: white; */
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(0,0,0,0.3);
  padding: 20px;
  display: none;
  z-index: 1000;
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translate(-50%, -45%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* 검색창 */
#disease-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 1.2rem;
}

.result-item {
  padding: 8px 10px;
  /* cursor: pointer; */
}

/* .result-item:hover {
  background: var(--bs-tertiary-bg);
} */

/* 닫기 버튼 */
#disease-close-btn {
  position: absolute;
  top: 10px; right: 15px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
}


a {
  text-decoration: underline;
  text-decoration-style: dotted; /* 밑줄 점선 */
  text-underline-offset: 2px; 
  /* color: #007bff; */
}
pre {
  white-space: pre-wrap;     /* 줄바꿈 유지 + 자동 줄바꿈 */
  word-wrap: break-word;     /* 긴 단어도 줄바꿈 */
  line-height: 1.6;
  margin: 0;                 /* pre 기본 여백 제거 */
}

.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1080;
  padding: .5rem .75rem;
  border-radius: .75rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

/* Header 배경 이미지 적용 */
/* .header {
  background: url('header_bg.png') no-repeat center center;
  background-size: cover;
  align-items: center;
  position: relative;
  color: white;
} */

/* 헤더 안의 텍스트 가독성을 위해 살짝 그림자 */
.header h2 {
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  margin: 0;
  font-family: Arial, sans-serif;
}

.vh-100 {
  height: 100vh;
}

.header {
  flex-shrink: 0;
}

.main {
  display: flex;
  flex-grow: 1;
  overflow: hidden;
}

.sidebar {
  width: 250px;
  /* background-color: #f8f9fa; */
  padding: 15px;
  overflow-y: auto;
  flex-shrink: 0;
}

.content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
}

.main-content {
  flex-grow: 1;
}

.footer {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  padding-top: 10px;
}

textarea#msg {
  flex-grow: 1;
}

button#send {
  flex-shrink: 0;
}

/* Add cursor change on hover for radio buttons */
.form-check-input:hover, 
.form-check-label:hover {
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 10px;
}
th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}
th {
  background-color: #f4f4f4;
  font-weight: bold;
}

.active-item {
  /* background-color: #6c757d;
  color: #fff;
  border-color: #6c757d; */
  color: var(--bs-list-group-action-hover-color);
  text-decoration: none;
  background-color: var(--bs-list-group-action-hover-bg);
}

/* .btn-outline-secondary {
  --bs-btn-border-color: initial;
} */