.guide-container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 20px 60px 20px;
  gap: 24px;
  min-height: calc(100vh - 200px);
}

.sidenav {
  position: sticky;
  top: 100px;
  align-self: flex-start;
  width: 240px;
  min-width: 240px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 0;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.sidenav a {
  display: block;
  padding: 12px 2em;
  text-decoration: none;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.sidenav a:hover[href] {
  background: var(--bg-hover);
  color: var(--accent-primary);
  border-left-color: var(--accent-primary);
}

.sidenav a.active {
  background: var(--bg-hover);
  color: var(--accent-primary);
  border-left-color: var(--accent-primary);
  font-weight: 600;
}

.sidenav a:nth-child(-n+3),
.sidenav a:nth-last-child(8) {
  padding-left: 1em;
}

.guide-content {
  flex: 1;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.guide-content h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.guide-content h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 20px;
  color: var(--text-primary);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
  position: relative;
  clear: left;
}

.guide-content h2:first-of-type {
  margin-top: 0;
}

.guide-content h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--gradient-1);
  border-radius: 1px;
}

.guide-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.guide-content img {
  display: block;
  margin: 24px auto;
  max-width: 100%;
  height: auto;
  /*border-radius: 8px;*/
  box-shadow: var(--shadow-md);
  border: 0px solid var(--border-color);
}

.guide-content p code {
  font-size: 14px;
  color: var(--accent-primary);
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
}

.guide-content a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.guide-content a:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}

.guide-content b {
  color: var(--text-primary);
  font-weight: 600;
}

.guide-content p img {
  float: left;
  margin: 1em 2em;
}

.guide-content var {
  font-style: italic;
  color: var(--accent-secondary);
}

/* List Styles */
.guide-content ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.guide-content ul li,
.guide-content ol li {
  position: relative;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
}

.guide-content ul li {
  padding-left: 28px;
}

.guide-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-1);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.guide-content ul li:last-child {
  margin-bottom: 0;
}

.guide-content ol {
  padding-left: 20px;
  margin: 24px 0;
}

.guide-content ol li:last-child {
  margin-bottom: 0;
}

b.ui-btn {
  font-family: Tahoma, Geneva, Verdana, sans-serif;
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
  padding: 2px 4px;
  border-radius: 4px;
  box-shadow: 1px 1px 2px;
}

/* Table Styles */
.guide-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  font-family: 'Inter', sans-serif;
}

.guide-content table thead {
  background: var(--gradient-1);
}

.guide-content table th {
  color: white;
  padding: 16px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.guide-content table th:last-child {
  border-right: none;
}

.guide-content table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
}

.guide-content table tbody tr:nth-child(odd) {
  background-color: var(--bg-secondary);
}

.guide-content table tbody tr:nth-child(even) {
  background-color: var(--bg-primary);
}

.guide-content table tbody tr:hover {
  background-color: rgba(14, 165, 233, 0.05);
  transition: background-color 0.2s ease;
}

.guide-content table tbody tr:last-child td {
  border-bottom: none;
}

/* Responsive table */
@media only screen and (max-width: 768px) {
  .guide-content table {
    font-size: 12px;
    margin: 24px 0;
  }

  .guide-content table th,
  .guide-content table td {
    padding: 10px 8px;
  }

  .guide-content table th {
    font-size: 12px;
  }
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1001;
  background: var(--gradient-1);
  color: white;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.mobile-menu-toggle.active {
  background: var(--accent-secondary);
}

/* Mobile responsive */
@media only screen and (max-width: 1024px) {
  .guide-container {
    flex-direction: column;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .sidenav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 80px);
    order: 1;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--border-color);
  }

  .sidenav.mobile-open {
    transform: translateX(0);
  }

  .guide-content {
    order: 2;
    width: 100%;
  }
}

@media only screen and (max-width: 768px) {
  .guide-content {
    padding: 24px;
  }

  .guide-content h1 {
    font-size: 2rem;
  }

  .guide-content h2 {
    font-size: 1.5rem;
  }

  .sidenav {
    top: 160px;
    max-height: calc(100vh - 160px);
  }
}