/* ResolvIP — Swagger UI Theme (light default, dark toggle) */

/* ── Light mode base ───────────────────────────────────────── */
body, .swagger-ui {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.swagger-ui .topbar { display: none !important; }

.swagger-ui .info .title { font-weight: 700 !important; }
.swagger-ui .info a { color: #3b82f6 !important; }

.swagger-ui .opblock-tag {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
}

/* GET method — blue accent */
.swagger-ui .opblock.opblock-get .opblock-summary-method {
  background: #3b82f6 !important;
  font-weight: 700 !important;
}

/* POST method */
.swagger-ui .opblock.opblock-post .opblock-summary-method {
  background: #06b6d4 !important;
  font-weight: 700 !important;
}

.swagger-ui .btn.execute {
  background: #3b82f6 !important;
  color: #fff !important;
  border-color: #3b82f6 !important;
  font-weight: 600 !important;
}
.swagger-ui .btn.authorize {
  border-color: #3b82f6 !important;
  color: #3b82f6 !important;
}
.swagger-ui .parameter__type { color: #3b82f6 !important; }
.swagger-ui .prop-type { color: #3b82f6 !important; }

/* ── Dark mode overrides ───────────────────────────────────── */
html[data-theme="dark"] body,
html[data-theme="dark"] .swagger-ui {
  background: #0e0e0e !important;
  color: #e2e2e2 !important;
}

html[data-theme="dark"] .swagger-ui .scheme-container {
  background: #161616 !important;
  border-bottom: 1px solid #2a2a2a !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .swagger-ui .opblock-tag {
  border-bottom: 1px solid #2a2a2a !important;
  color: #e2e2e2 !important;
}
html[data-theme="dark"] .swagger-ui .opblock-tag:hover { background: #161616 !important; }
html[data-theme="dark"] .swagger-ui .opblock-tag small { color: #888 !important; }

html[data-theme="dark"] .swagger-ui .opblock {
  background: #161616 !important;
  border: 1px solid #2a2a2a !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  margin-bottom: 8px !important;
}
html[data-theme="dark"] .swagger-ui .opblock .opblock-summary { border-bottom: none !important; }
html[data-theme="dark"] .swagger-ui .opblock .opblock-summary-description { color: #888 !important; }
html[data-theme="dark"] .swagger-ui .opblock .opblock-summary-path { color: #e2e2e2 !important; }
html[data-theme="dark"] .swagger-ui .opblock-body { background: #1e1e1e !important; }

html[data-theme="dark"] .swagger-ui .opblock.opblock-get {
  border-left: 3px solid #00e676 !important;
}
html[data-theme="dark"] .swagger-ui .opblock.opblock-get .opblock-summary-method {
  background: #00e676 !important;
  color: #000 !important;
}
html[data-theme="dark"] .swagger-ui .opblock.opblock-get .opblock-summary { background: transparent !important; }

html[data-theme="dark"] .swagger-ui .opblock.opblock-post {
  border-left: 3px solid #40c4ff !important;
}
html[data-theme="dark"] .swagger-ui .opblock.opblock-post .opblock-summary-method {
  background: #40c4ff !important;
  color: #000 !important;
}
html[data-theme="dark"] .swagger-ui .opblock.opblock-post .opblock-summary { background: transparent !important; }

html[data-theme="dark"] .swagger-ui .opblock-section-header {
  background: #1e1e1e !important;
  border-bottom: 1px solid #2a2a2a !important;
}
html[data-theme="dark"] .swagger-ui .opblock-section-header h4 { color: #888 !important; }
html[data-theme="dark"] .swagger-ui .parameter__name { color: #e2e2e2 !important; }
html[data-theme="dark"] .swagger-ui .parameter__type { color: #00e676 !important; }
html[data-theme="dark"] .swagger-ui .parameter__in { color: #888 !important; font-style: italic !important; }

html[data-theme="dark"] .swagger-ui table tbody tr td { color: #ccc !important; border-bottom: 1px solid #2a2a2a !important; }
html[data-theme="dark"] .swagger-ui table tbody tr td:first-of-type { color: #e2e2e2 !important; }
html[data-theme="dark"] .swagger-ui table thead tr th { color: #888 !important; border-bottom: 1px solid #2a2a2a !important; }

html[data-theme="dark"] .swagger-ui input[type=text],
html[data-theme="dark"] .swagger-ui input[type=password],
html[data-theme="dark"] .swagger-ui textarea,
html[data-theme="dark"] .swagger-ui select {
  background: #0e0e0e !important;
  color: #e2e2e2 !important;
  border: 1px solid #2a2a2a !important;
  border-radius: 4px !important;
}
html[data-theme="dark"] .swagger-ui input[type=text]:focus,
html[data-theme="dark"] .swagger-ui textarea:focus {
  border-color: #00e676 !important;
  outline: none !important;
}

html[data-theme="dark"] .swagger-ui .btn {
  background: transparent !important;
  border: 1px solid #2a2a2a !important;
  color: #e2e2e2 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .swagger-ui .btn:hover { border-color: #444 !important; }
html[data-theme="dark"] .swagger-ui .btn.execute {
  background: #00e676 !important;
  color: #000 !important;
  border-color: #00e676 !important;
}
html[data-theme="dark"] .swagger-ui .btn.authorize {
  background: transparent !important;
  border-color: #00e676 !important;
  color: #00e676 !important;
}
html[data-theme="dark"] .swagger-ui .btn.cancel { border-color: #555 !important; color: #888 !important; }

html[data-theme="dark"] .swagger-ui .responses-wrapper { background: #161616 !important; }
html[data-theme="dark"] .swagger-ui .response-col_status { color: #e2e2e2 !important; }
html[data-theme="dark"] .swagger-ui .responses-inner { background: transparent !important; }

html[data-theme="dark"] .swagger-ui .highlight-code,
html[data-theme="dark"] .swagger-ui .microlight {
  background: #0e0e0e !important;
  color: #e2e2e2 !important;
  border-radius: 4px !important;
}
html[data-theme="dark"] .swagger-ui .curl-command { background: #0e0e0e !important; color: #e2e2e2 !important; }

html[data-theme="dark"] .swagger-ui section.models {
  background: #161616 !important;
  border: 1px solid #2a2a2a !important;
  border-radius: 6px !important;
}
html[data-theme="dark"] .swagger-ui section.models h4 { color: #e2e2e2 !important; }
html[data-theme="dark"] .swagger-ui .model-box { background: #1e1e1e !important; }
html[data-theme="dark"] .swagger-ui .model-title { color: #e2e2e2 !important; }
html[data-theme="dark"] .swagger-ui .model { color: #ccc !important; }
html[data-theme="dark"] .swagger-ui .prop-type { color: #00e676 !important; }
html[data-theme="dark"] .swagger-ui .model-toggle { color: #888 !important; }

html[data-theme="dark"] .swagger-ui .dialog-ux .modal-ux {
  background: #161616 !important;
  border: 1px solid #2a2a2a !important;
  color: #e2e2e2 !important;
}
html[data-theme="dark"] .swagger-ui .dialog-ux .modal-ux-header {
  background: #1e1e1e !important;
  border-bottom: 1px solid #2a2a2a !important;
}
html[data-theme="dark"] .swagger-ui .dialog-ux .modal-ux-header h3 { color: #e2e2e2 !important; }
html[data-theme="dark"] .swagger-ui .dialog-ux .modal-ux-content p { color: #888 !important; }
html[data-theme="dark"] .swagger-ui .dialog-ux .modal-ux-content label { color: #ccc !important; }

html[data-theme="dark"] .swagger-ui svg { fill: #888 !important; }
html[data-theme="dark"] .swagger-ui .info .title { color: #e2e2e2 !important; }
html[data-theme="dark"] .swagger-ui .info p,
html[data-theme="dark"] .swagger-ui .info li { color: #888 !important; }
html[data-theme="dark"] .swagger-ui .info a { color: #00e676 !important; }

/* Scrollbars (dark) */
html[data-theme="dark"] ::-webkit-scrollbar { width: 6px; height: 6px; }
html[data-theme="dark"] ::-webkit-scrollbar-track { background: #0e0e0e; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 3px; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }
