﻿/* ── Hide Swagger's built-in topbar ─────────────────────────── */
@import url('https://use.typekit.net/rdt5gjf.css');

body {
    color: #04005B;
    font-family: mundial;
}

/* keep swagger topbar alive and overlay it into the blue header area */
.swagger-ui .topbar {
    position: absolute !important;
    top: 0;
    right: 0;
    left: auto !important;
    height: 80px;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 32px 0 0 !important;
    margin: 0 !important;
    z-index: 3000;
    pointer-events: none;
}

    .swagger-ui .topbar .download-url-wrapper,
    .swagger-ui .topbar .urls,
    .swagger-ui .topbar select,
    .swagger-ui .topbar button,
    .swagger-ui .topbar label,
    .swagger-ui .topbar input {
        pointer-events: auto;
    }

    /* align selector and keep room for language button */
    .swagger-ui .topbar .download-url-wrapper,
    .swagger-ui .topbar .urls {
        display: flex !important;
        align-items: center;
        gap: 10px;
        margin-right: 90px !important; /* space for EN button */
    }

    /* style the swagger selector */
    .swagger-ui .topbar select {
        appearance: none;
        min-width: 210px;
        height: 40px;
        color: #111827 !important;
        border-radius: 10px;
        border: 1px solid rgba(255,255,255,0.25) !important;
        font-size: 14px;
        /*                -webkit-appearance: none;*/
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-size: 12px;
        background-position: right 12px center !important;
        padding: 0 24px 0 12px !important;
        box-shadow: none !important;
        outline: none !important;
    }

    /* label style */
    .swagger-ui .topbar label,
    .swagger-ui .topbar .select-label span {
        color: #ffffff !important;
        font-weight: 600;
        margin: 0 !important;
        white-space: nowrap;
    }


.swagger-ui .info .base-url,
.swagger-ui .info__base-path,
.swagger-ui .base-url {
    display: none !important;
}

.swagger-ui .info hgroup.main a {
    display: none !important;
}


/* DARK MODE FIX */
html.dark-mode .swagger-ui select {
    background-color: #ffffff !important;
    color: #111827 !important;
    background-position: right 12px center !important;
}

/* HEADER */
.precision-header {
    position: relative;
    top: 0;
    z-index: 2000;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    background: white;
}

.precision-header-inner {
    display: flex;
    align-items: stretch;
    min-height: 80px;
    overflow: visible;
}

.precision-logo-wrap {
    display: flex;
    align-items: center;
    padding: 0 24px 0 16px;
    flex-shrink: 0;
    background: white;
    position: relative;
    z-index: 2;
}

.precision-logo {
    height: auto;
    width: auto;
    max-height: 64px;
    max-width: 250px;
    display: block;
}

.precision-header-blue {
    flex: 1;
    background: #0a1e5e;
    clip-path: polygon(40px 0%, 100% 0%, 100% 100%, 0% 100%);
    margin-left: -1px;
    display: flex;
    align-items: center;
    overflow: visible;
}

.precision-header-blue-inner {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    padding: 0 32px 0 56px;
    overflow: visible;
}

/* swagger selector area */
.precision-swagger-dropdown-slot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.precision-swagger-moved {
    display: flex;
    align-items: center;
}

    .precision-swagger-moved .urls {
        display: flex !important;
        align-items: center;
        gap: 10px;
        margin: 0 !important;
    }

        .precision-swagger-moved .urls label,
        .precision-swagger-moved .download-url-wrapper label,
        .precision-swagger-moved .topbar-wrapper label {
            color: #ffffff !important;
            font-weight: 600;
            margin: 0 !important;
            white-space: nowrap;
        }

        .precision-swagger-moved .urls select,
        .precision-swagger-moved select {
            min-width: 190px;
            height: 40px;
            border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.28) !important;
            background: #ffffff !important;
            color: #111827 !important;
            padding: 0 36px 0 12px;
            font-size: 14px;
            font-weight: 600;
            outline: none;
            box-shadow: none !important;
            cursor: pointer;
        }
    .precision-swagger-moved .select-label span {
        margin-right: 10px;
    }

