@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600&display=swap');

/* ============================================================
   BASE FONTS
   ============================================================ */
.swagger-ui,
.swagger-ui * {
    font-family: 'Open Sans', sans-serif;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.swagger-ui .topbar {
    background-color: #1e73be;
    border-bottom: 4px solid #c75000;
    padding: 12px 0;
}

.swagger-ui .topbar .topbar-wrapper {
    align-items: center;
}

/* Hide default swagger icon, replace with DEBITIA brand text */
.swagger-ui .topbar .topbar-wrapper img {
    display: none;
}

.swagger-ui .topbar .topbar-wrapper .link::after {
    content: 'DEBITIA  API';
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Hide the spec URL input bar */
.swagger-ui .topbar .download-url-wrapper {
    display: none;
}

/* ============================================================
   INFO / HEADER SECTION
   ============================================================ */
.swagger-ui .information-container {
    background: linear-gradient(135deg, #f0f6fd 0%, #ffffff 100%);
    border-bottom: 2px solid #e8f0f9;
    padding: 24px 0;
}

.swagger-ui .info {
    margin: 10px 0;
}

.swagger-ui .info .title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #1e73be;
    font-size: 34px;
    letter-spacing: 1px;
}

.swagger-ui .info .title small {
    background-color: #c75000;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 13px;
    font-family: 'Open Sans', sans-serif;
}

.swagger-ui .info .title small.version-stamp {
    background-color: #1e73be;
}

.swagger-ui .info p,
.swagger-ui .info li {
    color: #333333;
    font-size: 14px;
    line-height: 1.7;
}

.swagger-ui .info a {
    color: #005ac1;
    font-weight: 600;
}

.swagger-ui .info a:hover {
    color: #c75000;
    text-decoration: underline;
}

/* ============================================================
   SCHEME / SERVER SELECTOR
   ============================================================ */
.swagger-ui .scheme-container {
    background: #f7fafd;
    border-bottom: 1px solid #dce8f5;
    box-shadow: none;
    padding: 12px 0;
}

.swagger-ui .scheme-container .schemes > label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #1e73be;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   AUTHORIZE BUTTON
   ============================================================ */
.swagger-ui .auth-wrapper .authorize {
    background-color: #1e73be;
    border-color: #1e73be;
    color: #ffffff;
    font-weight: 600;
    border-radius: 4px;
    padding: 6px 16px;
    transition: background-color 0.2s;
}

.swagger-ui .auth-wrapper .authorize:hover {
    background-color: #005ac1;
    border-color: #005ac1;
}

.swagger-ui .auth-wrapper .authorize svg {
    fill: #ffffff;
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.swagger-ui .filter .operation-filter-input {
    border: 2px solid #1e73be;
    border-radius: 4px;
    padding: 6px 12px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}

.swagger-ui .filter .operation-filter-input:focus {
    border-color: #c75000;
}

/* ============================================================
   OPERATION TAG HEADERS
   ============================================================ */
.swagger-ui .opblock-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1e73be;
    border-bottom: 2px solid #dce8f5;
    padding: 12px 4px;
    letter-spacing: 0.3px;
}

.swagger-ui .opblock-tag:hover {
    background-color: rgba(30, 115, 190, 0.04);
}

.swagger-ui .opblock-tag small {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    color: #666;
}

/* ============================================================
   OPERATION BLOCKS
   ============================================================ */
.swagger-ui .opblock {
    border-radius: 6px;
    margin-bottom: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* GET */
.swagger-ui .opblock.opblock-get {
    border-color: #1e73be;
    background: rgba(30, 115, 190, 0.04);
}
.swagger-ui .opblock.opblock-get .opblock-summary-method {
    background-color: #1e73be;
    border-radius: 3px;
    min-width: 70px;
    font-weight: 700;
}
.swagger-ui .opblock.opblock-get .opblock-summary {
    border-color: #1e73be;
}

/* POST */
.swagger-ui .opblock.opblock-post {
    border-color: #c75000;
    background: rgba(199, 80, 0, 0.04);
}
.swagger-ui .opblock.opblock-post .opblock-summary-method {
    background-color: #c75000;
    border-radius: 3px;
    min-width: 70px;
    font-weight: 700;
}
.swagger-ui .opblock.opblock-post .opblock-summary {
    border-color: #c75000;
}

/* PUT */
.swagger-ui .opblock.opblock-put {
    border-color: #005ac1;
    background: rgba(0, 90, 193, 0.04);
}
.swagger-ui .opblock.opblock-put .opblock-summary-method {
    background-color: #005ac1;
    border-radius: 3px;
    min-width: 70px;
    font-weight: 700;
}

/* DELETE */
.swagger-ui .opblock.opblock-delete {
    border-color: #c0392b;
    background: rgba(192, 57, 43, 0.04);
}
.swagger-ui .opblock.opblock-delete .opblock-summary-method {
    background-color: #c0392b;
    border-radius: 3px;
    min-width: 70px;
    font-weight: 700;
}

/* PATCH */
.swagger-ui .opblock.opblock-patch {
    border-color: #1b7fb5;
    background: rgba(27, 127, 181, 0.04);
}
.swagger-ui .opblock.opblock-patch .opblock-summary-method {
    background-color: #1b7fb5;
    border-radius: 3px;
    min-width: 70px;
    font-weight: 700;
}

/* Operation summary path */
.swagger-ui .opblock-summary-path,
.swagger-ui .opblock-summary-path__deprecated {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.swagger-ui .opblock-summary-description {
    color: #555;
    font-size: 13px;
}

/* ============================================================
   OPERATION EXPANDED BODY
   ============================================================ */
.swagger-ui .opblock-body {
    background: #ffffff;
}

.swagger-ui .opblock-section-header h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #1e73be;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.swagger-ui .btn {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.2s;
}

.swagger-ui .btn.execute {
    background-color: #c75000;
    border-color: #c75000;
    color: #ffffff;
    padding: 6px 20px;
}

.swagger-ui .btn.execute:hover {
    background-color: #a54200;
    border-color: #a54200;
}

.swagger-ui .btn.btn-clear {
    color: #1e73be;
    border-color: #1e73be;
}

.swagger-ui .btn.btn-clear:hover {
    background-color: rgba(30, 115, 190, 0.08);
}

.swagger-ui .btn.cancel {
    border-color: #999;
    color: #666;
}

/* Try it out button */
.swagger-ui .try-out__btn {
    background-color: #1e73be;
    border-color: #1e73be;
    color: #ffffff;
    font-weight: 600;
    border-radius: 4px;
    padding: 4px 12px;
}

.swagger-ui .try-out__btn:hover {
    background-color: #005ac1;
    border-color: #005ac1;
}

.swagger-ui .try-out__btn.cancel {
    background-color: transparent;
    border-color: #c75000;
    color: #c75000;
}

/* ============================================================
   PARAMETERS TABLE
   ============================================================ */
.swagger-ui table thead tr th {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1e73be;
    border-bottom: 2px solid #dce8f5;
    padding: 8px 10px;
}

.swagger-ui table tbody tr td {
    font-size: 13px;
    color: #333;
    padding: 8px 10px;
}

.swagger-ui .parameter__name {
    font-weight: 600;
    color: #222;
}

.swagger-ui .parameter__type {
    color: #1e73be;
    font-size: 12px;
}

.swagger-ui .parameter__in {
    color: #888;
    font-size: 11px;
    font-style: italic;
}

/* ============================================================
   RESPONSE CODES
   ============================================================ */
.swagger-ui .response-col_status {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #1e73be;
}

.swagger-ui table.responses-table thead tr th {
    color: #1e73be;
}

/* ============================================================
   MODELS SECTION
   ============================================================ */
.swagger-ui section.models {
    border: 1px solid #dce8f5;
    border-radius: 6px;
    background: #f7fafd;
}

.swagger-ui section.models h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #1e73be;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.swagger-ui section.models .model-container {
    background: #ffffff;
    border-radius: 4px;
    margin: 4px 0;
}

.swagger-ui .model-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #1e73be;
}

.swagger-ui .prop-type {
    color: #c75000;
}

/* ============================================================
   CODE / JSON BLOCKS
   ============================================================ */
.swagger-ui .highlight-code pre,
.swagger-ui .microlight {
    background: #f4f8fd;
    border: 1px solid #dce8f5;
    border-radius: 4px;
    font-size: 13px;
}

/* ============================================================
   LOADING BAR
   ============================================================ */
.swagger-ui .loading-container .loading::after {
    background: #1e73be;
}

/* ============================================================
   SCROLLBAR (webkit)
   ============================================================ */
.swagger-ui ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.swagger-ui ::-webkit-scrollbar-track {
    background: #f0f6fd;
}
.swagger-ui ::-webkit-scrollbar-thumb {
    background: #1e73be;
    border-radius: 3px;
}
.swagger-ui ::-webkit-scrollbar-thumb:hover {
    background: #005ac1;
}
