:root {
  --background-color: #1e1e1e;
  --sidebar-background: #252526;
  --table-row-odd: #1e1e1e;    
  --table-row-even: #252526;   
}
body {
  background-color: var(--background-color);
}

.sidebar {
  background-color: var(--sidebar-background);
}

.sidebar-toggle {
  background-color: rgba(30, 30, 30, 0.8);
}

.cover-main img {
  max-width: 50%;
  height: auto;
}

.github-corner svg {
  fill: #fc6d26 !important;
}

section.cover.show {
  background: var(--background-color) !important;
}

section.cover {
  background: var(--background-color) !important;
}

.markdown-section tr {
  background-color: var(--background-color) !important;
  border-top: 1px solid #555;
}

.markdown-section th {
  background-color: #2d2d2d;
  color: #e2e2e2;
  border-bottom: 1px solid #555;
}

.markdown-section td {
  border-bottom: 1px solid #444;
}

.api-endpoint {
  margin: 1.5em 0;
  border: 1px solid #444;
  border-radius: 4px;
  overflow: hidden;
}

.api-header {
  display: flex;
  background: #252526;
  padding: 10px 15px;
  align-items: center;
  border-bottom: 1px solid #444;
}

.api-method {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 3px;
  font-weight: bold;
  margin-right: 10px;
  min-width: 60px;
  text-align: center;
}

