/* Underline current page */
header .header-inner .menu-container .menu .documentation:after {
  transform: translateX(-50%) scaleX(1);
}

footer {
  width: calc(100% - 300px) !important;
  position: relative !important;
  left: 300px !important;
  clear: both;
}

@media (max-width: 768px) {
  footer {
    width: 100% !important;
    left: 0 !important;
  }
}

body {
  line-height: 1.5;
  background: var(--whiteBackground);
}

.docs-container {
  display: flex;
  min-height: 100vh;
  padding-top: 80px;
}

/* Sidebar styles */
.sidebar {
  width: 300px;
  background: white;
  border: 1px solid #e5e7eb;
  height: calc(100vh - 80px);
  position: fixed;
  overflow-y: auto;
  padding: 2rem 0;
  top: 80px;
}

.sidebar-nav {
  padding: 0 1.5rem;
}

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

.nav-section h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.nav-links {
  list-style: none;
}

.nav-links a {
  color: #374151;
  text-decoration: none;
  font-size: 0.9375rem;
  display: block;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.nav-links a:hover {
  background: #f3f4f6;
  color: var(--primary-blue);
}

.nav-links a.active {
  background: #dbeafe;
  color: var(--primary-blue);
  font-weight: 500;
}

/* Style for clickable nav items */
.nav-links li {
  margin-bottom: 0.2rem;
  cursor: pointer;
  font-size: 1rem;
  display: block;
  padding: 0.3rem 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.nav-links li:hover {
  background: #f3f4f6;
  color: var(--primary-blue);
}

/* Style for active (current) nav item */
.nav-links li.active {
  background: #dbeafe;
  color: var(--primary-blue);
  font-weight: 500;
}

/* Mobile menu toggle button */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 60px;
  left: 20px;
  z-index: 99;
  background: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: background-color 0.2s, transform 0.2s;
}

.sidebar-toggle:hover {
  background: var(--blueHover);
  transform: translateY(-1px);
}

.sidebar-toggle:active {
  transform: translateY(0);
}

.toggle-text {
  font-size: 14px;
  letter-spacing: 0.5px;
}

.menu-icon {
  width: 20px;
  height: 20px;
}

/* Active state styles */
.sidebar-toggle.active {
  background: var(--blueHover);
}

/* Update mobile sidebar styles */
@media (max-width: 768px) {
  .sidebar-toggle {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    border: 2px solid #999b9f;
    top: 100px;
    height: calc(100vh - 100px);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .article {
    padding: 1rem !important;
  }

  .article:first-of-type {
    margin-top: 4rem;
  }
}

/* Main content styles */
.content {
  margin-left: 300px;
  padding: 0 2rem;
  flex: 1;
}

.content h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #111827;
}

@media (max-width: 550px) {
  .content h1 {
    font-size: 1.8rem;
  }
}

.content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #111827;
}

.content h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 1rem;
  color: #111827;
}

.content p {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .content {
    margin-left: 0;
    width: 100%;
    padding: 0 1rem !important;
  }

  .menu-toggle {
    display: block;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 100;
  }
}

/* Article section */
.article {
  background: white;
  border-radius: 0.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.article ul {
  margin-left: 20px;
}

.article img {
  max-width: 100%;
  border-radius: 0.375rem;
  margin: 1.5rem 0;
  border: 1px solid #e5e7eb;
}

.version-comparison {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.version-comparison .description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.version-comparison .description h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.version-comparison .description p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.version-cards {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .version-cards {
    flex-direction: column;
  }
}

.version-card {
  flex: 1;
  padding: 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.version-card:hover {
  transform: translateY(-4px);
}

.version-card {
  border: 2px solid #64748b;
}

.card-header {
  text-align: center;
  margin-bottom: 20px;
}

.version-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 !important;
  color: #1e293b;
}

.version-subtitle {
  font-size: 16px;
}

.feature-list {
  list-style: none;
}

.feature-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.feature-item:last-child {
  border-bottom: none;
}

.check-icon {
  margin-right: 12px;
  color: #22c55e;
}

.limit-icon {
  margin-right: 12px;
  color: #64748b;
}

.feature-text {
  color: #334155;
}

/* Info boxes */
.info-box {
  background: #dbeafe;
  border-left: 4px solid var(--primary-blue);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0.375rem;
}

.info-box p {
  margin: 5px 0 5px;
}

.warning-box {
  background: var(--yellow-50);
  border-left: 4px solid #d97706;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0.375rem;
}

/* Steps list */
.steps-list {
  list-style: none;
  counter-reset: step;
}

.steps-list li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.1rem;
}

.steps-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--primary-blue);
  color: white;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

/* Video player */
.video-container {
  position: relative;
  /* 19*9 ratio */
  width: 60%;
  padding-bottom: 33.75%;
  height: 0;
  margin-top: 2rem;
  overflow: hidden;
}

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

/* Table styles */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.comparison-table th,
.comparison-table td {
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
}

.comparison-table th {
  background: #f3f4f6;
  text-align: left;
}

.comparison-table tr:nth-child(even) {
  background: var(--whiteBackground);
}

.comparison-table tr:nth-child(odd) {
  background: #ffffff;
}

/* Responsive Table Styles */
@media (max-width: 768px) {
  .comparison-table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }

  .comparison-table th,
  .comparison-table td {
    min-width: 120px;
    white-space: nowrap;
  }
}

@media (max-width: 1200px) {
  .video-container {
    /* 19*9 ratio */
    width: 100%;
    padding-bottom: 56.25%;
  }
}
