/* Modern Dark Swagger Theme - Cyber Command Style */
:root {
    --bg-color: #050505;
    --surface-color: #0a0a0a;
    --border-color: #1a1a1a;
    --accent-color: #00f3ff;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --link-color: #00f3ff;
    --success: #00b341;
    --error: #ff3e3e;
    --warning: #ffb000;
}

html, body {
    background-color: var(--bg-color) !important;
    font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
    overflow-x: hidden !important;
}

.swagger-ui {
    background-color: var(--bg-color);
}

.swagger-ui .topbar {
    background-color: var(--surface-color) !important;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.swagger-ui .info .title {
    color: var(--text-primary) !important;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.swagger-ui .info .title small {
    background: var(--accent-color);
    color: #000;
    border-radius: 2px;
}

.swagger-ui .info li, .swagger-ui .info p, .swagger-ui .info p a, .swagger-ui .info span {
    color: var(--text-secondary) !important;
}

.swagger-ui .scheme-container {
    background-color: var(--surface-color) !important;
    box-shadow: none !important;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.swagger-ui select {
    background-color: var(--bg-color) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

.swagger-ui .opblock-tag {
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 15px 10px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Operation Blocks */
.swagger-ui .opblock {
    background: var(--surface-color) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
    border-radius: 4px !important;
    margin-bottom: 15px !important;
}

.swagger-ui .opblock.opblock-get { background: rgba(0, 243, 255, 0.05) !important; border-color: #00f3ff !important; }
.swagger-ui .opblock.opblock-post { background: rgba(0, 179, 65, 0.05) !important; border-color: #00b341 !important; }
.swagger-ui .opblock.opblock-put { background: rgba(255, 176, 0, 0.05) !important; border-color: #ffb000 !important; }
.swagger-ui .opblock.opblock-delete { background: rgba(255, 62, 62, 0.05) !important; border-color: #ff3e3e !important; }

.swagger-ui .opblock .opblock-summary-method {
    border-radius: 2px !important;
    font-weight: 700 !important;
}

.swagger-ui .opblock .opblock-summary-path {
    color: var(--text-primary) !important;
}

.swagger-ui .opblock .opblock-summary-description {
    color: var(--text-secondary) !important;
}

/* Parameters & Responses */
.swagger-ui .tabli button {
    color: var(--text-primary) !important;
}

.swagger-ui .opblock-section-header {
    background: transparent !important;
    color: var(--accent-color) !important;
}

.swagger-ui label {
    color: var(--text-secondary) !important;
}

.swagger-ui table {
    width: 100% !important;
    table-layout: fixed !important;
    word-break: break-all !important;
}

.swagger-ui table thead tr td, .swagger-ui table thead tr th {
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.swagger-ui .btn.execute {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #000 !important;
    font-weight: 700 !important;
}

.swagger-ui .btn.execute:hover {
    background-color: #fff !important;
}

.swagger-ui .btn.authorize {
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
}

.swagger-ui .btn.authorize svg {
    fill: var(--accent-color) !important;
}

.swagger-ui .model-box {
    background: #000 !important;
    border: 1px solid var(--border-color) !important;
}

.swagger-ui section.models {
    border: 1px solid var(--border-color) !important;
}

.swagger-ui section.models.is-open h4 {
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.swagger-ui .model-title {
    color: var(--text-primary) !important;
}

/* Code boxes */
.swagger-ui .microlight {
    background-color: #000 !important;
    color: #00f3ff !important;
}

.swagger-ui .responses-inner h4, .swagger-ui .responses-inner h5 {
    color: var(--text-primary) !important;
}

.swagger-ui .response-col_status {
    color: var(--accent-color) !important;
}

/* Hide some elements */
.swagger-ui .topbar .download-url-wrapper { display: none !important; }