.method-get { background: #0066BB; color: white; }
.method-post { background: #009955; color: white; }
.method-put { background: #AA7700; color: white; }
.method-delete { background: #CC3311; color: white; }

.api-url-wrapper {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.api-base-url {
  color: #888;
  margin-right: 5px;
}

.api-url-path {
  color: #ddd;
}

.api-try-btn {
  background: #4d78cc;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 15px;
  cursor: pointer;
  font-weight: bold;
}

.api-try-btn:hover {
  background: #5a88dd;
}

.api-request-body {
  background: #2d2d2d;
  padding: 10px 15px;
  border-bottom: 1px solid #444;
}

.api-request-body textarea {
  width: 100%;
  background: #1e1e1e;
  color: #ddd;
  border: 1px solid #444;
  padding: 10px;
  font-family: monospace;
  resize: vertical;
  min-height: 100px;
}

.api-response-container {
  background: #1e1e1e;
}

.api-response-header {
  padding: 10px 15px;
  background: #252526;
  border-bottom: 1px solid #444;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.api-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 12px;
  margin-left: 10px;
}

.status-success { background: #00aa55; color: white; }
.status-error { background: #cc3311; color: white; }

.api-response-body {
  padding: 15px;
  max-height: 400px;
  overflow: auto;
}

.terminal-container {
  margin: 1.5em 0;
  border: 1px solid #444;
  border-radius: 4px;
  overflow: hidden;
}

.terminal-header {
  background: #252526;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #444;
}

.terminal-title {
  font-weight: bold;
  color: #ddd;
}

.terminal-select {
  background: #1e1e1e;
  color: #ddd;
  border: 1px solid #444;
  border-radius: 3px;
  padding: 5px 10px;
}

.terminal-output {
  background: #1e1e1e;
  color: #ddd;
  font-family: monospace;
  padding: 15px;
  min-height: 200px;
  max-height: 500px;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.4;
}

.terminal-line {
  margin: 0;
  padding: 2px 0;
}

.log-info { color: #4d78cc; }
.log-warn { color: #e5c07b; }
.log-error { color: #e06c75; }
.log-debug { color: #56b6c2; }

.swagger-ui {
  filter: invert(88%) hue-rotate(180deg);
  background: white;
}

.swagger-container {
  margin: 1.5em 0;
  border: 1px solid #444;
  border-radius: 4px;
  overflow: hidden;
}


.markdown-section pre {
  position: relative;
  background-color: #282c34;  
  padding: 1em 1.5em;  
  border-radius: 4px;
  margin: 1rem 0;
  overflow: auto;
  width: 100%;
  box-sizing: border-box;
}

.markdown-section pre > code {
  color: #abb2bf;  
  padding: 0;  
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  display: block;
  overflow-x: auto;
  background-color: transparent;  
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
}


.docsify-copy-code-button {
  position: absolute !important;
  top: 0.5em !important;
  right: 0.5em !important;
  padding: 0.4em 0.8em !important;
  opacity: 0.8 !important;
  background: var(--theme-color, #42b983) !important;
  border-radius: 4px !important;
  border: 0 !important;
  color: white !important;
  font-size: 0.8em !important;
  z-index: 1 !important;
}

.docsify-copy-code-button:hover {
  opacity: 1 !important;
}


.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #7f848e !important; 
}

.token.punctuation {
  color: #abb2bf !important;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
  color: #d19a66 !important; 
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: #98c379 !important; 
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
  color: #c678dd !important; 
}

.token.atrule,
.token.attr-value,
.token.keyword {
  color: #e06c75 !important; 
}

.token.function,
.token.class-name {
  color: #61afef !important; 
}


.markdown-section code.lang-bash,
.markdown-section code.lang-js,
.markdown-section code.lang-javascript,
.markdown-section code.lang-python,
.markdown-section code.lang-json,
.markdown-section code.lang-yaml,
.markdown-section code.lang-html,
.markdown-section code.lang-css {
  background-color: transparent !important;
  color: inherit !important;
}


.markdown-section code:not([class*="lang-"]):not([class*="language-"]) {
  padding: 0.2em 0.4em;
  margin: 0;
  font-size: 0.85em;
  background-color: rgba(100, 100, 100, 0.2);
  border-radius: 3px;
  color: #e06c75;
  font-family: Consolas, Monaco, 'Andale Mono', monospace;
}

.terminal-output code {
  background-color: #2d2d2d;
  color: #d4d4d4;
  padding: 2px 5px;
  border-radius: 3px;
  font-family: Consolas, Monaco, 'Andale Mono', monospace;
}

.terminal-output code.command {
  color: #9cdcfe;
}

.language-selector {
  padding: 15px;
  border-bottom: 1px solid rgba(0,0,0,.07);
}

.language-selector select {
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #2c2c2c;
  color: #fff;
}

/* Language Switcher Styles */
.language-select {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 100;
  background: var(--theme-color, #42b983);
  color: white;
  border: none;
  padding: .25rem .4rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  min-width: .5rem;
}

.language-select option {
  padding: 8px;
  display: flex;
  align-items: center;
}

.flag-icon {
  margin-right: 8px;
  width: 16px;
  height: 12px;
  display: inline-block;
  vertical-align: middle;
}

/* Dark theme adjustments */
.dark .language-select {
  background: #2c3e50;
  color: #ecf0f1;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
  .language-select {
    bottom: 10px;
    left: 10px;
    font-size: 12px;
    min-width: 100px;
  }
}

/* Logs container styles */
.logs-container {
  margin: 1em 0;
  border: 1px solid #444;
  border-radius: 4px;
  background: #1e1e1e;
  color: #fff;
}

.logs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5em;
  background: #2d2d2d;
  border-bottom: 1px solid #444;
}

.logs-select {
  padding: 0.3em;
  background: #3d3d3d;
  color: #fff;
  border: 1px solid #555;
  border-radius: 3px;
  min-width: 150px;
}

.logs-clear {
  padding: 0.3em 0.8em;
  background: #3d3d3d;
  color: #fff;
  border: 1px solid #555;
  border-radius: 3px;
  cursor: pointer;
}

.logs-clear:hover {
  background: #4d4d4d;
}

.logs-output {
  padding: 1em;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.9em;
  line-height: 1.4;
  max-height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.terminal-line {
  margin: 0;
  padding: 0;
}

.log-error {
  color: #ff6b6b;
}

.log-warn {
  color: #ffd93d;
}

.log-info {
  color: #4dabf7;
}

.log-debug {
  color: #868e96;
}