﻿body {
    background-color: #0B0F1A;
    background-image: url('/img/imgbg-hex2.png');
    background-repeat: repeat;
    background-size: auto;
    background-attachment: fixed;
    background-position: center top;
    color: #F0F8FF;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
}

@font-face {
    font-family: 'MinhaFonteCyberpunk';
    src: url('/fonts/Zerowax-yYGam.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MinhaFonteFuturista';
    src: url('/fonts/GardionDemo-rveyK.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.grid-layout {
    display: flex;
    flex-wrap: wrap;
    padding: 2rem;
    gap: 2rem;
    flex-direction: row-reverse; /* mantém API à direita */
    max-width: 1200px;
    margin: 0 auto; /* centraliza */
    align-items: flex-start;
    justify-content: space-between;
}

.grid-wrapper {
    background-color: #00060c;
    padding: 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    margin-top: 50px;
}

.swagger-sim {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    overflow-x: hidden; /* importante */
}

.endpoint-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.endpoint {
    background: transparent;
    color: #00CED1;
    border: 1px solid #00CED1;
    padding: 0.5rem;
    font-weight: bold;
    text-align: left;
    transition: background-color 0.3s;
}

    .endpoint:hover {
        background-color: #00CED1;
        color: #0B0F1A;
        box-shadow: 0 0 15px #00CED1;
    }


    .endpoint.active {
        background-color: #00CED1;
        color: #0B0F1A;
    }
/*.tab-button {
    background: #00CED1;
    color: #0B0F1A;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}    */
.tab-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 500px;
   
}
.tab-content {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    position: absolute;
    width: 100%;
    
    display: none;
}

    .tab-content.active {
        opacity: 1;
        pointer-events: auto;
        position: relative;
        display: block;
    }
.tab-header {
    display: flex;
    flex-wrap: nowrap; /* Impede quebra de linha */
    overflow-x: auto; /* Permite scroll se necessário */
    justify-content: flex-start;
    gap: 8px;
    padding: 12px;
    scrollbar-width: none; /* Firefox */
}

    .tab-header::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }


.tab-button {
    background: transparent;
    color: #00CED1;
    border: 1px solid #00CED1;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
    
}

    .tab-button.active {
        background-color: #00CED1;
        color: #0B0F1A;
    }
.execute {
    background: #00CED1;
    color: #0B0F1A;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
    .execute:hover {
        background-color: #22d3ee;
        box-shadow: 0 0 15px #00CED1;
    }
    .execute.loading {
        background-color: #005f60;
        animation: pulse 1s infinite;
    }

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.executor {
    margin-top: 2rem;
    background: #061929;
    padding: 1rem;
    border-radius: 8px;
}

.curl-box {
    font-family: monospace;
    background-color: #000;
    padding: 0.5rem;
    color: #00FFFF;
    margin-bottom: 1rem;
}

.response {
    margin-top: 1rem;
}

.code {
    font-weight: bold;
    color: #00FF88;
}

.code-code-Curl {
    font-weight: bold;
    color: #00FF88;
}

.code-code-Curl-soap {
    font-weight: bold;
    color: #00FF88;
}

.json-box {
    background: #000;
    padding: 1rem;
    font-family: monospace;
    color: #0ff;
    white-space: pre; /* mantém formatação */
    overflow-x: auto;
    overflow-y: auto;
    max-height: 300px;
    width: 100%;
    box-sizing: border-box;
    display: block;
    border-radius: 6px;
    border: 1px solid #00CED1;
}
    .json-box::-webkit-scrollbar {
        height: 10px;
    }

    .json-box::-webkit-scrollbar-thumb {
        background-color: #00ffff88;
        border-radius: 6px;
    }



.perfil-box {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    text-align: center;
}

.foto-perfil {
    width: 100%;
    border-radius: 50%;
    max-width: 150px;
    margin-bottom: 1rem;
    box-shadow: 0 0 10px #00CED1;
}

.nome {
    font-family: 'MinhaFonteCyberpunk', sans-serif;
    font-size: 2rem;
    color: #00FFFF;
}

.TituloCyber {
    font-family: 'MinhaFonteFuturista', sans-serif;  
}

.bio {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: justify;
    color: #F0F8FF;
}

.social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-icon {
    width: 32px;
    height: 32px;
    margin-right: 0.5rem;
    object-fit: contain;
    opacity: 0.8;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

    .social-icon:hover {
        opacity: 1;
        transform: scale(1.1);
    }

    .social-icon.active {
        opacity: 1;
        border: 2px solid #00ffff;
        box-shadow: 0 0 8px #00ffff44;
        background-color: #121d2b;
    }

.curriculo-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #00ffff;
    border-radius: 6px;
    text-decoration: none;
    background-color: transparent;
    transition: background-color 0.2s ease;
}

    .curriculo-inline:hover {
        background-color: #00ffff11;
    }

.download-icon {
    width: 32px;
    height: 32px;
}

.download-label {
    color: #00ffff;
    font-size: 13px;
    font-weight: bold;
}

#form-contato {
    z-index: 99;
    position: relative;
}

