body {
    background-color: #1a1e2e;
}


.json-schema-2020-12,
.json-schema-2020-12-head,
.json-schema-2020-12-body,
.json-schema-2020-12 *,
.json-schema-2020-12-head *,
.json-schema-2020-12-body * {
    background-color: #1a1e2e !important;
    color: #ffffff !important;
    border-color: #333a52 !important;
}


.json-schema-2020-12 div,
.json-schema-2020-12 span,
.json-schema-2020-12 table,
.json-schema-2020-12 tr,
.json-schema-2020-12 td,
.json-schema-2020-12 th,
.json-schema-2020-12 pre,
.json-schema-2020-12 code,
.json-schema-2020-12-head div,
.json-schema-2020-12-head span,
.json-schema-2020-12-head table,
.json-schema-2020-12-head tr,
.json-schema-2020-12-head td,
.json-schema-2020-12-head th,
.json-schema-2020-12-head pre,
.json-schema-2020-12-head code,
.json-schema-2020-12-body div,
.json-schema-2020-12-body span,
.json-schema-2020-12-body table,
.json-schema-2020-12-body tr,
.json-schema-2020-12-body td,
.json-schema-2020-12-body th,
.json-schema-2020-12-body pre,
.json-schema-2020-12-body code {
    background-color: #1a1e2e !important;
    color: #ffffff !important;
}


.swagger-ui .opblock-section-header {
    background-color: #1a1e2e !important;
    box-shadow: none !important;
    border-bottom: 1px solid #333a52 !important;
}

.swagger-ui .opblock-section-header h4,
.swagger-ui .opblock-section-header label,
.swagger-ui .opblock-section-header span,
.swagger-ui .opblock-section-header * {
    color: #ffffff !important;
}


.swagger-ui .opblock-section-header .content-type {
    background-color: #ffffff !important;
    color: #000000 !important;
    padding: 5px !important;
    border-radius: 4px !important;
}


.swagger-ui select[data-select-id="content-type"] {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #333a52 !important;
}


.swagger-ui .topbar .download-url-wrapper,
.swagger-ui .topbar .download-url-wrapper .select-label,
.swagger-ui .topbar .download-url-wrapper input,
.swagger-ui .topbar .download-url-wrapper .download-url-button,
.swagger-ui .search,
.swagger-ui .search-icon,
.swagger-ui .operation-filter-input,
.swagger-ui .search-wrapper,
.swagger-ui .filter-container,
.swagger-ui .filter-container .filter {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.swagger-ui {
    background-color: #1a1e2e;
    color: #ffffff;
}


.swagger-ui * {
    color: #ffffff;
}


.swagger-ui .info p, 
.swagger-ui .info .markdown p, 
.swagger-ui .info .markdown ul li,
.swagger-ui label,
.swagger-ui table,
.swagger-ui table tbody tr td,
.swagger-ui .parameter__name,
.swagger-ui .parameter__type,
.swagger-ui .response-col_status,
.swagger-ui .response-col_description,
.swagger-ui .renderedMarkdown p,
.swagger-ui .opblock-description-wrapper p,
.swagger-ui .opblock-external-docs-wrapper p,
.swagger-ui .opblock-title_normal,
.swagger-ui .response-control-media-type__accept-message,
.swagger-ui .tab li,
.swagger-ui .response-col_links,
.swagger-ui .model-title, 
.swagger-ui .model-deprecated,
.swagger-ui .model-box,
.swagger-ui .model,
.swagger-ui section.models h4,
.swagger-ui .property-row {
    color: #ffffff !important;
}

.swagger-ui .topbar {
    background-color:#1a1e2e;
    display: flex;
    align-items: center;
}

.swagger-ui .topbar .topbar-wrapper {
    display: flex;
    align-items: center;
    padding-left: 0;
    position: relative;
}

.menu-icon {
    display: inline-block;
    cursor: pointer;
    padding: 10px;
    margin-left: 0;
    z-index: 100;
    position: absolute;
    left: 5px;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-left: 40px;
}

.logo-container a:first-child {
    margin-right: 0;
}

.second-logo {
    margin-left: -5px;
}

img[alt="Livia Logo Nome"] {
    filter: brightness(0) invert(1) !important;
}

.swagger-ui .topbar-wrapper img[alt="Livia Logo Nome"] {
    display: block !important;
    visibility: visible !important;
    height: 40px !important;
    width: auto !important;
}

.menu-icon .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.4s;
    border-radius: 2px;
}

