body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
}

header.navbar {
  background: #fff;
  border-bottom: 1px solid #eaeaea;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  position: sticky;
  top: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-container {
  position: relative;
  display: inline-block;
  width: 250px;
}

.search-input {
  width: 100%;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: width 0.3s ease;
}

@media (max-width: 576px) {
  .search-container {
    width: 100%;
  }

  .search-input {
    width: 100%;
    font-size: 0.7rem;
    padding: 0.3rem 0.4rem;
  }
}

.header-icons {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.header-icon-link img {
  display: block;
  height: 19px;
  width: 19px;
}

.header-icon-link.ms-3 {
  margin-left: 0.8rem;
}

.header-icon-link:hover,
.header-icon-link:focus {
  opacity: 0.75;
  outline: none;
}

@media (max-width: 576px) {
  .header-icon-link {
    display: none;
  }

  .header-icon-link img {
    height: 16px;
    width: 16px;
  }
}

.container-docs {
  display: flex;
  flex-grow: 1;
  overflow: hidden;
  padding: 0;
}

.sidebar {
  width: 176px;
  overflow-y: auto;
  flex-shrink: 0;
  border-right: 1px solid #eaeaea;
  background-color: #fff;
  padding: 0.8rem;
}

.sidebar .nav-link {
  display: block;
  padding: 0.2rem 0;
  color: #444;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}

.sidebar .nav-link:hover {
  color: #0d6efd;
}

.sidebar .nav-link.active {
  font-weight: 600;
  color: #003d99;
}

main.content-area {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.6rem;
  background-color: #fff;
  outline: none;
}

main.content-area h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

main.content-area h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.6rem;
  scroll-margin-top: 64px;
}

.toc {
  width: 160px;
  overflow-y: auto;
  flex-shrink: 0;
  border-left: 1px solid #eaeaea;
  background-color: #fff;
  padding: 0.8rem;
  position: sticky;
  top: 1.6rem;
}

.toc h6 {
  font-size: 0.6rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.toc .nav-link {
  display: block;
  padding: 0.2rem 0;
  color: #444;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
}

.toc .nav-link:hover {
  color: #0d6efd;
}

.toc .nav-link.active {
  font-weight: 600;
  color: #003d99;
}

footer.footer {
  text-align: center;
  padding: 0.8rem;
  font-size: 0.68rem;
  color: #666;
  background: transparent;
  border-top: 1px solid #eaeaea;
}

@media (max-width: 992px) {
  .container-docs {
    flex-direction: column;
    height: auto;
  }
  .sidebar,
  .toc {
    width: 100%;
    height: auto;
    border: none;
  }
  .toc {
    display: none;
  }
  main.content-area {
    padding: 0.8rem;
  }
}

mark {
  background-color: #fff176;
  padding: 0;
}

#searchDropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  max-height: 280px;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  overflow-y: auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1200;
  font-size: 0.72rem;
  border-radius: 0 0 5px 5px;
  display: none;
}

@media (max-width: 576px) {
  #searchDropdown {
    width: 100%;
    max-width: none;
    font-size: 0.7rem;
  }
}

#searchDropdown.show {
  display: block;
}

#searchDropdown .dropdown-item {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid #f1f1f1;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: background-color 0.15s;
}

#searchDropdown .dropdown-item:last-child {
  border-bottom: none;
}

#searchDropdown .dropdown-item:hover {
  background-color: #f0f4ff;
}

#searchDropdown .dropdown-item strong {
  font-weight: 600;
  color: #0d6efd;
  margin-bottom: 0.2rem;
}

#searchDropdown .dropdown-item small {
  color: #555;
  line-height: 1.2;
  max-height: 3.1em;
  overflow: hidden;
  text-overflow: ellipsis;
}

#searchDropdown::-webkit-scrollbar {
  width: 6px;
}

#searchDropdown::-webkit-scrollbar-thumb {
  background-color: rgba(13,110,253,0.3);
  border-radius: 3px;
}

#searchDropdown::-webkit-scrollbar-track {
  background: #f9f9f9;
}

.skeleton {
  background-color: #e0e0e0;
  border-radius: 4px;
  margin-bottom: 0.6rem;
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  animation: loading 1.2s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.skeleton-title { height: 24px; width: 50%; }
.skeleton-subtitle { height: 18px; width: 40%; margin-top: 12px; }
.skeleton-text { height: 12px; width: 100%; }
.skeleton-text.short { width: 60%; }
.skeleton-text.sm { height: 10px; width: 90%; }

.logo-desktop,
.logo-mobile {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-desktop {
  display: inline;
}

.logo-mobile {
  display: none;
}

@media (max-width: 576px) {
  .logo-desktop {
    display: none;
  }
  .logo-mobile {
    display: inline;
  }
}
