:root {
  --primary-color: #fe3c00;
  --primary-dark: #d63300;
  --primary-light: #fff5f2;
  --sidebar-width: 280px;
  --text-dark: #2d3748;
  --text-medium: #4a5568;
  --text-light: #718096;
  --border-color: #e2e8f0;
  --bg-white: #ffffff;
  --bg-gray: #f7fafc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-white);
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.sidebar-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.sidebar-brand-text h1 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.125rem;
}

.sidebar-brand-text p {
  font-size: 0.813rem;
  color: var(--text-light);
  margin: 0;
}

.sidebar-nav {
  padding: 1.5rem 0;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 0.25rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: var(--text-medium);
  text-decoration: none;
  font-size: 0.938rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
  color: var(--primary-color);
  background: var(--primary-light);
  border-left-color: var(--primary-color);
}

.sidebar-nav a.active {
  color: var(--primary-color);
  background: var(--primary-light);
  border-left-color: var(--primary-color);
  font-weight: 600;
}

.sidebar-nav i {
  width: 20px;
  margin-right: 0.875rem;
  font-size: 1.125rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1001;
  background: var(--primary-color);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mobile-toggle:hover {
  background: var(--primary-dark);
}



/* Main Content */
.documentation-container {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 3rem 4rem;
  max-width: 1200px;
  background: var(--bg-white);
}

/* Sections */
.section {
  margin-bottom: 4rem;
  scroll-margin-top: 2rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
}

.section p {
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.section p:last-child {
  margin-bottom: 0;
}

.content-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 2.5rem 0 1.25rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--primary-color);
}

/* Feature Badge */
.feature-badge {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.813rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Info Box */
.info-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.info-box p {
  color: var(--text-dark);
  margin: 0;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1.75rem;
  transition: all 0.2s ease;
}

.feature-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(254, 60, 0, 0.1);
}

.feature-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-medium);
  line-height: 1.7;
  margin: 0;
  font-size: 0.938rem;
}

/* Feature List */
.feature-list {
  margin: 2rem 0;
}