.contato {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 2rem;
}

textarea.mensagem {
    width: 100%;
    height: 100px;
    background-color: #1A1A1A;
    color: #F0F8FF;
    border: 1px solid #00CED1;
    padding: 0.75rem;
    border-radius: 5px;    
    resize: vertical;
    font-family: 'Segoe UI', sans-serif;
    margin-top: 1rem;
}

.linguagens-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    margin-bottom: 12px;
}

    .linguagens-selector .ling-label {
        color: #ffffff;
        font-size: 14px;
        font-weight: bold;
        margin-right: 10px;
    }

.ling-icon-soap {
    width: 50px;
    height: 50px;
    cursor: pointer;
    opacity: 0.7;
    transition: transform 0.2s ease, opacity 0.2s ease;
    border-radius: 6px;
}

    .ling-icon-soap:hover {
        opacity: 1;
        transform: scale(1.1);
    }

    .ling-icon-soap.active {
        opacity: 1;
        border: 2px solid #00ffff;
        box-shadow: 0 0 8px #00ffff44;
        background-color: #121d2b;
    }

.ling-icon {
    width: 50px;
    height: 50px;
    cursor: pointer;
    opacity: 0.7;
    transition: transform 0.2s ease, opacity 0.2s ease;
    border-radius: 6px;                                           
}

    .ling-icon:hover {
        opacity: 1;
        transform: scale(1.1);
    }

    .ling-icon.active {
        opacity: 1;
        border: 2px solid #00ffff;
        box-shadow: 0 0 8px #00ffff44;
        background-color: #121d2b;
    }
.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.btn-clipboard {
    border: none;
    border-radius: 6px;
    text-decoration: none;
    background-color: transparent;
    transition: background-color 0.2s ease;
    cursor: pointer;
    margin-left: auto;
    padding: 0;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    color: #00ffff;
    font-size: 42px;
    font-weight: bold;
}

    .btn-clipboard:hover {
        opacity: 1;
    }

    .btn-clipboard img {
        width: 48px;
        height: 48px;
    }


.code-soap-curl {
    background: #000;
    padding: 1rem;
    font-family: monospace;
    color: #c4f0ff;
    white-space: pre; /* mantém formatação */
    overflow-x: auto;
    overflow-y: auto;
    max-height: 300px;
    width: 100%;
    box-sizing: border-box;
    display: block;
    border-radius: 6px;
    border: 1px solid #00CED1;
}

    .code-soap-curl::-webkit-scrollbar {
        height: 10px;
    }

    .code-soap-curl::-webkit-scrollbar-thumb {
        background-color: #00ffff88;
        border-radius: 6px;
    }

.code-curl {
    background: #000;
    padding: 1rem;
    font-family: monospace;
    color: #c4f0ff;
    white-space: pre; /* mantém formatação */
    overflow-x: auto;
    overflow-y: auto;
    max-height: 300px;
    width: 100%;
    box-sizing: border-box;
    display: block;
    border-radius: 6px;
    border: 1px solid #00CED1;
}
    .code-curl::-webkit-scrollbar {
        height: 10px;
    }

    .code-curl::-webkit-scrollbar-thumb {
        background-color: #00ffff88;
        border-radius: 6px;
    }

