/* =============================================
   Modern & Clean Documentation Theme
   ============================================= */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: #0f172a;
  font-weight: 600;
  line-height: 1.3;
}

a {
  color: #6366f1;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #4338ca;
}

p {
  margin-bottom: 1rem;
  color: #475569;
  line-height: 1.8;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: #1e293b;
  font-weight: 600;
}

code {
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
  font-size: 0.85em;
  background: #f1f5f9;
  color: #e11d48;
  padding: 0.15em 0.45em;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* --- Header --- */
.dt-header {
  width: 100%;
  height: 64px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.9);
}

.dt-header_blue {
  background: rgba(255, 255, 255, 0.9);
}

.dt-logo {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

/* --- Layout --- */
.dt-container {
  height: calc(100vh - 64px);
}

.dt-container_flex {
  display: flex;
  overflow: hidden;
}

/* --- Sidebar Navigation --- */
.dt-navbar {
  width: 280px;
  min-width: 280px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  padding: 1.5rem 0;
}

.dt-navbar::-webkit-scrollbar {
  width: 4px;
}

.dt-navbar::-webkit-scrollbar-track {
  background: transparent;
}

.dt-navbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.dt-navbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.dt-navbar__section {
  padding: 0;
}

.dt-navbar__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dt-navbar__link {
  display: block;
  padding: 0.55rem 1.5rem;
  font-size: 0.9rem;
  color: #475569;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  width: auto;
}

.dt-navbar__link:hover {
  color: #6366f1;
  background: #f8fafc;
  border-left-color: #6366f1;
}

.dt-navbar__link_nested {
  padding: 0.4rem 1.5rem 0.4rem 2.5rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: #64748b;
}

.dt-navbar__link_nested:hover {
  color: #6366f1;
}

.dt-navbar__link_active {
  color: #6366f1;
  background: #eef2ff;
  border-left-color: #6366f1;
}

/* --- Main Content --- */
.dt-content {
  flex: 1;
  padding: 2.5rem 3.5rem;
  overflow-y: auto;
  max-width: 900px;
}

.dt-content_scroll-bar-yes {
  overflow-y: auto;
}

.dt-content::-webkit-scrollbar {
  width: 6px;
}

.dt-content::-webkit-scrollbar-track {
  background: transparent;
}

.dt-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}

.dt-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* --- Sections --- */
.dt-section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #f1f5f9;
}

.dt-section:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

/* --- Titles --- */
.dt-title {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.dt-title_middle {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.dt-title_small {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.dt-title_little {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.dt-title_border-bottom {
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.75rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
  color: #1e293b;
}

/* --- Lists --- */
.dt-list {
  line-height: 2;
  list-style-position: inside;
  color: #475569;
}

.dt-list_nested {
  margin-left: 0.5rem;
  list-style: none;
  padding-left: 0;
}

.dt-list_nested > li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.35rem;
}

.dt-list_nested > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c7d2fe;
}

ol.dt-list_nested {
  counter-reset: list-counter;
}

ol.dt-list_nested > li {
  counter-increment: list-counter;
}

ol.dt-list_nested > li::before {
  content: counter(list-counter);
  width: auto;
  height: auto;
  border-radius: 50%;
  background: #6366f1;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0.45em;
}

/* --- Labels --- */
.dt-label_bold {
  font-weight: 600;
  color: #1e293b;
}

/* --- Info Block --- */
.dt-info-block {
  margin-bottom: 1.75rem;
}

.dt-info-block:last-child {
  margin-bottom: 0;
}

/* --- Code Blocks --- */
pre {
  background: #0f172a;
  color: #e2e8f0;
  border: none;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  line-height: 1.7;
  font-size: 0.85rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

pre code {
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
  background: none;
  color: #e2e8f0;
  padding: 0;
  border: none;
  border-radius: 0;
  font-size: 0.85rem;
}

/* Code syntax colors (dark theme code blocks) */
pre .comment { color: #64748b; }
pre .support { color: #38bdf8; }
pre .tag,
pre .tag-name { color: #f472b6; }
pre .keyword,
pre .css-property,
pre .vendor-prefix,
pre .sass,
pre .class,
pre .id,
pre .css-value,
pre .entity.function,
pre .storage.function { font-weight: 600; color: #c084fc; }
pre .css-property,
pre .css-value,
pre .vendor-prefix,
pre .support.namespace { color: #38bdf8; }
pre .constant.numeric,
pre .keyword.unit,
pre .hex-color { font-weight: 400; color: #34d399; }
pre .entity.class { color: #fbbf24; }
pre .entity.id,
pre .entity.function { color: #fb923c; }
pre .attribute,
pre .variable { color: #38bdf8; }
pre .string,
pre .support.value { font-weight: 400; color: #34d399; }
pre .regexp { color: #34d399; }

/* --- Notices --- */
.notice {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  color: #fff;
  margin-bottom: 1.5rem;
}

.notice__label {
  font-weight: 700;
}

.notice_success {
  background-color: #10b981;
}

/* --- Code Example --- */
.code-example {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 0.5rem;
  margin-bottom: 1.75rem;
}

.code-example:last-child {
  margin-bottom: 0;
}

/* --- Responsive --- */
@media screen and (max-width: 1024px) {
  .dt-content {
    padding: 2rem 2rem;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .dt-navbar {
    width: 220px;
    min-width: 220px;
  }

  .dt-content {
    padding: 1.5rem;
  }
}

@media screen and (max-width: 640px) {
  .dt-container_flex {
    flex-direction: column;
  }

  .dt-navbar {
    width: 100%;
    min-width: 100%;
    height: auto;
    max-height: 300px;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }

  .dt-navbar__link {
    width: auto;
  }

  .dt-container {
    height: auto;
  }

  .dt-content {
    width: 100%;
    height: auto;
    overflow: visible;
  }

  .dt-header {
    position: relative;
  }
}

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
