﻿body.dark-mode,
body.dark-mode .swagger-ui,
body.dark-mode .swagger-ui section,
body.dark-mode .swagger-ui section h3,
body.dark-mode .swagger-ui section h4,
body.dark-mode .swagger-ui section h5,
body.dark-mode .swagger-ui section h6 {
  background-color: #11141b !important;
  color: #f5f6fb !important;
}

body.dark-mode .topbar,
body.dark-mode .topbar:before {
  background-color: #121418 !important;
  border-bottom: 1px solid #1f2129 !important;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

body.dark-mode .topbar .download-url-wrapper input[type='text'],
body.dark-mode .swagger-ui input,
body.dark-mode .swagger-ui textarea,
body.dark-mode .swagger-ui select {
  background-color: #1f2128 !important;
  border-color: #343945 !important;
  color: #f5f6fb !important;
}

body.dark-mode .swagger-ui .info .title,
body.dark-mode .swagger-ui .info .base-url,
body.dark-mode .swagger-ui .info .description,
body.dark-mode .swagger-ui .opblock-tag,
body.dark-mode .swagger-ui .opblock-description-wrapper h4,
body.dark-mode .swagger-ui .opblock-section-header h4 {
  color: #ffffff !important;
}

body.dark-mode .opblock {
  background-color: #1d2027 !important;
  border: 1px solid #2c2f38 !important;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.45);
}

body.dark-mode .opblock.is-open .opblock-summary {
  border-bottom: 1px solid #2c2f38 !important;
}

body.dark-mode .opblock .opblock-summary {
  background-color: #22252d !important;
  border-color: #2b3040 !important;
  color: #f5f6fb !important;
}

body.dark-mode .opblock .opblock-summary-method {
  color: #fff !important;
  background-color: #0f1115 !important;
  border: 1px solid #2b2f3d !important;
}

body.dark-mode .opblock.opblock-get {
  border-color: #2a69a7 !important;
}

body.dark-mode .opblock.opblock-get .opblock-summary-method,
body.dark-mode .opblock.opblock-get .tab-header .tab-item.active h4 span::after {
  background-color: #2a69a7 !important;
}

body.dark-mode .opblock.opblock-post {
  border-color: #48cb90 !important;
}

body.dark-mode .opblock.opblock-post .opblock-summary-method {
  background-color: #48cb90 !important;
  color: #0b0d12 !important;
}

body.dark-mode .opblock.opblock-put {
  border-color: #d59d58 !important;
}

body.dark-mode .opblock.opblock-put .opblock-summary-method {
  background-color: #d59d58 !important;
  color: #0b0d12 !important;
}

body.dark-mode .opblock.opblock-delete {
  border-color: #c83232 !important;
}

body.dark-mode .opblock.opblock-delete .opblock-summary-method {
  background-color: #c83232 !important;
  color: #fff !important;
}

body.dark-mode .opblock.opblock-patch .opblock-summary-method {
  background-color: #5cd6bc !important;
  color: #0b0d12 !important;
}

body.dark-mode .opblock .opblock-body {
  background-color: #181b21 !important;
  border-top: 1px solid #2b3040 !important;
}

body.dark-mode .responses-inner h4,
body.dark-mode .responses-inner h5,
body.dark-mode .responses-inner label {
  color: #d4d7df !important;
}

body.dark-mode .btn,
body.dark-mode .btn.authorize,
body.dark-mode .btn.execute,
body.dark-mode .swagger-ui .btn.execute,
body.dark-mode .swagger-ui .btn.action,
body.dark-mode .swagger-ui .copy-to-clipboard button {
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #f4f6fb !important;
}

body.dark-mode .btn.authorize.unlocked:hover,
body.dark-mode .btn.authorize:hover {
  background-color: #48cb90 !important;
  border-color: #48cb90 !important;
  color: #0b0d12 !important;
}

body.dark-mode .swagger-ui .btn.execute {
  background-color: #5892d5 !important;
  border-color: #5892d5 !important;
  color: #fff !important;
}

body.dark-mode .swagger-ui .download-contents,
body.dark-mode .copy-to-clipboard button {
  background-color: #3b3f4c !important;
  border-color: #3b3f4c !important;
  color: #f5f6fb !important;
}

#theme-toggle {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  font-size: 13px;
  background-color: rgba(255, 255, 255, 0.07);
  color: #f4f6fb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

#theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.16);
}

body.dark-mode #theme-toggle {
  background-color: rgba(255, 255, 255, 0.08);
  color: #f4f6fb;
}

body.dark-mode #theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

body.dark-mode ::-webkit-scrollbar,
body.dark-mode ::-webkit-scrollbar-track-piece,
body.dark-mode ::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode ::-webkit-scrollbar-thumb {
  border: 2px solid rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .scheme-container,
body.dark-mode .swagger-ui .scheme-container {
  background-color: #0f1116 !important;
  border: 1px solid rgba(72, 203, 144, 0.4) !important;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6);
  padding: 0 4px !important;
  border-radius: 0 !important;
}

body.dark-mode .swagger-ui .scheme-container .schemes {
  color: #f5f6fb !important;
}

body.dark-mode .swagger-ui .scheme-container .schemes button {
  color: #f5f6fb !important;
}

body.dark-mode .swagger-ui .scheme-container .schemes li {
  background: transparent !important;
}