.send {
    background: #00CED1;
    border: none;
    padding: 0.5rem;     
    cursor: pointer;
    color: #0B0F1A;
    border-radius: 5px;
}
    .send:hover {
        background-color: #22d3ee;
        box-shadow: 0 0 15px #00CED1;
    }
    .send:disabled {
        opacity: 0.6;
        cursor: wait;
    }

    .send::after {
        content: "";
        display: inline-block;
        margin-left: 8px;
        width: 16px;
        height: 16px;
        border: 2px solid transparent;
        border-top: 2px solid #00CED1;
        border-radius: 50%;
        animation: spin 0.7s linear infinite;
        vertical-align: middle;
    }

    .send:not(:disabled)::after {
        content: none;
    }
.contato-campos input {
    background-color: #1A1A1A;
    color: #F0F8FF;
    border: 1px solid #00CED1;
    padding: 0.75rem;
    border-radius: 5px;
    font-family: 'Segoe UI', sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.contato-campos {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==========================
   Seção: Tecnologias
   ========================== */
.app-Tec-section {
    background-color: #00060c;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 50px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

    .app-Tec-section h2 {
        color: #00FFFF;
        text-align: center;
        margin-bottom: 1.5rem;
        font-size: 1.5rem;
        /font-weight: bold;
    }

    /* Ícones */
    .app-Tec-section img {
        max-width: 100%;
        max-height: 64px;
        width: auto;
        height: auto;
        object-fit: contain;
        transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
        opacity: 0.85;
        border-radius: 5px;
        box-shadow: 0 0 10px #00CED1;
    }

        .app-Tec-section img:hover {
            transform: scale(1.1);
            opacity: 1;
        }


    /* Label dos ícones */
    .app-Tec-section span {
        color: #F0F8FF;
        font-size: 0.85rem;
        margin-top: 0.5rem;
        text-align: center;
    }

    /* Swiper (ajuste de setas e paginação) */
    .app-Tec-section .swiper-button-next,
    .app-Tec-section .swiper-button-prev {
        color: #00CED1;
        transition: transform 0.2s ease;
    }

        .app-Tec-section .swiper-button-next:hover,
        .app-Tec-section .swiper-button-prev:hover {
            transform: scale(1.2);
            text-shadow: 0 0 10px #00CED1;
        }

    .app-Tec-section .swiper-pagination-bullet {
        background: #00CED1;
        opacity: 0.5;
    }

    .app-Tec-section .swiper-pagination-bullet-active {
        background: #00FFFF;
        opacity: 1;
        box-shadow: 0 0 6px #00CED1;
    }
    /* Garantir que os ícones fiquem lado a lado */
    .app-Tec-section .swiper-slide .grid {
        display: flex;
        flex-wrap: wrap; /* permite quebrar linha se precisar */
        justify-content: center; /* centraliza horizontalmente */
        gap: 2rem; /* espaço entre os ícones */
    }

        /* Cada item (ícone + label) */
        .app-Tec-section .swiper-slide .grid > div {
            display: flex;
            flex-direction: column;
            align-items: center;
            min-width: 80px; /* garante largura mínima por item */
        }
.dashboard {
    width: 100%;
}
.dashboard h2 {
    text-align: center;
    color: #00FFFF;
    font-size: 1.9rem;
    
    margin-bottom: 2rem;
    
}

.dashboard-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background-color: #061929;
    border-radius: 8px;
    padding: 1rem;
    flex: 1 1 100%;
}

    .card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        color: #c4f0ff;
    }

.half {
    flex: 1 1 calc(50% - 0.75rem);
}

.third {
    flex: 1 1 calc(33.333% - 1rem);
}

.full {
    flex: 1 1 100%;
}

#mapContainer {
    width: 100%;
    height: 360px;
    background-color: #0f172a;
}

#mapContainer {
    width: 100%;
    height: 360px;
    background-color: #0f172a;
    max-width: 100%;
    margin: auto;
}

@media (max-width: 768px) {
    #mapContainer {
        height: 300px;
    }
}
#apiChart {
    min-height: 300px;
}


#restChart,
#soapChart,
#mcpChart {
    height: 300px !important;
}

