﻿/* Variables */
:root {
    --wt-container-color: #F5F5F5;
    --wt-accent-color: #F8981D;
    --wt-scrollbar-color: #AAAAB9;
    --wt-swagger-container-background: #F5F5F5;
    --wt-container-background: hsla(0,0%,100%,.8);
    --wt-background-glass: rgba(255, 255, 255, 0.5019607843);
}

/* Globals */
html {
    box-sizing: border-box;
    overflow: hidden;
    overflow-y: hidden;
}

*,
*:before,
*:after {
    box-sizing: inherit;
    font-family: 'Poppins', sans-serif !important;
}

body {
    margin: 0;
    background: url(./background.jpg) no-repeat;
    background-size: cover;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px;
}

/* Top bar */
.swagger-ui .wrapper {
    max-width: none !important;
}

.swagger-ui .topbar .topbar-wrapper {
    padding-left: 14px;
}

.swagger-ui .topbar-wrapper .link img {
    background: url(./logo.png) no-repeat;
    background-size: contain;
    display: block;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%; /* Width of new image */
    height: 32px; /* Height of new image */
    padding-left: 100%; /* Equal to width of new image */
}

.swagger-ui .topbar {
    background-color: var(--wt-background-glass);
    backdrop-filter: blur(10px);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

    .swagger-ui .topbar .download-url-wrapper {
        display: none !important;
    }

    .swagger-ui .topbar a {
        max-width: 150px !important;
        cursor: pointer !important;
    }

/* Scheme and Actions */
#swagger-ui {
    flex: 1;
    width: calc(100% - 250px);
}

.swagger-ui .scheme-container {
    background: transparent;
    box-shadow: none !important;
    padding-top: 0;
    padding-bottom: 20px;
    margin: 0;
}

.swagger-ui .info {
    margin: 0;
    margin-top: 14px;
}

    .swagger-ui .info .title {
        font-size: 2em;
        color: black;
    }

        .swagger-ui .info .title small {
            display: none !important;
        }

            .swagger-ui .info .title small.version-stamp {
                display: none !important;
            }

.swagger-ui .opblock-tag {
    transition: none !important;
}

    .swagger-ui .opblock-tag:hover {
        background: none !important;
        border-bottom: 2px solid var(--wt-accent-color);
    }

.swagger-ui.swagger-container .swagger-ui {
    margin-top: 52px;
    overflow-y: auto;
    height: calc(100vh - 52px);
    scrollbar-color: var(--wt-scrollbar-color) transparent;
    background-color: var(--wt-swagger-container-background);
    border-top-left-radius: 5px;
}

.information-container wrapper {
    margin-top: -20px;
}

.swagger-ui .model-box-control:focus, .swagger-ui .models-control:focus, .swagger-ui .opblock-summary-control:focus {
    outline: none !important;
}

.swagger-ui .scheme-container .schemes .auth-wrapper .authorize {
    background-color: var(--wt-container-background) !important;
}

.swagger-ui .opblock-tag {
    font-size: 1.3em;
    padding-bottom: 4px;
}

.swagger-ui .opblock .opblock-summary-path {
    font-size: 1em;
}

.swagger-ui .opblock .opblock-summary-description {
    font-size: 12px;
}

.swagger-ui .parameter__name {
    font-size: 1em;
}

.swagger-ui .table-container {
    padding-bottom: 10px;
}

.swagger-ui .execute-wrapper {
    padding-top: 0;
}

.swagger-ui .btn.execute {
    background-color: var(--wt-accent-color);
    border: none;
    border-radius: 4px;
}

.swagger-ui table tbody tr td {
    width: 1px;
    white-space: nowrap;
}

.swagger-ui .parameters-col_description {
    padding-left: 12px;
}

    .swagger-ui .parameters-col_description input {
        max-width: none;
    }

/* Side bar */
.side-bar {
    width: 250px;
    min-width: 250px;
    height: 100vh;
    padding-top: 52px;
    color: white;
}

aside {
    color: black;
    width: 250px;
    height: 100%;
    background-color: var(--wt-background-glass);
    backdrop-filter: blur(10px);
    padding-left: 5px;
    display: flex;
    flex-direction: column;
}

    aside a {
        color: black;
        display: block;
        padding: 8px;
        padding-left: 30px;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }

        aside a:hover {
            color: black;
            outline: none;
            position: relative;
            background: var(--wt-container-color);
            border-left: 6px solid var(--wt-accent-color);
            padding-left: 24px;
        }

        aside a.active {
            color: black;
            font-weight: bold;
            outline: none;
            position: relative;
            background: var(--wt-container-color);
            border-left: 6px solid var(--wt-accent-color);
            padding-left: 24px;
        }

    aside p {
        margin: 0;
        padding: 40px 0;
    }

.side-title {
    color: black;
    font-size: 16px;
    font-weight: bold;
    display: block;
    padding-left: 30px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    padding-top: 18px;
    font-size: 16px;
}

.side-divider {
    margin-left: 8px;
    margin-right: 8px;
}

#wt-side-content {
    overflow-y: auto;
    scrollbar-color: var(--wt-scrollbar-color) transparent;
    scrollbar-width: thin;
}

aside:after {
    content: "";
    position: absolute;
    background-color: transparent;
    top: 0px;
    right: -10px;
    height: 5px;
    width: 10px;
    border-top-left-radius: 5px;
    box-shadow: -5px 0px 0px 0px #E2E4DE;
}

/* Home page */
#wt-home {
    display: none;
    flex-direction: column;
    margin-top: 52px;
    padding-left: 20px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    background-color: var(--wt-swagger-container-background);
}

.wt-home-title {
    margin-top: 16px;
}

/* Modal */
.swagger-ui .dialog-ux .modal-ux-content {
    background-color: var(--wt-container-background);
}

.swagger-ui .auth-btn-wrapper {
    justify-content: flex-start;
    gap: 8px;
}
