/* 기본(라이트) 모드 */
.api-docs-layout {
  display: flex;
  min-height: 600px;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  margin-top: 32px;
  position: relative;
}
.api-docs-sidebar {
  width: 260px;
  background: #fff;
  border-right: 1px solid #e5e7eb;
  padding: 32px 16px 16px 24px;
  font-size: 1rem;
  color: #222;
  position: fixed;
  top: 80px;
  left: 0;
  height: calc(100vh - 80px);
  overflow-y: auto;
  z-index: 100;
}
.sidebar-title {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 18px;
  color: #2d3748;
}
#api-toc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.7;
}
.api-docs-main {
  flex: 1;
  padding: 32px 40px;
  overflow-x: auto;
  background: #fff;
  color: #222;
  margin-left: 260px;
}
.api-docs-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 12px;
  color: #1a202c;
}
.markdown-content {
  background: #fff;
  border-radius: 6px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  font-size: 1.05rem;
  color: #222;
}
#api-toc a {
  color: #3182ce;
  text-decoration: none;
  margin-bottom: 2px;
}
#api-toc a:hover {
  text-decoration: underline;
}

/* 다크모드: body에 light-theme 클래스가 없을 때 적용 */
body:not(.light-theme) .api-docs-layout,
body:not(.light-theme) .api-docs-main,
body:not(.light-theme) .api-docs-sidebar,
body:not(.light-theme) .sidebar-title,
body:not(.light-theme) .markdown-content {
  color: #fff !important;
  background-color: #181a1b !important;
}
body:not(.light-theme) .api-docs-layout {
  background: #181a1b !important;
  color: #eee !important;
}
body:not(.light-theme) .api-docs-sidebar {
  background: #23272e !important;
  border-right: 1px solid #333 !important;
  color: #eee !important;
}
body:not(.light-theme) .sidebar-title {
  color: #90cdf4 !important;
}
body:not(.light-theme) #api-toc a {
  color: #63b3ed !important;
}
body:not(.light-theme) .markdown-content {
  background: #23272e !important;
  color: #eee !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
} 
body:not(.light-theme) .api-docs-main{
  background-color: #181a1b;
}
body:not(.light-theme) h1,
body:not(.light-theme) h2,
body:not(.light-theme) h3,
body:not(.light-theme) h4,
body:not(.light-theme) h5,
body:not(.light-theme) h6
{
  color:#eee !important;
}
body:not(.light-theme) .codehilite{
  background-color: #f6f8fa !important;
}