@media (max-width: 768px) {
    #restChart,
    #soapChart,
    #mcpChart {
        height: 120px !important;
    }

    #apiChart {
        min-height: 200px; /* ou 200px se quiser maior impacto */
    }
}

/* Gráficos por endpoint devem respeitar o container e reduzir fonte em mobile */
.chart-container {
    width: 100%;
    overflow-x: auto;
}

    .chart-container canvas {
        width: 100% !important;
        height: 280px !important;
    }

@media (max-width: 768px) {
    .chart-container canvas {
        height: 180px !important;
    }
}





/* Grid responsivo */
@media (max-width: 768px) {
    .app-Tec-section .grid {
        grid-template-columns: repeat(3, 1fr); /* 3 ícones por linha */
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .app-Tec-section .grid {
        grid-template-columns: repeat(2, 1fr); /* 2 ícones no mobile menor */
        gap: 1rem;
    }
}


@media (max-width: 600px) {
    .contato-campos input {
        flex: 1 1 100%;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}



@media (max-width: 992px) {
    .grid-wrapper {
        margin: 0 auto;
        padding: 0;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        justify-content: flex-start;
        flex-direction: column;
        flex: 1;
        margin-top: 50px;
    }

    .grid-layout {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
        max-width: 100%;
        gap: 1rem;
    }

    .perfil-box,
    .swagger-sim {             
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
        flex: unset;
    }
    .perfil-box {
        order: 1;
    }

    .ordem-Tec-bloco {
        order: 2;
    }

    .swagger-sim {
        order: 3;
    }

    .dashboard {
        order: 4;
    }

    .lda-section {
        order: 5;
    }

    .ordem-app-bloco {
        order: 6;
    }

    .ordem-fluxo {
        order: 7;
        width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .ordem-fluxo-geral {
        order: 8;
    }
   
}

/* --- Swiper: ocupar 100% e não travar largura --- */
.app-Tec-section .swiper {
    width: 100%;
    max-width: 100%;
}

.app-Tec-section .swiper-wrapper {
    width: 100%;
}

.app-Tec-section .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
}

    /* --- Itens lado a lado dentro do slide --- */
    .app-Tec-section .swiper-slide .grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }

        .app-Tec-section .swiper-slide .grid > div {
            display: flex;
            flex-direction: column;
            align-items: center;
            min-width: 80px;
        }

/* --- Icones (desktop base) --- */
.app-Tec-section img {
    max-width: 64px;
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform .2s ease, opacity .2s ease;
    opacity: .85;
}

/* =========================
   RESPONSIVO (MOBILE)
   ========================= */

/* Tablet e abaixo */
@media (max-width: 768px) {
    .app-Tec-section {
        padding: 1.25rem; /* menos padding */
    }

        .app-Tec-section h2 {
            font-size: 1.25rem; /* título menor */
            margin-bottom: 1rem;
        }

        .app-Tec-section .swiper-slide .grid {
            gap: 1.25rem; /* menos espaço entre itens */
        }

            .app-Tec-section .swiper-slide .grid > div {
                min-width: 72px;
            }

        .app-Tec-section img {
            max-width: 52px; /* ícones menores */
            max-height: 52px;
        }

        .app-Tec-section .swiper-button-next,
        .app-Tec-section .swiper-button-prev {
            transform: scale(.85); /* setas menores */
        }
}

/* Telefone pequeno */
@media (max-width: 480px) {
    .app-Tec-section {
        padding: 1rem;
    }

        .app-Tec-section h2 {
            font-size: 1.1rem;
            margin-bottom: .75rem;
        }

        .app-Tec-section .swiper-slide .grid {
            gap: .9rem;
        }

            .app-Tec-section .swiper-slide .grid > div {
                min-width: 64px;
            }

        .app-Tec-section img {
            max-width: 44px; /* ainda menor no very small */
            max-height: 44px;
        }
        /* Opcional: esconder setas em telas muito pequenas */
        .app-Tec-section .swiper-button-next,
        .app-Tec-section .swiper-button-prev {
            display: none;
        }
}

/* Bullets menores em telas menores */
@media (max-width: 768px) {
    .app-Tec-section .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
        margin: 0 3px !important;
    }
}

