/* Video wrapper stays the same */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

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

/*
  Fix the position of the video on the top
  .video-wrapper {
  position: fixed;
  top: 2%;
  width: 50%;
  aspect-ratio: 16 / 9;
  background: #000;
  z-index: 1000;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.markdown-section {
  margin-top: calc(50vw * 9 / 16 + 20px);
} */

/* Enable word wrap in code blocks */
pre code {
  white-space: pre-wrap !important;
  word-break: break-word;
}

/* ===== Dark Theme Sidebar Styling ===== */
.sidebar {
  background: #1e1e1e; /* dark background */
  border-right: 1px solid #333;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.4);
  padding-top: 1rem;
  font-family: 'Segoe UI', Roboto, sans-serif;
}

/* Sidebar title */
.sidebar .app-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: #f0f0f0;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #333;
  margin-bottom: 0.5rem;
}

/* Sidebar links */
.sidebar-nav a {
  display: block;
  padding: 0.6rem 1rem;
  color: #ccc;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

/* Hover effect */
.sidebar-nav a:hover {
  background-color: #2a2a2a;
  color: #fff;
}

/* Active link */
.sidebar-nav .active {
  background-color: #007acc;
  color: #ffffff !important;
  font-weight: 500;
}

/* Nested links */
.sidebar-nav ul {
  padding-left: 1rem;
  border-left: 2px solid #333;
  margin: 0.3rem 0;
}

/* Scrollbar styling for dark theme */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

/* ===== Mobile Sidebar Fix (Dark Theme) ===== */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 240px;
    height: 100%;
    overflow-y: auto;
    transition: left 0.3s ease;
    z-index: 10001;
    background: #1e1e1e;
  }

  body.sidebar-open .sidebar {
    left: 0;
  }

  .content {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
  }

  body.sidebar-open .content {
    transform: translateX(240px);
    pointer-events: none;
  }

  .sidebar-toggle {
    position: fixed;
    bottom: 10px;
    z-index: 10002;
  }
}
