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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #f8f9fa;
  color: #000;
  font-size: 14px;
  line-height: 1.6;
}

/* Global Language Selector */
.language-selector-global {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-selector-global label {
  font-weight: 600;
  margin-bottom: 0;
  white-space: nowrap;
  font-size: 0.875rem;
}

.language-selector-global select {
  font-size: 0.875rem;
}

.page-wrapper {
  display: flex;
  min-height: 100vh;
}

.sidebar-wrapper {
  width: 280px;
  background-color: #2c3e50;
  color: #ecf0f1;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
}

.sidebar-content {
  padding: 0;
}

.sidebar-brand {
  padding: 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  background-color: #34495e;
  border-bottom: 1px solid #1a252f;
}

.sidebar-menu {
  padding: 1rem;
}

.tree-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tree-item {
  margin: 0;
}

.folder-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ecf0f1;
  transition: background-color 0.2s;
  border-radius: 0.25rem;
}

.folder-header:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.folder-icon {
  font-size: 0.75rem;
  width: 12px;
  transition: transform 0.2s;
}

.folder-name {
  flex: 1;
}

.folder-children {
  margin-left: 0.5rem;
}

.request-link {
  border-radius: 0.25rem;
  transition: background-color 0.2s;
}

.request-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-content {
  margin-left: 280px;
  flex: 1;
  width: calc(100% - 280px);
}

/* Sticky Header */
.page-content > .container-fluid > .row.d-flex.align-items-center.p-3.border-bottom {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.row-no-padding {
  margin-left: 0;
  margin-right: 0;
}

.row-eq-height {
  display: flex;
  flex-wrap: wrap;
}

.section {
  background-color: #fff;
  border-right: 1px solid #e9ecef;
  padding: 2rem;
  min-height: 400px;
}

.heading .name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.method {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  min-width: 50px;
  text-align: center;
}

.GET { background-color: #10b981; }
.POST { background-color: #3b82f6; }
.PUT { background-color: #f59e0b; }
.DELETE { background-color: #ef4444; }
.PATCH { background-color: #8b5cf6; }

.url {
  background-color: #f8f9fa;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.8125rem;
  margin: 0.75rem 0;
  word-break: break-all;
  border-left: 3px solid #3b82f6;
}

.description {
  margin: 1.5rem 0;
  color: #000;
  font-size: 14px;
  line-height: 1.7;
}

.description h1,
.description h2,
.description h3,
.description h4,
.description h5,
.description h6 {
  color: #000;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.description h1:first-child,
.description h2:first-child,
.description h3:first-child {
  margin-top: 0;
}

.description h2 {
  font-size: 1.5rem;
}

.description h3 {
  font-size: 1.25rem;
}

.description p {
  margin-bottom: 1rem;
  color: #000;
}

.description ul,
.description ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
  padding-left: 0;
}

.description li {
  margin-bottom: 0.5rem;
  color: #000;
}

.description a {
  color: #3b82f6;
  text-decoration: none;
}

.description a:hover {
  text-decoration: underline;
}

.description code {
  background-color: #f1f3f5;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: #000;
}

.description pre {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 0.375rem;
  overflow-x: auto;
  margin: 1rem 0;
}

.description img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
}

.request-body {
  margin: 2rem 0;
}

.body-heading {
  font-size: 0.75rem;
  font-weight: 700;
  color: #495057;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.body-type {
  font-size: 0.75rem;
  background-color: #e9ecef;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  margin-left: 0.5rem;
  font-weight: normal;
}

.param {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f3f5;
}

.param:last-child {
  border-bottom: none;
}

.param .name {
  font-weight: 600;
  color: #495057;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.param .value {
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.875rem;
  color: #6c757d;
}

.raw-body pre {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 0.375rem;
  overflow-x: auto;
  margin: 0;
}

.raw-body code {
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.875rem;
  color: #212529;
}

.examples {
  background-color: #1e1e1e;
  color: #d4d4d4;
  padding: 2rem;
  min-height: 400px;
}

.sample-request .heading {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
}

.language-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #3e3e3e;
  padding-bottom: 0.5rem;
}

.language-selector {
  margin-bottom: 1rem;
}

.lang-dropdown {
  width: 100%;
  padding: 0.75rem;
  background-color: #2d2d2d;
  color: #d4d4d4;
  border: 1px solid #3e3e3e;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-family: 'Monaco', 'Menlo', monospace;
}

.lang-dropdown:hover {
  background-color: #3e3e3e;
  border-color: #4e4e4e;
}

.lang-dropdown:focus {
  outline: none;
  border-color: #3b82f6;
}

.code-sample {
  display: none;
}

.code-sample.active {
  display: block;
}

.code-sample pre {
  background-color: #2d2d2d;
  padding: 1.5rem;
  border-radius: 0.375rem;
  overflow-x: auto;
  margin: 0;
}

.code-sample code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  color: #d4d4d4;
  line-height: 1.6;
  white-space: pre;
}

.collection-description {
  font-size: 14px;
  color: #000;
  margin: 2rem 0;
  line-height: 1.7;
}

.collection-description h1,
.collection-description h2,
.collection-description h3,
.collection-description h4,
.collection-description h5,
.collection-description h6 {
  color: #000;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.collection-description h1:first-child,
.collection-description h2:first-child,
.collection-description h3:first-child {
  margin-top: 0;
}

.collection-description h2 {
  font-size: 1.5rem;
}

.collection-description h3 {
  font-size: 1.25rem;
}

.collection-description p {
  margin-bottom: 1rem;
  color: #000;
}

.collection-description ul,
.collection-description ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
  padding-left: 0;
}

.collection-description li {
  margin-bottom: 0.5rem;
  color: #000;
}

.collection-description a {
  color: #3b82f6;
  text-decoration: none;
}

.collection-description a:hover {
  text-decoration: underline;
}

.collection-description code {
  background-color: #f1f3f5;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: #000;
}

.collection-description pre {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 0.375rem;
  overflow-x: auto;
  margin: 1rem 0;
}

.collection-description img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
}

/* Examples Section */
.examples-section {
  padding: 1rem;
}

/* Request Code Samples */
.request-code-samples {
  position: relative;
  margin-bottom: 2rem;
}

.request-code-samples .code-sample {
  display: none;
}

.request-code-samples .code-sample.active {
  display: block;
}

.request-code-samples pre {
  background-color: #282c34;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  margin: 0;
}

.request-code-samples code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.875rem;
  color: #abb2bf;
}

.examples-section {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Example Request Code */
.example-request-code {
  margin-bottom: 1.5rem;
}

.example-request-code-samples {
  position: relative;
}

.example-request-code-samples .code-sample {
  display: none;
}

.example-request-code-samples .code-sample.active {
  display: block;
}

.example-request-code-samples pre {
  background-color: #282c34;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  margin: 0;
}

.example-request-code-samples code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.875rem;
  color: #abb2bf;
}

.example-header h6 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #24292e;
  margin-bottom: 0.5rem;
}