.swagger-ui .topbar-wrapper img[alt="Swagger UI"] {
    display: none !important;
}

.swagger-ui .topbar a img {
    display: none !important;
}

.swagger-ui .topbar-wrapper span {
    display: none !important;
}

img[alt="Swagger UI"], 
img[src*="logo_small"], 
img[src*="swagger-logo"] {
    visibility: hidden !important;
    display: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.swagger-ui .topbar-wrapper a svg,
.swagger-ui .topbar a svg {
    display: none !important;
}

.swagger-ui .copy-to-clipboard svg,
.swagger-ui button.unlocked svg,
.swagger-ui button.locked svg,
.swagger-ui .view-line-link svg,
.swagger-ui .expand-methods svg, 
.swagger-ui .expand-operation svg {
    display: inline-block !important;
    fill: #ffffff !important;
}

.swagger-ui .copy-to-clipboard {
    background-color: transparent !important;
}

.swagger-ui .info .title small,
.swagger-ui .info .base-url,
.swagger-ui .info a[href^="http://swagger.io"] {
    display: none !important;
}

.swagger-ui .topbar-wrapper a img[alt="Livia Logo"],
.swagger-ui .topbar-wrapper a img[alt="Livia Logo Nome"] {
    display: block !important;
    visibility: visible !important;
    height: 40px !important;
    width: auto !important;
}

.swagger-ui .topbar .topbar-wrapper::before,
.swagger-ui .topbar .topbar-wrapper::after {
    content: none !important;
    display: none !important;
}


.swagger-ui .info {
    background-color: #252a3d;
    color: #ffffff;
    padding: 20px;
    border-radius: 8px;
}

.swagger-ui .info .title {
    color: #ffffff;
}

.swagger-ui .info p, .swagger-ui .info .markdown {
    color: #ffffff;
}

/* GET */
.swagger-ui .opblock.opblock-get {
    background: rgba(138, 43, 226, 0.1);
    border-color: #1a1e2e;
}
.swagger-ui .opblock.opblock-get .opblock-summary-method {
    background: #1a1e2e;
}
.swagger-ui .opblock.opblock-get .opblock-summary {
    border-color:#1a1e2e;
}

/* POST */
.swagger-ui .opblock.opblock-post {
    background: rgba(132, 0, 255, 0.1);
    border-color: #1a1e2e;
}
.swagger-ui .opblock.opblock-post .opblock-summary-method {
    background: #1a1e2e;
}
.swagger-ui .opblock.opblock-post .opblock-summary {
    border-color: #1a1e2e;
}

/* PUT */
.swagger-ui .opblock.opblock-put {
    background: rgba(112, 48, 160, 0.1);
    border-color: #1a1e2e;
}
.swagger-ui .opblock.opblock-put .opblock-summary-method {
    background: #7030a0;
}
.swagger-ui .opblock.opblock-put .opblock-summary {
    border-color: #1a1e2e;
}

/* DELETE */
.swagger-ui .opblock.opblock-delete {
    background: rgba(128, 0, 128, 0.1);
    border-color: #1a1e2e;
}
.swagger-ui .opblock.opblock-delete .opblock-summary-method {
    background: #1a1e2e;
}
.swagger-ui .opblock.opblock-delete .opblock-summary {
    border-color: #1a1e2e;
}


.swagger-ui .btn {
    background: #1a1e2e;
    color: #ffffff;
    border-color: #ffffff;
}

.swagger-ui .btn:hover {
    background: #252a3d;
}

.swagger-ui .btn.execute {
    background-color: #1a1e2e;
    border-color: #ffffff;
    color: #ffffff;
}

.swagger-ui .btn.authorize,
.swagger-ui .btn.authorize.locked,
.swagger-ui .btn.authorize.unlocked {
    background-color: #1a1e2e;
    border: 1px solid #ffffff;
    color: #ffffff;
}

.swagger-ui .btn.authorize svg,
.swagger-ui .btn.authorize.locked svg,
.swagger-ui .btn.authorize.unlocked svg {
    fill: #ffffff;
}


.swagger-ui .servers-title {
    color: #ffffff;
}

.swagger-ui .servers > label select {
    border-color: #ffffff;
    background: #1a1e2e;
    color: #ffffff;
}

.swagger-ui .servers-title {
    margin: 0;
}

.swagger-ui .scheme-container {
    background-color: #1a1e2e;
    border-bottom: 1px solid #333a52;
    box-shadow: none;
}

.swagger-ui .servers-title,
.swagger-ui .servers > label {
    color: #ffffff;
}

.swagger-ui .servers > label select {
    background-color: #1a1e2e;
    color: #ffffff;
    border: 1px solid #ffffff;
}


.swagger-ui .opblock-summary-description {
    color: #ffffff;
}

.swagger-ui .tab li.active {
    color: #ffffff;
}

.swagger-ui .servers-title {
    color: #ffffff;
}


.swagger-ui .opblock-tag {
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.swagger-ui .opblock-tag:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Corrigir o hover nos métodos (GET, POST, etc.) */
.swagger-ui .opblock .opblock-summary-method:hover,
.swagger-ui .opblock .opblock-summary-path:hover,
.swagger-ui .opblock .opblock-summary-description:hover,
.swagger-ui .opblock .opblock-summary-operation-id:hover,
.swagger-ui .opblock .opblock-summary-path__deprecated:hover {
    background-color: transparent !important;
}

/* Corrigir o botão de expansão quando hover */
.swagger-ui .opblock .opblock-summary-control:hover {
    background-color: #1a1e2e !important;
}

.swagger-ui .opblock {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}


.swagger-ui .model,
.swagger-ui .model-box,
.swagger-ui .model-container,
.swagger-ui section.models,
.swagger-ui section.models .model-container,
.swagger-ui section.models .model-box,
.swagger-ui .model-example,
.swagger-ui .models {
    background-color: #1a1e2e !important;
    color: #ffffff !important;
    border-color: #333a52 !important;
}


.swagger-ui .model-box .model .property,
.swagger-ui table.model,
.swagger-ui table.model tbody,
.swagger-ui table.model tr,
.swagger-ui table.model td {
    background-color: #1a1e2e !important;
    border-color: #333a52 !important;
}


.swagger-ui .model-box, 
.swagger-ui .model-box table, 
.swagger-ui .model-box tr, 
.swagger-ui .model-box td,
.swagger-ui .model-box div {
    background-color: #1a1e2e !important;
    border-color: #333a52 !important;
}

.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 99;
    top: 0;
    left: 0;
    background-color: #1a1e2e;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    box-shadow: 3px 0 5px rgba(0,0,0,0.2);
}

.sidebar a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 18px;
    color: white;
    display: block;
    transition: 0.3s;
    white-space: nowrap;
}

