:root {
  --primary-color: #10a37f;
  --background-color: #ffffff;
  --text-color: #1a1a1a;
  --nav-background: #f7f7f8;
  --border-color: #e5e5e5;
}

[data-theme="dark"] {
  --background-color: #0d1117;
  --text-color: #ffffff;
  --nav-background: #161b22;
  --border-color: #30363d;
  --primary-color: #10a37f;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--text-color);
}

.docs-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background-color: var(--nav-background);
  padding: 2rem;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--border-color);
  box-sizing: border-box;
  left: 0;
  top: 0;
}

.main-content {
  flex: 1;
  margin-left: 320px;
  padding: 2rem 3rem;
  max-width: calc(100% - 320px);
  box-sizing: border-box;
}

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

.nav-section {
  margin-bottom: 2rem;
}

.nav-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 1.5rem 0 0.75rem;
  padding: 0 0.5rem;
}

.nav-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  margin: 0.25rem 0;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.nav-icon {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.nav-link:hover {
  background-color: rgba(128, 128, 128, 0.1);
}

.nav-link.active {
  background-color: rgba(16, 163, 127, 0.1);
  color: var(--primary-color);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-description {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background-color: var(--nav-background);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.video-description h3 {
  margin-top: 0;
}

.timestamp-list {
  margin-top: 1rem;
}

.timestamp-list li {
  margin-bottom: 0.5rem;
}

.timestamp-link {
  color: var(--primary-color);
  text-decoration: none;
}

.timestamp-link:hover {
  text-decoration: underline;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

h2 {
  font-size: 1.75rem;
  margin: 2rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 1rem;
}

p {
  margin-bottom: 1.2rem;
}

code {
  background-color: rgba(128, 128, 128, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
}

pre {
  background-color: var(--nav-background);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  border: 1px solid var(--border-color);
}

.theme-switch {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  background-color: var(--nav-background);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-color);
  z-index: 1000;
  transition: background-color 0.2s, color 0.2s;
}

.theme-switch:hover {
  background-color: var(--border-color);
}

.sidebar-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.25rem;
}

.sidebar-toggle:hover {
  background: var(--primary-color-dark);
}

@media (max-width: 768px) {
  .sidebar-toggle {
    display: block;
  }

  .sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }

  .sidebar.show {
    display: block;
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    max-width: 100%;
    padding: 1rem;
    padding-top: 4rem;
  }

  .docs-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .main-content {
    margin-left: 0;
    max-width: 100%;
    padding: 1rem;
  }
}
