/* Documentation Layout */
.docs-container {
  display: flex;
  min-height: calc(100vh - 80px);
  background-color: #f8f9fa;
}

/* Left Sidebar */
.docs-sidebar {
  width: 280px;
  background-color: #ffffff;
  border-right: 1px solid #e9ecef;
  padding: 32px 0;
  position: sticky;
  top: 0;
  height: calc(100vh - 80px);
  overflow-y: auto;
  flex-shrink: 0;
}

.docs-menu {
  padding: 0 24px;
}

.docs-menu h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #667eea;
}

.docs-menu-section {
  margin-bottom: 32px;
}

.docs-menu-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.docs-menu-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.docs-menu-section li {
  margin-bottom: 4px;
}

.docs-menu-section a {
  display: block;
  padding: 8px 12px;
  color: #495057;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.docs-menu-section a:hover {
  background-color: rgba(102, 126, 234, 0.08);
  color: #667eea;
  text-decoration: none;
}

.docs-menu-section a.active {
  background-color: rgba(102, 126, 234, 0.12);
  color: #667eea;
  font-weight: 600;
}

/* Main Content Area */
.docs-content {
  flex: 1;
  padding: 48px 64px;
  max-width: 1000px;
  margin: 0 auto;
  background-color: #ffffff;
}

.docs-article {
  line-height: 1.7;
  color: #212529;
}

.docs-article h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid #667eea;
}

.docs-article h2 {
  font-size: 1.875rem;
  font-weight: 600;
  color: #212529;
  margin-top: 48px;
  margin-bottom: 20px;
}

.docs-article h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #343a40;
  margin-top: 32px;
  margin-bottom: 16px;
}

.docs-article h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #495057;
  margin-top: 24px;
  margin-bottom: 12px;
}

.docs-article p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #495057;
}

.docs-article p.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: #6c757d;
  margin-bottom: 32px;
  line-height: 1.6;
}

.docs-article ul,
.docs-article ol {
  margin-bottom: 20px;
  padding-left: 28px;
}

.docs-article li {
  margin-bottom: 8px;
  color: #495057;
}

.docs-article li strong {
  color: #212529;
  font-weight: 600;
}

.docs-article pre {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  color: #212529;
  line-height: 1.5;
}

.docs-article code {
  background-color: #f8f9fa;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  color: #e83e8c;
}

.docs-article pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
}

.docs-article a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.docs-article a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Alert Boxes */
.docs-article .alert {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  border-left: 4px solid;
}

.docs-article .alert-info {
  background-color: #e7f3ff;
  border-left-color: #0d6efd;
  color: #084298;
}

.docs-article .alert-success {
  background-color: #d1f4e0;
  border-left-color: #198754;
  color: #0a5a2e;
}

.docs-article .alert-warning {
  background-color: #fff3cd;
  border-left-color: #ffc107;
  color: #856404;
}

.docs-article .alert-danger {
  background-color: #f8d7da;
  border-left-color: #dc3545;
  color: #721c24;
}

.docs-article .alert strong {
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 992px) {
  .docs-content {
    padding: 32px 40px;
  }

  .docs-article h1 {
    font-size: 2rem;
  }

  .docs-article h2 {
    font-size: 1.5rem;
  }
}

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

  .docs-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 0;
  }

  .docs-content {
    padding: 24px 20px;
  }

  .docs-article h1 {
    font-size: 1.75rem;
  }

  .docs-article h2 {
    font-size: 1.375rem;
    margin-top: 32px;
  }

  .docs-article h3 {
    font-size: 1.25rem;
    margin-top: 24px;
  }

  .docs-article p.lead {
    font-size: 1.125rem;
  }

  .docs-menu {
    padding: 0 20px;
  }

  .docs-menu h3 {
    font-size: 1.25rem;
  }
}

/* Scrollbar Styling for Sidebar */
.docs-sidebar::-webkit-scrollbar {
  width: 6px;
}

.docs-sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.docs-sidebar::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.docs-sidebar::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
