/* Documentation Styles - Clean Version */

/* Override global main padding from style.css for docs pages */
.docs-main {
  padding: 8px 30px 30px 30px; /* reduce top gap (40px -> 8px) */
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
  max-width: 95%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #000;
}

.logo img {
  width: 32px;
  height: 32px;
  margin-right: 10px;
}

.logo-text {
  font-size: 24px;
  font-weight: bold;
}

.docs-nav {
  display: flex;
  gap: 25px;
}

.docs-nav a {
  text-decoration: none;
  color: #000;
  font-size: 16px;
  transition: color 0.3s ease;
}

.docs-nav a:hover {
  color: #007bff;
}

/* Main Container */
.docs-container {
  display: flex;
  background: #fff;
  position: relative;
}

/* Sidebar */
.docs-sidebar {
  width: 340px;
  flex-shrink: 0;
  padding: 30px 20px 30px 55px;
  background: #fff;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-section {
  margin-bottom: 25px;
}

.sidebar-section h3 {
  font-size: 13px;
  font-weight: bold;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 10px 0;
}

.sidebar-section div {
  margin-bottom: 4px;
}

.sidebar-section a {
  display: block;
  color: #007bff;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
}

.sidebar-section a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.sidebar-section a.active {
  color: #0056b3;
  font-weight: 600;
}

/* Main Content */
.docs-main-content {
  flex: 1;
  background: #fff;
  padding: 8px 32px 30px 40px;
}

.docs-main {
  width: 100%;
}

.docs-content {
  line-height: 1.8;
}

.docs-content h2 {
  font-size: 28px;
  margin-top: 8px;
  margin-bottom: 15px;
  color: #333;
  border-bottom: 2px solid #007bff;
  padding-bottom: 10px;
}

.docs-content h3 {
  font-size: 24px;
  margin-top: 25px;
  margin-bottom: 12px;
  color: #444;
}

.docs-content p {
  margin: 15px 0;
}

.docs-content p.lead {
  font-size: 20px;
  color: #555;
  margin-bottom: 20px;
}

.docs-content ul {
  list-style: disc;
  padding-left: 30px;
  margin: 15px 0;
}

.docs-content ul li {
  margin: 8px 0;
}

.docs-content hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 25px 0;
}

.docs-content img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 15px 0;
  display: block;
}

.docs-content blockquote {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 15px 20px;
  margin: 20px 0;
}

.docs-content blockquote p {
  margin: 5px 0;
}

.docs-content blockquote .callout-title {
  font-weight: bold;
  margin-bottom: 8px;
  color: #856404;
}

/* Footer */
.docs-footer {
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
  padding: 20px 0;
  text-align: center;
  margin-top: 0;
}

.docs-footer p {
  margin: 0;
  font-size: 15px;
  color: #666;
}

.docs-footer a {
  color: #007bff;
  text-decoration: none;
}

.docs-footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
  }

  .docs-nav {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .docs-container {
    flex-direction: column;
  }

  .docs-sidebar {
    width: 100%;
    padding: 20px 15px;
  }

  .docs-main-content {
    padding: 20px 15px;
  }

  .docs-content h2 {
    font-size: 24px;
  }

  .docs-content h3 {
    font-size: 20px;
  }
}

/* first column: doesnot wrap */
table td:first-child,
table th:first-child {
  white-space: nowrap;
}