.sidebar a:hover {
    background-color: #252a3d;
}

.sidebar .close-btn {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
    color: white;
    cursor: pointer;
}

.sidebar-logo {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
    white-space: nowrap; 
}

.sidebar-logo img {
    max-width: 40%; 
    max-height: 100px;
    display: inline-block;
    vertical-align: middle;
}

.sidebar-logo img:first-child {
    margin-right: 0;
}

.sidebar-logo img:last-child {
    margin-left: -5px;
    filter: brightness(0) invert(1);
}

.sidebar.open {
    width: 250px;
}

.icon-transform .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.icon-transform .bar:nth-child(2) {
    opacity: 0;
}

.icon-transform .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.swagger-ui .info a {
    color: #7fb9ff;
}

.swagger-ui .info a:hover {
    color: #a0ceff;
}

.swagger-ui .opblock .opblock-summary-description {
    font-weight: 500;
}

.swagger-ui .opblock-description-wrapper p {
    color: #ffffff;
}

.swagger-ui .parameters-col_description input[type=text] {
    border: 1px solid #1a1e2e;
}

.swagger-ui .parameters-col_description input[type=text]:focus {
    border: 2px solid #1a1e2e;
}

.swagger-ui .expand-methods svg, .swagger-ui .expand-operation svg {
    fill: #ffffff;
    display: inline-block !important;
}


.swagger-ui table tbody tr td {
    color: #ffffff;
}

