/* VehiGo Help Documentation - Javasea Theme */

/* Sidebar */
.sidebar {
  scrollbar-width: thin;
  scrollbar-color: #C8CACF transparent;
}
.sidebar::-webkit-scrollbar {
  width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
  background-color: #C8CACF;
  border-radius: 2px;
}

/* Active TOC link */
.toc-link.active {
  color: #13C1CC;
  font-weight: 600;
  border-left-color: #13C1CC;
}

/* Screenshot images */
.screenshot {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(36, 46, 66, 0.08), 0 2px 4px -2px rgba(36, 46, 66, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: zoom-in;
}
.screenshot:hover {
  transform: scale(1.01);
  box-shadow: 0 10px 15px -3px rgba(36, 46, 66, 0.1), 0 4px 6px -4px rgba(36, 46, 66, 0.05);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(36, 46, 66, 0.9);
  cursor: zoom-out;
  justify-content: center;
  align-items: center;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Role badges */
.badge-admin {
  background-color: #198694;
  color: white;
}
.badge-operator {
  background-color: #F6B028;
  color: #242E42;
}
.badge-worker {
  background-color: #4AD280;
  color: #242E42;
}

/* Tip box */
.tip-box {
  background-color: #e8fafb;
  border-left: 4px solid #13C1CC;
}

/* Warning box */
.warning-box {
  background-color: #fef8e8;
  border-left: 4px solid #F6B028;
}

/* Info box */
.info-box {
  background-color: #edf3fb;
  border-left: 4px solid #6E9ADB;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Mobile sidebar toggle */
@media (max-width: 1023px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .sidebar.open {
    transform: translateX(0);
  }
}

/* Print */
@media print {
  .sidebar, .mobile-menu-btn, .lightbox {
    display: none !important;
  }
  .main-content {
    margin-left: 0 !important;
    max-width: 100% !important;
  }
  .screenshot {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* Table styling */
.field-table th {
  background-color: #F4F4F5;
  font-weight: 600;
  color: #242E42;
}
.field-table tr:nth-child(even) {
  background-color: #F4F4F5;
}
.field-table td, .field-table th {
  padding: 0.5rem 1rem;
  border: 1px solid #e0e0e0;
}
