/* FlowFabric API - Brand color palette (refined) */

/* Primary: #66CCFF | Secondary: #9FB9C6 | Accent: #FFCC66 | Text: #1A1A1A */

/* Logo in header */
.swagger-ui .topbar-wrapper::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 40px;
  background-image: url('/static/branding/logo.svg');
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 15px;
  vertical-align: middle;
}

/* OAS badge - brand yellow instead of green */
.swagger-ui .info .main .version {
  background-color: #FFCC66 !important;
  color: #1A1A1A;
  font-weight: 600;
  border-radius: 4px;
}

.swagger-ui .info hgroup.main small {
  background-color: #FFCC66 !important;
  color: #1A1A1A;
}

.swagger-ui .info hgroup.main small pre {
  background-color: #FFCC66 !important;
  color: #1A1A1A;
}

/* Authorize button - primary brand color */
.swagger-ui .btn.authorize {
  background-color: #66CCFF;
  border-color: #66CCFF;
  color: #1A1A1A;
  font-weight: 600;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(102, 204, 255, 0.2);
  transition: all 0.2s ease;
}

.swagger-ui .btn.authorize svg {
  fill: #1A1A1A !important;
}

.swagger-ui .btn.authorize:hover {
  background-color: #52b8eb;
  border-color: #52b8eb;
  box-shadow: 0 4px 8px rgba(102, 204, 255, 0.3);
  transform: translateY(-1px);
}

.swagger-ui .btn.authorize:hover svg {
  fill: #1A1A1A !important;
}

/* HTTP method colors - more polished */
.swagger-ui .opblock {
  border-radius: 6px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.swagger-ui .opblock.opblock-post {
  background: rgba(102, 204, 255, 0.04);
  border: 1px solid rgba(102, 204, 255, 0.2);
}

.swagger-ui .opblock.opblock-post .opblock-summary-method {
  background: #66CCFF;
  color: #1A1A1A;
  font-weight: 600;
  border-radius: 4px;
}

.swagger-ui .opblock.opblock-get {
  background: rgba(159, 185, 198, 0.04);
  border: 1px solid rgba(159, 185, 198, 0.2);
}

.swagger-ui .opblock.opblock-get .opblock-summary-method {
  background: #9FB9C6;
  color: white;
  font-weight: 600;
  border-radius: 4px;
}

.swagger-ui .opblock.opblock-put {
  background: rgba(255, 204, 102, 0.04);
  border: 1px solid rgba(255, 204, 102, 0.2);
}

.swagger-ui .opblock.opblock-put .opblock-summary-method {
  background: #FFCC66;
  color: #1A1A1A;
  font-weight: 600;
  border-radius: 4px;
}

/* Links - primary brand color with better contrast */
.swagger-ui a {
  color: #52b8eb;
  text-decoration: none;
  transition: color 0.2s ease;
}

.swagger-ui a:hover {
  color: #66CCFF;
  text-decoration: underline;
}

/* Info section link */
.swagger-ui .info a {
  color: #52b8eb;
  font-weight: 500;
}

/* Try it out button - subtle accent */
.swagger-ui .btn.try-out__btn {
  border-color: #9FB9C6;
  color: #1A1A1A;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.swagger-ui .btn.try-out__btn:hover {
  background: #9FB9C6;
  color: white;
}

/* Execute button - primary brand color */
.swagger-ui .btn.execute {
  background-color: #66CCFF;
  border-color: #66CCFF;
  color: #1A1A1A;
  font-weight: 600;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(102, 204, 255, 0.2);
  transition: all 0.2s ease;
}

.swagger-ui .btn.execute:hover {
  background-color: #52b8eb;
  border-color: #52b8eb;
  box-shadow: 0 4px 8px rgba(102, 204, 255, 0.3);
}

/* Improve overall readability */
.swagger-ui .opblock-summary-path {
  color: #1A1A1A;
  font-weight: 500;
}

.swagger-ui .opblock-summary-description {
  color: #666;
}

/* Improve typography */
.swagger-ui .info .title {
  color: #1A1A1A;
  font-weight: 600;
}

.swagger-ui .info .description {
  color: #666;
  line-height: 1.6;
}

/* Tag headings */
.swagger-ui .opblock-tag {
  color: #1A1A1A;
  font-weight: 600;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 8px;
}

/* Response section styling */
.swagger-ui .responses-inner h4,
.swagger-ui .responses-inner h5 {
  color: #1A1A1A;
  font-weight: 600;
}

/* Parameter table improvements */
.swagger-ui table thead tr th {
  color: #1A1A1A;
  font-weight: 600;
}

.swagger-ui .parameter__name {
  color: #1A1A1A;
  font-weight: 500;
}

/* Model section */
.swagger-ui section.models {
  border-top: 2px solid #f0f0f0;
  padding-top: 20px;
}

.swagger-ui section.models h4 {
  color: #1A1A1A;
  font-weight: 600;
}

.swagger-ui .model-box {
  background: #fafafa;
  border-radius: 6px;
  padding: 12px;
}

.swagger-ui .model-title {
  color: #1A1A1A;
  font-weight: 600;
}

/* Response code badges */
.swagger-ui .responses-inner .response .response-col_status {
  font-weight: 600;
}

.swagger-ui .response-col_status .response-code {
  border-radius: 4px;
  padding: 4px 8px;
  font-weight: 600;
}

/* Success responses - brand primary */
.swagger-ui .response-col_status .response-code.code-200,
.swagger-ui .response-col_status .response-code.code-201,
.swagger-ui .response-col_status .response-code.code-204 {
  background: rgba(102, 204, 255, 0.15);
  color: #1A1A1A;
}

/* Client error responses - accent yellow */
.swagger-ui .response-col_status .response-code.code-400,
.swagger-ui .response-col_status .response-code.code-401,
.swagger-ui .response-col_status .response-code.code-403,
.swagger-ui .response-col_status .response-code.code-404 {
  background: rgba(255, 204, 102, 0.2);
  color: #1A1A1A;
}

/* Server error responses - secondary */
.swagger-ui .response-col_status .response-code.code-500,
.swagger-ui .response-col_status .response-code.code-503 {
  background: rgba(159, 185, 198, 0.2);
  color: #1A1A1A;
}

/* Custom scrollbar for webkit browsers */
.swagger-ui ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.swagger-ui ::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 5px;
}

.swagger-ui ::-webkit-scrollbar-thumb {
  background: #9FB9C6;
  border-radius: 5px;
}

.swagger-ui ::-webkit-scrollbar-thumb:hover {
  background: #66CCFF;
}

/* Footer styling */
.api-footer {
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
  border-top: 2px solid #f0f0f0;
  color: #666;
  font-size: 14px;
}

.api-footer a {
  color: #52b8eb;
  text-decoration: none;
  font-weight: 500;
}

.api-footer a:hover {
  color: #66CCFF;
  text-decoration: underline;
}