@media (max-width: 768px) {
    .sidebar {
        padding-top: 50px;
    }
    
    .sidebar a {
        font-size: 16px;
        padding: 6px 8px 6px 16px;
    }
    
    .sidebar-logo img {
        max-height: 80px;
    }
}

@media (max-width: 480px) {
    .menu-icon {
        padding: 0px;
    }
    
    .menu-icon .bar {
        width: 0%;
        height: 0%;
    }
    
    .swagger-ui .opblock-summary-method {
        min-width: 60px;
    }
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #252a3d;
}

::-webkit-scrollbar-thumb {
    background: #4a5375;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a6590;
}

/* Authorization Modal Styling */
.swagger-ui .dialog-ux .modal-ux {
    background-color: #1a1e2e !important;
    border: 1px solid #333a52 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.swagger-ui .dialog-ux .modal-ux-header {
    background-color: #252a3d !important;
    border-bottom: 1px solid #333a52 !important;
}

.swagger-ui .dialog-ux .modal-ux-header h3 {
    color: #ffffff !important;
}

.swagger-ui .dialog-ux .modal-ux-content {
    background-color: #1a1e2e !important;
    color: #ffffff !important;
}

.swagger-ui .auth-container {
    background-color: #1a1e2e !important;
    color: #ffffff !important;
}

.swagger-ui .auth-container h2,
.swagger-ui .auth-container h3,
.swagger-ui .auth-container p,
.swagger-ui .auth-container label,
.swagger-ui .auth-container .wrapper {
    color: #ffffff !important;
}

.swagger-ui .auth-btn-wrapper {
    background-color: #1a1e2e !important;
}

.swagger-ui .auth-btn-wrapper .btn {
    background-color: #1a1e2e !important;
    border: 1px solid #ffffff !important;
    color: #ffffff !important;
}

.swagger-ui .auth-btn-wrapper .btn:hover {
    background-color: #252a3d !important;
}

/* Input fields in authorization modal */
.swagger-ui .dialog-ux input[type=text],
.swagger-ui .dialog-ux input[type=password],
.swagger-ui .dialog-ux select {
    background-color: #252a3d !important;
    color: #ffffff !important;
    border: 1px solid #333a52 !important;
}

.swagger-ui .dialog-ux input[type=text]:focus,
.swagger-ui .dialog-ux input[type=password]:focus,
.swagger-ui .dialog-ux select:focus {
    border: 1px solid #ffffff !important;
}

/* Scopes section */
.swagger-ui .auth-container .scopes-container {
    background-color: #1a1e2e !important;
    border: 1px solid #333a52 !important;
}

.swagger-ui .auth-container .scopes-container h3,
.swagger-ui .auth-container .scopes-container p {
    color: #ffffff !important;
}

/* Auth scheme item */
.swagger-ui .auth-container .auth-container-title {
    background-color: #252a3d !important;
    color: #ffffff !important;
    border-color: #333a52 !important;
}

/* Close button */
.swagger-ui .dialog-ux .modal-ux-header .close-modal {
    background-color: transparent !important;
}

.swagger-ui .dialog-ux .modal-ux-header .close-modal svg {
    fill: #ffffff !important;
    display: block !important;
}

/* Add this to handle any form inputs in the authorization dialog */
.swagger-ui .auth-container input,
.swagger-ui .auth-container select {
    background-color: #252a3d !important;
    color: #ffffff !important;
    border: 1px solid #333a52 !important;
}


.swagger-ui .auth-container .authorization__btn {
    background-color: #252a3d !important;
    color: #ffffff !important;
    border-color: #333a52 !important;
}


.swagger-ui .auth-container > div,
.swagger-ui .auth-container > section {
    background-color: #1a1e2e !important;
    border-color: #333a52 !important;
}


.swagger-ui .auth-wrapper .authorize svg {
    fill: #ffffff !important;
    display: inline-block !important;
}


.swagger-ui .copy-to-clipboard {
    background-color: #1a1e2e !important;
    border-color: #333a52 !important;
}

.swagger-ui .copy-to-clipboard:hover {
    background-color: #252a3d !important;
}

.swagger-ui .copy-to-clipboard button {
    background-color: #1a1e2e !important;
    border-color: #333a52 !important;
}

.swagger-ui .copy-to-clipboard button:hover {
    background-color: #252a3d !important;
}