@media (prefers-color-scheme: dark) {


    body {
        color: #b0b0b0;
        background-color: rgb(28, 36, 47);
    }

    ::-webkit-scrollbar {
        width: 14px;
    }

    ::-webkit-scrollbar-thumb {
        border: 3px solid rgba(0, 0, 0, 0);
        background-clip: padding-box;
        border-radius: 9999px;
        background-color: rgba(73, 144, 226, 0.3);
    }

    ::-webkit-scrollbar-thumb:hover {
        background-color: rgba(73, 144, 226, 0.6);
    }

    ::-webkit-scrollbar-thumb:active {
        background-color: rgb(73, 144, 226);
    }


    .swagger-ui {
        & h1, & h2, & h3, & h4, & h5, & p, & li, & td, & th, & div {
            color: ghostwhite !important;
        }

        & textarea {
            background: rgba(0, 0, 0, 0.2);
            color: ghostwhite;

            &.curl {
                color: ghostwhite;
                background: rgba(0, 0, 0, 0.2);
            }
        }

        #warning {
            color: #ff6060;
        }

        #information {
            color: #ffbc6a;
        }

        #highlight {
            color: #4990e2;
        }

        .view-line-link {
            &.copy-to-clipboard {
                background: #4990e2;
                color: ghostwhite;
                border-radius: 8px;

                &:hover {
                    background: rgba(0, 0, 0, 0.1);
                }
            }
        }

        .curl-command {
            .copy-to-clipboard {
                background: #4990e2;
                color: ghostwhite;
                border-radius: 8px;
                padding: 4px;
                width: 30px;
                height: 30px;
                bottom: 36px;
                right: -10px;

                &:hover {
                    background: rgba(255, 255, 255, 0.50);
                }
            }
        }


        .highlight-code {
            .copy-to-clipboard {
                background: #4990e2;
                color: ghostwhite;
                border-radius: 8px;

                &:hover {
                    background: rgba(0, 0, 0, 0.1);
                }
            }
        }

        .info {
            & details {
                & summary {
                    background: rgba(73, 144, 226, 0.33);
                    color: #cfcfd5;
                    box-shadow: rgba(237, 237, 237, 0.25) 0 3px 12px,
                    rgba(0, 0, 0, 0) 0 0 0 inset;

                    &:hover {
                        color: ghostwhite;
                        background: rgba(73, 144, 226, 0.66);
                        box-shadow: rgba(237, 237, 237, 0.66) 0 0 4px,
                        rgba(0, 0, 0, 0) 0 0 1px inset;
                    }

                    &:active {
                        background: rgb(73, 144, 226);
                        color: ghostwhite;
                        box-shadow: rgba(101, 0, 94, 0.16) 0 0 0,
                        rgba(255, 255, 255, 1) 0 0 4px inset;
                    }
                }

                #authentication {
                    box-shadow: rgba(237, 237, 237, 0.3) 0 0 12px;
                    background: rgba(73, 144, 226, 0.20);
                }
            }
        }

        .expand-operation {

            :is(svg) {
                fill: ghostwhite !important;
            }
        }

        .auth-container {
            .errors {
                background-color: #ff6060;
            }

            & input {
                background: rgb(28, 36, 47);
                transition: background 150ms ease-in,
                border 400ms ease;
                color: ghostwhite;

                &:focus {
                    border: 1px solid #49cc90;
                    outline: none;
                    background: #49cc9044;
                }

                &:hover {
                    background: #49cc9044;
                }
            }

            & input[disabled] {
                &:hover {
                    background: #fafafa;
                }
            }
        }

        .btn {
            box-shadow: 0 0 8px rgba(255, 255, 255, 0.3),
            inset 0 0 0 rgba(0, 0, 0, 0);

            &.authorize {
                background-image: linear-gradient(
                        145deg,
                        #85ea2d 10%,
                        #49cc90 56%
                );
                box-shadow: rgba(255, 255, 255, 0.5) 0 2px 16px,
                rgba(0, 0, 0, 0) 0 0 1px inset;

                &:before {
                    background-image: linear-gradient(
                            215deg,
                            rgb(73, 204, 193) 35%,
                            #49cc90 70%
                    );
                }

                &:hover {
                    text-shadow: 0 1px 10px rgb(0, 255, 139);
                    box-shadow: 0 0 8px rgb(0, 255, 139),
                    rgba(0, 0, 0, 0) 0 0 1px inset;
                }

                &:active {
                    box-shadow: 0 0 0 rgb(0, 0, 0),
                    rgba(255, 255, 255, 0) 0 0 0 inset;

                    &:before {
                        box-shadow: 0 0 0 rgb(0, 255, 139),
                        rgba(255, 255, 255, 1) 0 0 12px inset;
                    }
                }
            }

            &:hover {
                box-shadow: 0 0 10px rgba(133, 133, 133, 0.5);
            }

            &:active {
                box-shadow: 0 0 0 rgba(133, 133, 133, 0.5),
                inset 0 0 12px rgba(255, 255, 255, .7);
            }
        }

        .parameters-col_description {
            & input {
                background: rgb(28, 36, 47);
                color: ghostwhite;
                border: 1px solid #969696;

                &:focus {
                    border: 1px solid #4990e2;
                    outline: none;
                    background: #4990e244;
                }

                &:hover {
                    background: #4990e244;
                }
            }

            & input[disabled] {
                border: 1px solid #969696;
                color: grey;

                &:hover {
                    background: rgb(28, 36, 47);
                }
            }

            & select {
                box-shadow: rgba(0, 0, 0, 0.12) 0 1px 3px, rgba(0, 0, 0, 0.24) 0 1px 2px;
                padding: 8px;
            }
        }

        & label {
            color: ghostwhite
        }

        .dialog-ux {
            :is(svg) {
                fill: ghostwhite;
            }


            .btn.authorize {
                box-shadow: 0 0 8px rgba(255, 255, 255, 0.3) !important;

                &:hover {
                    box-shadow: 0 0 8px rgb(0, 255, 139);

                }
            }

            .modal-ux {
                background-color: rgb(28, 36, 47);
                box-shadow: 0 0 8px rgba(133, 133, 133, 0.5);

                :is(code) {
                    color: #49cc90;
                }
            }
        }

        .filter {
            .operation-filter-input {
                background: rgb(17, 22, 31);
                color: ghostwhite;
            }
        }


        .model-box {
            background: rgba(0, 0, 0, 0.2) !important;

            .model {
                color: ghostwhite;

                & table {
                    & tr {
                        border-bottom: rgba(255, 255, 255, 0.2) 1px dashed;

                        & p {
                            color: #ecdeb3 !important;
                            font-weight: 700;
                        !important;
                        }

                        & li {
                            color: #f6f5de !important;
                            font-weight: 100 !important;
                        }
                    }

                    & tr:last-child {
                        border-bottom: none !important;
                    }
                }

                .model-title {
                    color: #49cc90 !important;
                }

                .property {
                    &.primitive {
                        color: ghostwhite;
                    }
                }

                .prop-type {
                    color: #4990e2;
                }

                .model-toggle:after {
                    background: url("data:image/svg+xml;charset=utf-8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\"><path style=\"fill:%23FAFAFF\" d=\"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\"/></svg>") 50% no-repeat !important;
                }
            }
        }

        
        .opblock {
            .opblock-section-header {
                background: hsla(0, 0%, 20%, 0.2);
                border-bottom: none;
            }

            .opblock-summary-get .opblock-summary-path {
                color: #88bbde;

                .bracket-highlight {
                    color: #DEAB87;
                }
            }

            .opblock-summary-post .opblock-summary-path {
                color: #b7d7a5;

                .bracket-highlight {
                    color: #D6A5BA;
                }
            }

            .opblock-summary-put .opblock-summary-path {
                color: #dac6a7;

                .bracket-highlight {
                    color: #A7D3D9;
                }
            }

            .opblock-summary-delete .opblock-summary-path {
                color: #daa7a7;

                .bracket-highlight {
                    color: #AAD9A7;
                }
            }

            .opblock-summary-patch .opblock-summary-path {
                color: #88deaa;

                .bracket-highlight {
                    color: #DE87A9;
                }
            }

            .opblock-summary-description {
                color: #AAAAAA;
            }

            :is(svg) {
                fill: #FAFAFA;
            }
        }

        .opblock-body {

            & pre.microlight {
                border-radius: 6px;
                color: ghostwhite;
                background: rgba(0, 0, 0, 0.2);
            }

            .download-contents {
                color: ghostwhite;
            }


            & textarea {
                background: rgba(0, 0, 0, 0.2);

                &:focus {
                    background: rgba(0, 0, 0, 0.1);
                }
            }
        }

        .markdown code, .renderedMarkdown code {
            background: rgba(112, 112, 112, 0.2);
            color: #49cc90;
            padding: 2px 8px 2px 8px;
        }

        .tab {
            .tabitem {
                &:hover {
                    box-shadow: 0 0 8px rgba(133, 133, 133, 0.5);
                }
            }

            .active {
                box-shadow: 0 0 8px rgba(133, 133, 133, 0.5);
            }
        }

        .topbar {
            background: #1C242FFF;

            :is(img) {
                background: white;
                box-shadow: rgba(255, 255, 255, 0.3) 0 3px 6px, rgba(255, 255, 255, 0.23) 0 3px 6px !important;
            }

            .download-url-wrapper .select-label span {
                color: #fafafa;
            }
        }

        .prop-format {
            color: #49cc90;
        }
    }
}