.example-description {
  color: #586069;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

/* Response Tabs */
.response-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.response-tab {
  background: #f6f8fa;
  border: 1px solid #d1d5da;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.response-tab:hover {
  background: #e1e4e8;
  border-color: #959da5;
}

.response-tab.active {
  background: #fff;
  border-color: #0366d6;
  box-shadow: 0 0 0 2px rgba(3, 102, 214, 0.1);
}

.response-tab .response-status {
  font-weight: 600;
}

/* Response Content */
.response-content-container {
  position: relative;
}

.response-content {
  display: none;
}

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

.example-response {
  margin-bottom: 1.5rem;
}

.response-header {
  margin-bottom: 1rem;
}

.response-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
}

.response-status.status-200,
.response-status.status-201,
.response-status.status-204 {
  background-color: #d4edda;
  color: #155724;
}

.response-status.status-400,
.response-status.status-401,
.response-status.status-403,
.response-status.status-404 {
  background-color: #f8d7da;
  color: #721c24;
}

.response-status.status-500,
.response-status.status-502,
.response-status.status-503 {
  background-color: #f5c6cb;
  color: #721c24;
}

.response-headers,
.response-body {
  margin-top: 1rem;
}

.response-body pre {
  background-color: #f6f8fa;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
}

.response-body code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.875rem;
  color: #24292e;
}

.example-code-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e1e4e8;
}

.example-code-section .language-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.example-code-section .language-selector label {
  font-weight: 600;
  margin-bottom: 0;
}

.example-lang-dropdown {
  padding: 0.375rem 0.75rem;
  border: 1px solid #d1d5da;
  border-radius: 6px;
  background-color: #fff;
  font-size: 0.875rem;
  cursor: pointer;
}

.example-code-samples {
  position: relative;
}

.example-code-samples .code-sample {
  display: none;
}

.example-code-samples .code-sample.active {
  display: block;
}

.example-code-samples pre {
  background-color: #f6f8fa;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  margin: 0;
}

.example-code-samples code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.875rem;
  color: #24292e;
}

.no-examples {
  padding: 2rem;
  text-align: center;
  color: #586069;
  background-color: #f6f8fa;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .sidebar-wrapper {
    transform: translateX(-280px);
    transition: transform 0.3s;
  }

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

  .page-content {
    margin-left: 0;
    width: 100%;
  }
}