.feature-list-item {
  background: var(--bg-gray);
  border-left: 3px solid var(--primary-color);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.feature-list-item h4 {
  font-size: 1.063rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.feature-list-item p {
  color: var(--text-medium);
  line-height: 1.7;
  margin: 0;
  font-size: 0.938rem;
}

/* Code Block */
.code-block {
  background: #2d3748;
  color: var(--primary-color);
  border-radius: 6px;
  padding: 1.5rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875rem;
  line-height: 1.8;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-color);
  white-space: pre;
}

.code-block-run {
  background: var(--primary-color);
  color: white;
  border-radius: 6px;
  padding: 1.25rem 2rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  text-align: center;
  margin: 1.5rem auto;
  display: block;
  max-width: 280px;
  font-weight: 600;
}

/* Images */
.image-container {
  margin: 2rem 0;
  text-align: center;
}

.image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Lists */
ul, ol {
  margin: 1rem 0 1rem 1.5rem;
}

li {
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.list-item {
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

/* Videos */
.video-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.video-card {
  background: var(--bg-white);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.video-card h3 {
  padding: 1.25rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  background: var(--bg-gray);
  color: var(--text-dark);
  border-bottom: 2px solid var(--primary-color);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Links */
.link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.link:hover {
  border-bottom-color: var(--primary-color);
}

/* Footer */
footer {
  background: var(--bg-gray);
  border-top: 1px solid var(--border-color);
  padding: 2rem;
  margin-left: var(--sidebar-width);
  margin-top: 4rem;
  text-align: center;
  color: var(--text-light);
}

footer p {
  margin: 0;
  font-size: 0.938rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .mobile-toggle {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: 2rem 1.5rem;
  }

  footer {
    margin-left: 0;
  }

  .section-title {
    font-size: 1.875rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .video-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .main-content {
    padding: 1.5rem 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .content-heading {
    font-size: 1.25rem;
  }
}
  position: absolute;
  content: "";
  height: 100%;
  width: 2px;
  background: var(--theme-color);
  top: 0;
  left: 0;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  transform: scale(0);
}
.sidebar li a.active {
  color: var(--selected-color);
  background-color: #e0e0e0;
}
.sidebar li a.active::before {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}
.sidebar li a:hover:not(.active) {
  background-color: #eee;
}
.sidebar li a:hover::before {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}
.sidebar-icon {
  padding-right: 10px;
  font-size: 20px;
  width: 25px;
  text-align: center;
}
.main-content {
  flex-grow: 1;
  padding: 16px;
  margin-left: 0;
  transition: margin-left 0.3s ease-in-out;
  width: 100%;
  box-sizing: border-box;
}

.section {
  padding: 16px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-intro,
.section-setup,
.section-run,
.section-publish,
.section-support,
.section-folder,
.section-screens,
.section-requirements,
.section-installation {
  padding: 16px;
}

.section-intro p,
.section-folder p,
.section-requirements p,
.section-setup p,
.section-run p,
.section-publish p {
  font-size: 14px;
  font-weight: 400;
  color: #616161;
  line-height: 1.5;
}

.code-block {
  background-color: #f0f0f0;
  border-radius: 6px;
  padding: 12px;
  font-family: monospace;
  word-wrap: break-word;
  margin-top: 10px;
  font-size: 12px;
}

.code-block-run {
  display: block;
  text-align: center;
  background-color: #f0f0f0;
  border-radius: 6px;
  font-family: monospace;
  font-size: 20px;
  width: 100%;
  max-width: 160px;
  /* Ensures it doesn't get too wide on large screens */
  padding: 20px 0;
  /* Adjusted padding */
  box-sizing: border-box;
  margin-top: 10px;
}

.image-container {
  text-align: left;
  margin: 30px 0;
}

.image-container img {
  max-width: 100%;
  /* Ensures images scale down on mobile */
  height: auto;
  border-radius: 8px;
}

.list-item {
  margin: 8px 0;
  padding-left: 15px;
}

.video-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.video-card {
  width: 100%;
  max-width: none;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.package-item {
  padding: 12px 16px;
  margin: 8px 0;
  background: var(--bg-gray);
  border-left: 3px solid var(--primary-color);
  border-radius: 4px;
  color: var(--text-medium);
  font-size: 14px;
  line-height: 1.6;
  transition: all 0.2s ease;
}

.package-item:hover {
  background: var(--primary-light);
  transform: translateX(4px);
}

.package-item strong {
  color: var(--text-dark);
  font-weight: 600;
  display: inline-block;
  min-width: 280px;
}

.link {
  color: var(--theme-color);
  text-decoration: underline;
  cursor: pointer;
}

.heading-2 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text-dark);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
}

.nav-toggle {
  display: block;
  position: fixed;
  top: 10px;
  left: 10px;
  background: var(--theme-color);
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1000;
  font-size: 20px;
}

footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  color: #616161;
  border-top: 1px solid #e0e0e0;
}

@media (min-width: 900px) {
  .documentation-container {
    display: flex;
  }

  .sidebar {
    display: block;
    left: 0;
    position: fixed;
  }

  .main-content {
    margin-left: var(--sidebar-width);
    padding: 10px 100px;
    padding-top: 40px;
  }

  .section-title {
    font-size: 40px;
  }

  .section-intro,
  .section-setup,
  .section-run,
  .section-publish,
  .section-support {
    padding: 0px 0;
  }

  .section-folder,
  .section-screens,
  .section-requirements,
  .section-installation {
    padding: 16px 0;
  }

  .section-intro p,
  .section-folder p,
  .section-requirements p,
  .section-setup p,
  .section-run p,
  .section-publish p {
    font-size: 16px;
  }

  .list-item {
    padding-left: 30px;
  }

  .video-cards {
    flex-direction: row;
    gap: 20px;
  }

  .video-card {
    flex: 1;
    max-width: 560px;
  }

  .code-block {
    font-size: 14px;
  }

  .code-block-run {
    width: 160px;
  }

  .heading-2 {
    font-size: 24px;
  }

  .nav-toggle {
    display: none;
  }
}