/* language button -------------------------------------------------*/
.ps-lang-wrap {
    position: relative;
    flex-shrink: 0;
}

.ps-lang-btn {
    display: inline-flex;
    align-items: center;
    margin-right:60px;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

    .ps-lang-btn:hover {
        background: rgba(255,255,255,0.08);
    }

.ps-lang-menu {
    position: fixed;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    min-width: 160px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    z-index: 999999;
    overflow: hidden;
}

.ps-lang-option {
    width: 100%;
    border: none;
    background: #fff;
    color: #111;
    text-align: left;
    padding: 10px 14px;
    cursor: pointer;
}

    .ps-lang-option:hover {
        background: #f5f5f5;
    }

.ps-hidden {
    display: none !important;
}






/*FOOTER --------------------------------------------------------------*/

.precision-footer {
    position: relative;
    margin-top: 40px;
    background: #0900FF;
/*    color: #ffffff;*/
    font-family: Arial, sans-serif;
}

.precision-footer-main {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    background: #0900FF;
}

.precision-footer-art {
    position: absolute;
    left: 0;
    bottom: 78px;
    width: 34%;
    height: 58%;
    pointer-events: none;
    opacity: 0.9;
    z-index: 1;
    display: block;
}

.precision-footer-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 48px 32px;
    margin-left: auto;
    margin-right: auto;
    align-items: start;
}

.precision-footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.precision-footer-brand {
    gap: 16px;
}

    .precision-footer-brand h2 {
        color: #fff;
        font-size: 1.5rem;
        font-weight: 600;
        line-height: 1.1;
        margin: 0;
        max-width: 360px;
    }

.precision-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #68F7FF;
    color: #04005B !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    width: fit-content;
    transition: background 0.2s ease, color 0.2s ease;
}

    .precision-footer-btn:hover {
        background: #ed1c24;
        color: #ffffff;
    }

.precision-footer-fastfrate {
    color: #68F7FF;
    font-size: 0.85rem;
    text-decoration: none;
    max-width: 360px;
    line-height: 1.6;
}

.precision-footer-col h4 {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 8px 0;
}

.precision-footer-col a {
    color: rgba(255,255,255,0.95);
    font-size: 0.85rem;
    text-decoration: none;
    line-height: 1.8;
}

    .precision-footer-col a:hover {
        color: #68F7FF;
    }

.precision-footer-socials {
    color: rgba(255,255,255,0.95);
    display: flex;
    gap: 16px;
    align-items: center;
}

    .precision-footer-socials a {
        color: rgba(255,255,255,0.95);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

.precision-footer-contact-block {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    line-height: 1.9;
}

    .precision-footer-contact-block p {
        margin: 0;
    }

.precision-footer-contact-head {
    font-weight: 600;
    color: #fff;
}

.precision-footer-contact-block-spaced {
    margin-top: 8px;
}

.precision-footer-bottom {
    background: #04005B;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.precision-fastfrate-logo {
    display: block;
    width: 150px;
    height: auto;
}

.precision-footer-copy {
    color: rgba(255,255,255,0.45);
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    min-width: 260px;
}

.precision-footer-bottom-right a {
    color: #fff;
    font-size: 0.85rem;
    text-decoration: none;
}

    .precision-footer-bottom-right a:hover {
        color: #68F7FF;
    }

@media (max-width: 991px) {
    .precision-footer-grid {
        grid-template-columns: 1fr;
    }

    .precision-footer-art {
        position: absolute;
        left: 0;
        bottom: 150px;
        pointer-events: none;
        opacity: 0.9;
        z-index: 1;
        display: block;
        width: 65%;
        height: 50%;
       
    }

    .precision-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .precision-footer-copy {
        text-align: left;
    }
}