:root {
  --primary-color: #3366ff;
  --secondary-color: #0044cc;
  --accent-color: #ff6600;
  --text-color: #333333;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #666666;
  --white: #ffffff;
  --code-bg: #f8f8f8;
  --code-border: #e0e0e0;
  --header-height: 70px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background-color: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo a {
  display: block;
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 30px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--primary-color);
}

/* Main Content */
.site-content {
  min-height: calc(100vh - var(--header-height) - 200px);
  padding: 40px 0;
}

.content-wrapper {
  display: flex;
  gap: 40px;
}

/* Sidebar */
.sidebar {
  width: 250px;
  flex-shrink: 0;
}

.side-nav h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark-gray);
}

.side-nav ul {
  list-style: none;
  margin-bottom: 20px;
}

.side-nav li {
  margin-bottom: 8px;
}

.side-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 14px;
  display: block;
  padding: 5px 0;
  transition: color 0.2s;
}

.side-nav a:hover {
  color: var(--primary-color);
}

.side-nav a.active {
  color: var(--primary-color);
  font-weight: 500;
}

/* Main Content Area */
.main-content {
  flex-grow: 1;
}

h1 {
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 600;
}

h2 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 16px;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--medium-gray);
}

h3 {
  font-size: 20px;
  margin-top: 30px;
  margin-bottom: 12px;
  font-weight: 600;
}

h4 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 10px;
  font-weight: 600;
}

p {
  margin-bottom: 16px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  margin-bottom: 16px;
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
}

/* Code blocks */
pre {
  background-color: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 4px;
  padding: 16px;
  overflow-x: auto;
  margin-bottom: 20px;
}

code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 14px;
}

:not(pre) > code {
  background-color: var(--code-bg);
  padding: 2px 4px;
  border-radius: 3px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--medium-gray);
}

th {
  background-color: var(--light-gray);
  font-weight: 600;
}

/* Alerts */
.alert {
  padding: 16px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.alert-info {
  background-color: #e6f7ff;
  border-left: 4px solid #1890ff;
}

.alert-warning {
  background-color: #fff7e6;
  border-left: 4px solid #fa8c16;
}

.alert-danger {
  background-color: #fff1f0;
  border-left: 4px solid #ff4d4f;
}

/* Footer */
.site-footer {
  background-color: #333;
  color: var(--white);
  padding: 40px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.footer-logo {
  margin-right: 40px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-column h4 {
  color: var(--white);
  margin-bottom: 15px;
  font-size: 16px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column li {
  margin-bottom: 8px;
}

.footer-column a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: var(--white);
  text-decoration: none;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #555;
  font-size: 14px;
  color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    margin-bottom: 30px;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-logo {
    margin-bottom: 20px;
  }
}

/* Anchor links */
.anchor {
  margin-left: 5px;
  color: var(--dark-gray);
  font-size: 0.8em;
  text-decoration: none;
}

/* API endpoint styling */
.api-endpoint {
  background-color: var(--light-gray);
  border-left: 4px solid var(--primary-color);
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 0 4px 4px 0;
}

.api-endpoint .method {
  font-weight: bold;
  color: var(--primary-color);
}

.api-endpoint .url {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* Parameter tables */
.param-table th:first-child {
  width: 20%;
}

.param-table th:nth-child(2) {
  width: 15%;
}

.param-table th:nth-child(3) {
  width: 15%;
}

.param-table th:last-child {
  width: 50%;
}

/* Response examples */
.response-example {
  margin-top: 10px;
}

/* Status codes */
.status-code {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 8px;
}

.status-200 {
  background-color: #52c41a;
  color: white;
}

.status-201 {
  background-color: #52c41a;
  color: white;
}

.status-400 {
  background-color: #faad14;
  color: white;
}

.status-401 {
  background-color: #faad14;
  color: white;
}

.status-403 {
  background-color: #faad14;
  color: white;
}

.status-404 {
  background-color: #faad14;
  color: white;
}

.status-500 {
  background-color: #f5222d;
  color: white;
}
