:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --sidebar-bg: #f8f9fa;
  --code-bg: #f5f7fa;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 280px;
  background: var(--sidebar-bg);
  border-right: 1px solid #dee2e6;
  overflow-y: auto;
  padding: 20px 0;
  z-index: 1000;
}

.sidebar-header {
  padding: 0 20px 20px;
  border-bottom: 1px solid #dee2e6;
}

.sidebar-header h4 {
  color: var(--primary-color);
  font-weight: 700;
  margin: 0;
}

.sidebar-nav {
  padding: 20px 0;
}

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

.nav-section-title {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-link {
  padding: 10px 20px;
  color: #495057;
  text-decoration: none;
  display: block;
  transition: all 0.2s;
  font-size: 14px;
}

.nav-link:hover {
  background: #e9ecef;
  color: var(--secondary-color);
  padding-left: 25px;
}

.nav-link.active {
  background: #e7f3ff;
  color: var(--secondary-color);
  border-left: 3px solid var(--secondary-color);
  font-weight: 600;
}

.main-content {
  margin-left: 280px;
  padding: 40px;
  max-width: 1200px;
}

.page-header {
  margin-bottom: 40px;
}

.page-header h1 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 15px;
}

.page-header p {
  color: #6c757d;
  font-size: 16px;
}

.section {
  margin-bottom: 50px;
  scroll-margin-top: 20px;
}

.section h2 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}

.section h3 {
  color: var(--primary-color);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 20px;
}

.badge-method {
  font-size: 12px;
  padding: 5px 10px;
  font-weight: 600;
  border-radius: 4px;
}

.badge-post {
  background: #28a745;
  color: white;
}

.badge-get {
  background: #007bff;
  color: white;
}

.badge-put {
  background: #ffc107;
  color: #000;
}

.badge-delete {
  background: #dc3545;
  color: white;
}

.endpoint-box {
  background: var(--code-bg);
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 15px;
  margin: 20px 0;
}

.endpoint-url {
  font-family: "Courier New", monospace;
  font-size: 14px;
  color: #e83e8c;
  word-break: break-all;
}

.code-block {
  background: #2d2d2d;
  color: #f8f8f2;
  border-radius: 6px;
  padding: 20px;
  overflow-x: auto;
  margin: 20px 0;
  position: relative;
}

.code-block pre {
  margin: 0;
  font-family: "Courier New", monospace;
  font-size: 13px;
  line-height: 1.5;
}

.code-header {
  background: #1e1e1e;
  padding: 10px 15px;
  border-radius: 6px 6px 0 0;
  font-size: 12px;
  color: #aaa;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.code-block-with-header {
  border-radius: 0 0 6px 6px;
  margin-top: 0;
}

.table-params {
  width: 100%;
  margin: 20px 0;
}

.table-params th {
  background: var(--code-bg);
  font-weight: 600;
  color: var(--primary-color);
  padding: 12px;
  font-size: 14px;
}

.table-params td {
  padding: 12px;
  border-bottom: 1px solid #dee2e6;
  font-size: 14px;
}

.table-params code {
  background: #fff3cd;
  padding: 2px 6px;
  border-radius: 3px;
  color: #856404;
  font-size: 13px;
}

.badge-required {
  background: #dc3545;
  color: white;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  margin-left: 8px;
}

.badge-optional {
  background: #6c757d;
  color: white;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  margin-left: 8px;
}

.alert {
  border-radius: 6px;
  padding: 15px 20px;
  margin: 20px 0;
}

.response-example {
  margin-top: 30px;
}

.tabs {
  border-bottom: 2px solid #dee2e6;
  margin-bottom: 20px;
}

.tab-button {
  background: none;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  color: #6c757d;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.tab-button.active {
  color: var(--secondary-color);
  border-bottom-color: var(--secondary-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid #dee2e6;
  padding: 15px 20px;
  z-index: 1001;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-header h4 {
  margin: 0;
  color: var(--primary-color);
  font-weight: 700;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary-color);
  cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .sidebar {
    transform: translateX(-280px);
    transition: transform 0.3s ease;
  }

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

  .main-content {
    margin-left: 0;
    margin-top: 60px;
    padding: 20px;
  }
}

/* Sidebar hidden on mobile */
.sidebar {
  transform: translateX(-260px);
  transition: transform 0.3s ease-in-out;
}

/* When active (after toggle), sidebar slides in */
.sidebar.active {
  transform: translateX(0);
}

/* On desktop keep it always visible */
@media (min-width: 992px) {
  .sidebar {
    transform: none;
  }
}
