﻿.swagger-ui .topbar {
    background: rgb(0, 12, 26) !important;
}

html.dark-mode .swagger-ui .scheme-container {
    background: rgb(0, 12, 26) !important;
    box-shadow: rgba(0, 0, 0, .15) 0 1px 2px 0 !important;
}

.swagger-ui .topbar a {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    content: url('/logo.png') !important;
    max-width: 100%;
    max-height: 100%;
    height: 40px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
    flex: 0;
}

a {
    color: #8c8cfa;
}

/* Scope all styles to our custom documentation block */
.api-docs-container {
    font-size: 14px;
    line-height: 1.6;
}

/* Fix the bulky Swagger code tags */
.api-docs-container code {
    background: rgba(140, 140, 250, 0.1) !important; /* Subtle accent background */
    color: #b3b3ff !important; /* Light accent text */
    padding: 1px 5px !important; /* Minimal padding */
    border-radius: 4px;
    font-size: 0.95em;
    line-height: normal !important; /* Fixes the vertical overlapping */
    display: inline-block; /* Prevents text bleeding */
    border: 1px solid rgba(140, 140, 250, 0.2);
}

/* Style the internal headlines */
.api-docs-container h4 {
    color: #8c8cfa !important;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.api-docs-container h5 {
    color: #e0e0e0 !important;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 1em;
}

/* The visual grouping for dropdown contents */
.api-docs-container .details-content {
    margin-left: 10px; /* Push inward */
    padding-left: 16px; /* Space from the border */
    border-left: 2px solid rgba(140, 140, 250, 0.3); /* Sleek vertical grouping line */
    margin-top: 8px;
    margin-bottom: 16px;
}

/* Make summaries look like distinct clickable headers */
.api-docs-container summary {
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    outline: none;
    padding-top: 10px;
}

.api-docs-container ul, .api-docs-container ol {
    margin-top: 4px;
    margin-bottom: 12px;
}