/* RESET E BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #F7F9F6;



    color: #232323;
    line-height: 1.6;
    overflow-x: hidden;
}

/* DARK MODE */
/* -----------------------------------------------------
   MODO ESCURO — VISUAL MODERNO + CORES COERENTES
------------------------------------------------------*/

body.dark-mode {
    background: linear-gradient(135deg, #0b0b0b 0%, #181818 100%);
    color: #e8e8e8;
}

/* Conteúdo principal */
body.dark-mode .texto {
    background: #1f1f1f;
    color: #eaeaea;
    border-radius: 8px;
    transition: background 0.3s ease;
}

/* Detalhes */
body.dark-mode details summary {
    background-color: #1a1a1a;
    border-radius: 6px;
}

/* Títulos com cor verde temática */
body.dark-mode .detalhe-titulo {
    color: #3b8f45; /* tom mais elegante e contrastante */
}

body.dark-mode .texto h1,
body.dark-mode .texto h2,
body.dark-mode .texto h3,
body.dark-mode .texto h4 {
    letter-spacing: 0.5px;
    color: #3b8f45;
}

body.dark-mode .texto .projeto-item h2,
body.dark-mode .card-atalho h2 {
    color: #fff;
}

/* Header e footer */
body.dark-mode header,
body.dark-mode footer {
    background: linear-gradient(135deg, #080f0c, #1c3f28);
    border-bottom: 1px solid #222;
}

/* Header e footer */
body.dark-mode nav ul li a::after {
    background: #3a6b3e;
}

/* Cards */
/* MODO ESCURO — cinza escuro elegante */
body.dark-mode .card-atalho {
    background: linear-gradient(135deg, #1e221e, #262c28); 
    /* Exatamente o estilo que você pediu */

    box-shadow:
        0 3px 6px rgba(0, 0, 0, 0.4);  /* sombra leve e natural */
    transition:
        transform 0.25s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;
}

/* HOVER — sutil, sofisticado, sem exagero */
body.dark-mode .card-atalho:hover {
    transform: translateY(-4px);

    background: linear-gradient(135deg, #262b28, #3a443e);
    /* Uma versão apenas UM TOM acima, consistente */

    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.5);
}

body.dark-mode .texto .projetos li {
    background: linear-gradient(135deg, #2a2f2c, #373e3a);
}

/* Navegação */
body.dark-mode nav ul li a {
    color: #ffffff;
}

/* Tabelas (conteúdo) */
body.dark-mode .texto table {
    background-color: #161616;
    color: #e6e6e6;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

body.dark-mode .texto th {
    background-color: #222;
    color: #fff;
}

body.dark-mode .texto tbody tr:nth-child(even) {
    background-color: #1d1d1d;
}

/* -----------------------------------------------------
   CHAT (ASSISTENTE) — APARÊNCIA MAIS POLIDA
------------------------------------------------------*/

body.dark-mode #chatHeader {
  background: #141414;
  border-top: 1px solid #242424;
}

body.dark-mode #chatBody {
  background: #0a0a0a;
  color: #f1f1f1;
}

body.dark-mode #chatForm {
  background: #141414;
  border-top: 1px solid #242424;
}

body.dark-mode #chatInput {
  background: #222;
  color: #fff;
  border: 1px solid #333;
  border-radius: 6px;
}

/* Mensagens do assistente */
body.dark-mode .assistant {
  background: #1b1b1b;
  color: #f1f1f1;
  border: 1px solid #262626;
  box-shadow: 0 1px 4px rgba(255, 255, 255, 0.05);
}

/* -----------------------------------------------------
   TABELAS DENTRO DO CHAT  
------------------------------------------------------*/

body.dark-mode .assistant .markdown-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #262626;
  border-radius: 8px;
  background: #141414;
  box-shadow: 0 1px 4px rgba(255, 255, 255, 0.06);
  margin: 1.2em 0;
  font-size: 0.92rem;
  overflow-x: auto;
}

/* Cabeçalho */
body.dark-mode .assistant .markdown-body table thead {
  background-color: #242424;
  color: #3b8f45;
  font-weight: 600;
}

/* Células */
body.dark-mode .assistant .markdown-body table th,
body.dark-mode .assistant .markdown-body table td {
  padding: 0.75em 1em;
  border-bottom: 1px solid #2f2f2f;
  vertical-align: middle;
}

/* Linhas alternadas */
body.dark-mode .assistant .markdown-body tbody tr:nth-child(even) {
  background-color: #1b1b1b;
}

/* Hover */
body.dark-mode .assistant .markdown-body tbody tr:hover {
  background-color: #292929;
  transition: background 0.2s ease;
}

/* Scrollbar custom */
body.dark-mode .assistant .markdown-body table::-webkit-scrollbar {
  height: 8px;
}

body.dark-mode .assistant .markdown-body table::-webkit-scrollbar-thumb {
  background-color: #444;
  border-radius: 4px;
}

body.dark-mode .assistant .markdown-body table::-webkit-scrollbar-thumb:hover {
  background-color: #666;
}

/* Dark mode */
body.dark-mode .barra-filtro {
    background-color: #2e2e2e;
}

body.dark-mode .barra-filtro input {
    background: #1f1f1f;
    color: #f1f1f1;
}

body.dark-mode .checklist-categorias {
    background-color: #1f1f1f;
    color: #f1f1f1;
}

body.dark-mode .checklist-categorias label {
    color: #f1f1f1;
}

body.dark-mode .checklist-categorias input[type="checkbox"] {
    background-color: #2e2e2e;
    border-color: #5F9A65;
}

body.dark-mode .checklist-categorias input[type="checkbox"]:checked {
    background-color: #5F9A65;
    border-color: #5F9A65;
}

body.dark-mode .barra-filtro button,
body.dark-mode #botao-limpar-filtros,
body.dark-mode #botao-todos-filtros,
body.dark-mode .botao-link {
    background: linear-gradient(135deg, #3e6e44, #2e5233);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22),
                inset 0 2px 4px rgba(255, 255, 255, 0.12),
                inset 0 -2px 4px rgba(0, 0, 0, 0.25);
    color: #f1f1f1;
}

body.dark-mode .nav-list {
    background: #1f1f1f;
}

body.dark-mode .code-card {
    background: linear-gradient(
        135deg,
        rgba(30, 40, 32, 0.88) 0%,   /* quase sólido */
        rgba(32, 45, 34, 0.92) 100%  /* toque verde super leve */
    );

    border: 1px solid rgba(120, 170, 125, 0.18); /* sutil, elegante */

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.35),
        0 0 4px rgba(58, 107, 62, 0.12);

    color: #e3f1e6; /* verde acinzentado — legibilidade perfeita */
}

/* 
#######################################################################################
###                                  HEADER                                         ###
####################################################################################### 
*/
header {
    background: linear-gradient(135deg, #387540, #215229);
    color: white;
    padding: 8px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;

    /* Profundidade suave */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);

    /* Transição visual */
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Borda inferior luminosa (toque premium) */
header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 4%;
    right: 4%;
    height: 3px;
    background: linear-gradient(
        90deg,
        rgba(30, 60, 32, 0) 0%,
        #1e3c20 50%,
        rgba(30, 60, 32, 0) 100%
        );

    border-radius: 3px;
    opacity: 0.75;
}

/* LOGO + NOME */
#index-logo {
    text-decoration: none;
}

.logo-nome {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Wrapper para efeitos */
.logo-wrapper {
    position: relative;
    display: inline-block;
}

/* LOGO com movimento suave */
.logo-wrapper img {
    width: 100px;
    border-radius: 100%;
    z-index: 2;
    position: relative;

    animation: nadarEBalancar 1s cubic-bezier(0.445, 0.05, 0.55, 0.95) 1;
    /* Mudança importante: loop suave e elegante */
}

/* ONDA decorativa */
.logo-wrapper::after {
    content: "";
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) scaleX(0.3);
    width: 75px;
    height: 18px;

    background: radial-gradient(
        ellipse at center,
        rgba(58, 107, 62, 0.35),
        rgba(58, 107, 62, 0)
    );

    border-radius: 50%;
    opacity: 0;
    z-index: 1;

    animation: ondaExpandirDesaparecer 2.1s ease-out forwards;
}

/* Nome ao lado do logo */
.logo-nome h1 {
    font-size: 2rem;
    font-family: 'Poppins', sans-serif;
    color: white;
    margin: 0;
    letter-spacing: 0.7px;
    font-weight: 600;

    /* animação sutil no hover */
    animation: voltaEscala 0.4s ease forwards;
}

.logo-nome:hover  .logo-wrapper img {
    animation: nadarEBalancar 1.6s ease-in-out infinite; 
}

.logo-nome:hover .logo-wrapper::after{
    animation: ondaExpandirDesaparecer 2.1s ease-out infinite;
}

/* Anima ao passar o mouse */
.logo-nome:hover h1 {
    animation: escalaSuave 0.5s ease forwards;
    text-shadow: 0 0 13px rgba(58, 107, 62, 0.6);
}

/* Aumenta suavemente */
@keyframes escalaSuave {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.2);
    }
}

/* Volta suavemente ao normal */
@keyframes voltaEscala {
    from {
        transform: scale(1.2);
    }
    to {
        transform: scale(1);
    }
}


/* ---------------- ANIMAÇÕES ---------------- */

/* Sua animação */
@keyframes nadarEBalancar {
    0%   { transform: translate(0px, 0px) rotate(0deg); }
    20%  { transform: translate(1px, -1px) rotate(0.4deg); }
    50%  { transform: translate(2px, 1px) rotate(0.1deg); }
    80%  { transform: translate(1px, 0.8px) rotate(-0.3deg); }
    100% { transform: translate(0px, 0px) rotate(0deg); }
}

/* Onda decorativa */
@keyframes ondaExpandirDesaparecer {
    0% {
        opacity: 0;
        transform: translateX(-50%) scaleX(0.3);
    }
    40% {
        opacity: 0.9;
        transform: translateX(-50%) scaleX(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scaleX(1.5);
    }
}

/* 
#######################################################################################
###                               Botoes Menu                                       ###
####################################################################################### 
*/

/* Container do menu + switch */
.menu-e-switch {
    display: flex;
    align-items: center;
    gap: 14px;
}



/* ---------------------------------------------------
   SWITCH PREMIUM
--------------------------------------------------- */
.switch {
    position: relative;
    width: 62px;
    height: 32px;
    display: inline-block;
}

/* Input escondido */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Slider (trilho) */
.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background: linear-gradient(135deg, #4a9253, #2c6836);
    border-radius: 34px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    font-size: 16px;

    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18),
                inset 0 2px 4px rgba(255, 255, 255, 0.15),
                inset 0 -2px 4px rgba(0, 0, 0, 0.2);

    transition:
        background 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.25s ease;
}

/* Modo ON */
input:checked + .slider {
    background: linear-gradient(135deg, #3e6e44, #2e5233);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22),
                inset 0 2px 4px rgba(255, 255, 255, 0.12),
                inset 0 -2px 4px rgba(0, 0, 0, 0.25);
    transform: scale(1.02);
}



/* ---------------------------------------------------
   ÍCONE (sol / lua)
--------------------------------------------------- */
.slider i {
    pointer-events: none;
    transition:
        transform 0.45s ease,
        opacity 0.35s ease,
        filter 0.45s ease;
}

/* Rotação + leve brilho quando ativado */
input:checked + .slider i {
    transform: rotate(180deg) scale(1.03);
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.25));
}

/* 
#######################################################################################
###                               NAV MODERNO                                       ###
####################################################################################### 
*/
nav ul {
    list-style: none;
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

/* LINKS */
nav ul li a {
    position: relative;
    color: #e8e8e8;
    text-decoration: none;
    font-weight: 600;

    padding: 6px 12px;
    border-radius: 6px;

    /* Estética premium */
    letter-spacing: 0.5px;
    transition:
        color 0.25s ease,
        text-shadow 0.25s ease,
        transform 0.2s ease;
}

/* Hover — brilho verde elegante */
nav ul li a:hover {
    text-shadow: 0 0 10px rgba(8, 95, 14, 0.911);
    transform: translateY(-1px);
}

/* Linha verde sutil ao passar o mouse */
nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: #1F4A28;
    border-radius: 2px;
    transition: width 0.25s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* 
#######################################################################################
###                                Hamburguer                                       ###
####################################################################################### 
*/
/* BOTÃO DE ABERTURA (fundo-nav) */
.fundo-nav {
    position: absolute;
    left: 0;
    margin: 0 1mm;
    width: 46px;
    height: 46px;
    cursor: pointer;
    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: center;

    /* leve brilho premium */
    transition: transform 0.25s ease, filter 0.3s ease;
}

.fundo-nav img {
    margin-top: 0.5rem;
    width: 101%;
    transition: transform 0.3s ease, filter 0.25s ease;
}

/* Hover elegante */
.fundo-nav img:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 6px rgba(58, 107, 62, 0.5));
}


/* ----------------------------------------------------------
   NAV CONTAINER SUPERIOR (barra do topo no mobile)
---------------------------------------------------------- */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 1rem;
    background-color: #2C6A3A;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);

    position: relative;
}

/* Borda inferior luminosa como o header */
.nav::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 6%;
    right: 6%;
    height: 3px;
    background: linear-gradient(
        90deg,
        rgba(58, 107, 62, 0) 0%,
        #3a6b3e 50%,
        rgba(58, 107, 62, 0) 100%
    );
    border-radius: 3px;
    opacity: 0.75;
}


/* ----------------------------------------------------------
   MENU LATERAL PREMIUM
---------------------------------------------------------- */
.nav-list {
    position: absolute;
    left: -3mm;

    width: 20vw;
    max-height: calc(100vh - 3rem);

    background: #16251A; /* mais fino e elegante */
    background: linear-gradient(135deg, #387540, #215229);

    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);

    box-shadow: 4px 6px 20px rgba(0, 0, 0, 0.35);

    display: flex;
    flex-direction: column;
    align-items: stretch;

    padding-top: 1rem;
    margin-top: 1mm;

    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;

    transition:
        transform 350ms cubic-bezier(0.21, 0.61, 0.35, 1),
        opacity 0.35s ease;

    z-index: 30;
    overflow-y: auto;
}

/* Slide-in premium */
.nav-list.show,
.nav-list.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}


/* ----------------------------------------------------------
   VARIAÇÕES DE ALTURA
---------------------------------------------------------- */
.nav-list-empty {
    max-height: 70px !important;
    padding-top: 10px;
    padding-bottom: 10px;
    overflow: hidden;
}

.nav-list-few {
    max-height: 190px !important;
    padding-top: 12px;
    padding-bottom: 12px;
}


/* ----------------------------------------------------------
   SCROLLBAR PREMIUM VERDE
---------------------------------------------------------- */
.nav-list::-webkit-scrollbar {
    width: 8px;
}

.nav-list::-webkit-scrollbar-track {
    background: transparent; /* remove aquele retângulo horroroso */
}

.nav-list::-webkit-scrollbar-thumb {
    border-radius: 12px;
    border: 2px solid transparent;
    background-clip: padding-box;

    background: linear-gradient(
        to bottom,
        rgba(58, 107, 62, 0) 0%,         /* topo transparente */
        rgba(58, 107, 62, 0.35) 30%,     /* meio escuro */
        rgba(58, 107, 62, 0.35) 70%,     /* meio escuro */
        rgba(58, 107, 62, 0) 100%        /* base transparente */
    );

    transition: background 0.3s ease;
}


.nav-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        to bottom,
        rgba(58, 107, 62, 0) 0%,
        rgba(58, 107, 62, 0.55) 40%,
        rgba(58, 107, 62, 0.55) 60%,
        rgba(58, 107, 62, 0) 100%
    );
}

/* ----------------------------------------------------------
   LINKS DO MENU — Premium Green
---------------------------------------------------------- */
.nav-list a {
    color: #e6e6e6;
    font-size: 1.25rem;

    padding: 1rem 1.5rem;
    margin-bottom: 1rem;

    border-radius: 10px;
    display: block;
    text-decoration: none;
    text-align: center;

    letter-spacing: 0.6px;
    font-weight: 600;

    transition:
        color 0.3s ease,
        text-shadow 0.3s ease,
        transform 0.25s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

/* Hover Premium */
.nav-list a:hover {
    background: rgba(58, 107, 62, 0.12);
    color: #b7e8c0;

    transform: translateY(-4px);

    text-shadow: 0 0 10px rgba(58, 107, 62, 0.55);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.nav-list a:active {
    transform: translateY(1px);
}

/* Foco elegante */
.nav-list a:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 107, 62, 0.45);
}


/* ----------------------------------------------------------
   ÍCONE HAMBURGUER
---------------------------------------------------------- */
.hamburger-menu {
    display: none;
    font-size: 2.2rem;
    cursor: pointer;

    margin: 1rem;
    color: white;
    transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.hamburger-menu:hover {
    transform: scale(1.1);
    text-shadow: 0 0 8px rgba(58, 107, 62, 0.6);
}

/* 
#######################################################################################
###                                Hamburguer                                       ###
####################################################################################### 
*/
/* ---------------------------------------------------
   CONTÊINER DO PÁSSARO (flutuação premium)
--------------------------------------------------- */
.passaro-container {
    position: absolute;
    top: 0;
    left: 0;
    
    width: 100px;
    height: 100px;

    pointer-events: none;
    opacity: 0;

    z-index: 1000;

    will-change: transform, opacity; /* otimização GPU */
}

/* Imagem principal */
.passaro-img {
    width: 100%;
    height: auto;

    transform-origin: center;

    /* brilho sutil premium */
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35))
            drop-shadow(0 0 6px rgba(58, 107, 62, 0.15));
}


/* ---------------------------------------------------
   SOMBRA MODERNA E SUAVE DO PÁSSARO
--------------------------------------------------- */
.passaro-sombra {
    position: absolute;
    bottom: -55px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);

    width: 45px;
    height: 40px;

    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.06) 60%,
        transparent 100%
    );

    border-radius: 50%;
    filter: blur(4px);

    z-index: -1;
    opacity: 0.55;

    pointer-events: none;
}


/* ---------------------------------------------------
   RASTRO DO VENTO (efeito cartoon premium)
--------------------------------------------------- */
.vento-rastro {
    position: absolute;
    width: 60px;
    height: 22px;

    background: radial-gradient(
        ellipse at center,
        rgba(58, 107, 62, 0.35) 10%,
        rgba(58, 107, 62, 0.05) 70%,
        transparent 100%
    );

    border-radius: 50%;
    transform: rotate(0deg);
    opacity: 0.55;

    pointer-events: none;
    z-index: 999;

    /* brilho leve */
    filter: drop-shadow(0 0 3px rgba(58, 107, 62, 0.25));

    /* animação premium */
    animation: desaparecerCartoon 0.8s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

/* Desaparecer suave */
@keyframes desaparecerCartoon {
    0% {
        opacity: 0.7;
        transform: scale(1) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: scale(1.6) rotate(12deg);
    }
}

/* 
#######################################################################################
###                                   Filtros                                       ###
####################################################################################### 
*/

/* ---------------------------------------------------
   MAIN
--------------------------------------------------- */
main {
    padding: 24px;
    justify-content: center;
    min-height: 85vh;
}

/* ---------------------------------------------------
   BARRA DE FILTRO (caixa superior)
--------------------------------------------------- */
.barra-filtro-container {
    width: 94%;
    margin: 0 auto 24px auto;
}

.barra-filtro {
    display: flex;
    align-items: center;

    background-color: #ffffff;
    border-radius: 14px;

    padding: 0;
    overflow: hidden;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);

    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.barra-filtro:hover {
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

/* ---------------------------------------------------
   BOTÃO DE BUSCAR
--------------------------------------------------- */
.barra-filtro button {
    background: linear-gradient(135deg, #4a9253, #2c6836);
    border: none;
    color: #ffffff;

    font-size: 1.15rem;
    font-weight: 600;

    padding: 0 20px;
    height: 48px;

    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 0  0  0 10px;

    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.18),
        inset 0 2px 4px rgba(255, 255, 255, 0.12),
        inset 0 -2px 4px rgba(0, 0, 0, 0.25);

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.barra-filtro button:active {
    transform: translateY(0px) scale(0.96);
}

/* ---------------------------------------------------
   INPUT DE TEXTO
--------------------------------------------------- */
.barra-filtro input[type="text"] {
    flex: 1;
    border: none;
    background: transparent;

    padding: 12px 16px;
    font-size: 1rem;
    height: 48px;

    color: #1f1f1f;
    font-family: 'Poppins', sans-serif;

    transition: color 0.2s ease;
}

.barra-filtro input:focus {
    outline: none;
    color: #0d0d0d;
}

/* ---------------------------------------------------
   CHECKLIST DE CATEGORIAS
--------------------------------------------------- */
.checklist-categorias {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;

    background-color: #ffffff;
    margin-top: 20px;

    padding: 22px;
    border-radius: 14px;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);

    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

/* Hover premium */
.checklist-categorias:hover {
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}



/* LABELS */
.checklist-categorias label {
    display: flex;
    align-items: center;
    gap: 10px;

    flex: 0 0 calc(150px - 10px); /* mesma lógica do grid */
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;

    color: #232323;
    line-height: 1.35;

    cursor: pointer;
}



/* ---------------------------------------------------
   CHECKBOX PREMIUM
--------------------------------------------------- */
.checklist-categorias input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;

    background-color: #fff;

    border: 2px solid #3a6b3e;
    padding: 6px;

    border-radius: 5px;
    width: 18px;
    height: 18px;

    cursor: pointer;
    position: relative;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

/* Efeito no hover */
.checklist-categorias input[type="checkbox"]:hover {
    border-color: #4a8150;
    transform: scale(1.05);
}

/* Quando marcado */
.checklist-categorias input[type="checkbox"]:checked {
    background-color: #3a6b3e;
    border-color: #3a6b3e;
}

/* Ícone ✓ premium */
.checklist-categorias input[type="checkbox"]:checked::after {
    content: '✓';
    color: white;
    font-size: 14px;
    position: absolute;
    top: -2px;
    left: 3px;
}



/* ---------------------------------------------------
   BOTÕES DE FILTROS
--------------------------------------------------- */
#botao-limpar-filtros,
#botao-todos-filtros {
    display: inline-block;

    background: linear-gradient(135deg, #4a9253, #2c6836);
    color: #ffffff;
    font-weight: 600;
    border: none;

    border-radius: 10px;
    padding: 8px 20px;

    margin-left: auto;
    margin-top: 10px;

    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.94rem;

    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.18),
        inset 0 2px 4px rgba(255, 255, 255, 0.12),
        inset 0 -2px 4px rgba(0, 0, 0, 0.25);

    transition:
        background 0.25s ease,
        transform 0.22s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}



/* HOVER PREMIUM */
#botao-limpar-filtros:hover,
#botao-todos-filtros:hover {
    background: linear-gradient(135deg, #3e7143, #345e3b);

    transform: translateY(-2px) scale(1.03);
    filter: brightness(1.05);

    box-shadow:
        0 5px 16px rgba(0, 0, 0, 0.25),
        0 0 12px rgba(58, 107, 62, 0.35);
}



/* ACTIVE (clique) */
#botao-limpar-filtros:active,
#botao-todos-filtros:active {
    transform: translateY(0) scale(0.96);

    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);

    filter: brightness(0.92);
}


#botao-limpar-filtros:active,
#botao-todos-filtros:active {
    transform: scale(0.96);
}



/* ---------------------------------------------------
   SETA DO BOTÃO #abrir-filtro
--------------------------------------------------- */
#abrir-filtro::after {
    content: "▼";
    margin-left: 4px;

    font-size: 0.7rem;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

#abrir-filtro.aberto::after {
    transform: rotate(180deg);
}



/* ---------------------------------------------------
   OCULTAÇÃO
--------------------------------------------------- */
.oculto {
    display: none !important;
}

/* 
#######################################################################################
###                                   Texto                                         ###
####################################################################################### 
*/
/* TEXTO */
.texto {
    width: 94%;
    margin: 0 auto 2vh auto;

    background: #ffffff;
    padding: 34px;
    border-radius: 14px;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);

    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

/* Hover premium opcional (suave) */
.texto:hover {
    box-shadow: 0 5px 22px rgba(0, 0, 0, 0.13);
}

/* ---------------------------------------------------
   TÍTULOS (hierarquia premium)
--------------------------------------------------- */
.texto h1,
.texto h2,
.texto h3,
.texto h4 {
    color: #2C6A3A;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.texto h1 {
    text-align: center;
}

/* Espaçamentos refinados */
.texto h1 { margin-top: 1.3cm; font-size: 2.35rem; }
.texto h2 { margin-top: 1cm;   font-size: 1.9rem; }
.texto h3 { margin-top: 0.7cm; font-size: 1.55rem; }
.texto h4 { margin-top: 0.4cm; font-size: 1.32rem; }

/* ---------------------------------------------------
   TEXTOS, PARÁGRAFOS E LISTAS
--------------------------------------------------- */
.texto p,
.texto ul,
.texto ol {
    font-size: 1.12rem;
    line-height: 1.65;
    margin-top: 12px;
}

.texto ol li::marker {
    font-weight: bold;
}

.texto code {
    background-color: #3fa2535e;
    padding: 1px 3px;
    border-radius: 5px;
}

.code-card code {
    background-color: transparent; /* 'none' não é válido aqui */
    padding: 0;                    /* 'auto' também não é válido */
    border-radius: 0;              /* 'none' não funciona para border-radius */
}

.texto ul,
.texto ol {
    padding: 0px 26px;
}

/* Quebras inteligentes */
.texto,
.texto p,
.texto h1,
.texto h2,
.texto h3,
.texto h4,
.texto li,
.texto td,
.texto th,
.texto code {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.distaque-pipe {
    border-left: 4px solid #3fa2535e;;
    padding-left: 15px;
}

/* ---------------------------------------------------
   IMAGENS (premium hover e profundidade)
--------------------------------------------------- */
.texto img {
    max-width: 100%;
    max-height: 780px;

    object-fit: contain;
    display: block;

    margin: 22px auto;
    border-radius: 14px;

    filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.23));
    transition: transform 0.35s ease, filter 0.35s ease;
}

.texto img:hover {
    transform: scale(1.015);
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

/* ---------------------------------------------------
   TABELA PREMIUM COM BORDA INTERNA
--------------------------------------------------- */
.tabela-container {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;

    /* borda arredondada + sombra */
    border-radius: 12px;
    background: #ffffff;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);

    /* BORDA EXTERNA AQUI */
    border: 1px solid #e2e2e2;

    /* evita vazamentos internos */
    overflow: hidden;
}

/* Tabela SEM bordas externas — só internas */
.texto table {
    width: 100%;

    /* necessário para bordas internas perfeitas */
    border-collapse: separate;
    border-spacing: 0;

    background: transparent;
    color: #2a2a2a;
}

/* ---------------------------------------------------
   CÉLULAS
--------------------------------------------------- */

/* bordas APENAS internas */
.texto th,
.texto td {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.98rem;

    /* borda interna */
    border-bottom: 1px solid #e4e4e4;
    border-right: 1px solid #e4e4e4;
}

/* remover a borda da última coluna */
.texto td:last-child,
.texto th:last-child {
    border-right: none;
}

/* remover a borda da última linha */
.texto tbody tr:last-child td {
    border-bottom: none;
}

/* ---------------------------------------------------
   CABEÇALHO
--------------------------------------------------- */
.texto th {
    background: #f5f5f5;
    font-weight: 600;
    color: #2C6A3A;
    letter-spacing: 0.3px;
}



/* ---------------------------------------------------
   LINHAS ALTERNADAS
--------------------------------------------------- */
.texto tbody tr:nth-child(even) {
    background: #fafafa;
}

/******************************************************
 * CODE CARD — PREMIUM GREEN STYLE
 ******************************************************/
.code-card {
    position: relative;
    padding: 22px 26px;
    margin: 30px 0;

    border-radius: 16px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.97rem;

    overflow-x: auto;

    /* Transições Premium */
    transition:
        background 0.35s ease,
        border 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.25s ease;

    /* MODO CLARO */
    
    background: linear-gradient(
        135deg,
        rgba(205, 243, 205, 0.12) 0%,
        rgba(200, 238, 200, 0.10) 40%,
        rgba(240, 255, 240, 0.12) 100%
    );

    border: 1px solid rgba(58, 107, 62, 0.16);

    box-shadow:
        0 4px 14px rgba(58, 107, 62, 0.06),
        0 1px 4px rgba(0, 0, 0, 0.03);

    color: #0a110b; /* contraste MUITO melhor */
}

/* Linha luminosa premium */
.code-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    height: 3px;
    width: 100%;
    border-radius: 16px 16px 0 0;

    background: linear-gradient(90deg, #3a6b3e, #58a05e, #3a6b3e);
    opacity: 0.9;

    box-shadow: 0 0 6px rgba(58, 107, 62, 0.45);
}

/* Hover — premium */
.code-card:hover {
    box-shadow:
        0 8px 22px rgba(58, 107, 62, 0.20),
        0 3px 8px rgba(0, 0, 0, 0.15);
    border-color: rgba(58, 107, 62, 0.55);

}

/* ================================
   TABELA — MODO CLARO
   ================================ */
.code-card table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;   

    background: rgba(250, 255, 250, 0.6);
    backdrop-filter: blur(4px);

    border: 1px solid rgba(58, 107, 62, 0.18);
    border-radius: 12px;
    overflow: hidden;

    color: #0a110b;
}

/* Células */
.code-card th,
.code-card td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(58, 107, 62, 0.15);
}

/* Cabeçalho premium */
.code-card th {
    background: linear-gradient(
        135deg,
        rgba(210, 245, 210, 0.55),
        rgba(225, 255, 225, 0.70)
    );
    font-weight: 600;
    color: #0a110b;
}

/* Linhas zebradas suaves */
.code-card tbody tr:nth-child(even) {
    background: rgba(230, 245, 230, 0.4);
}

/* ================================
   TABELA — MODO ESCURO
   ================================ */
body.dark-mode .code-card table {
    background: rgba(32, 45, 34, 0.55);
    border: 1px solid rgba(120, 170, 125, 0.25);
    color: #e3f1e6;
}

body.dark-mode .code-card th {
    background: linear-gradient(
        135deg,
        rgba(70, 100, 75, 0.35),
        rgba(90, 130, 95, 0.45)
    );
    color: #e8f5ec;
}

body.dark-mode .code-card td,
body.dark-mode .code-card tr {
    border-bottom: 1px solid rgba(120, 170, 125, 0.18);
}

body.dark-mode .code-card tbody tr:nth-child(even) {
    background: rgba(44, 60, 46, 0.45);
}

/******************************************************
 * PRE (código)
 ******************************************************/
.code-card pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/******************************************************
 * BOTÃO COPIAR — Premium Green
 ******************************************************/
.copy-button {
    position: absolute;
    top: 12px;
    right: 12px;

    background: #3a6b3e;
    color: white;

    border: none;
    border-radius: 8px;

    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.88rem;
    font-family: "Poppins", sans-serif;

    box-shadow: 0 2px 6px rgba(58, 107, 62, 0.35);

    transition:
        background 0.3s ease,
        transform 0.2s ease,
        box-shadow 0.3s ease;
}

.copy-button:hover {
    background: #3f7644;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(58, 107, 62, 0.45);
}

.copy-button:active {
    transform: scale(0.94);
}

/******************************************************
 * CARDS DE ATALHO — PREMIUM GREEN
 ******************************************************/
.cards-atalho {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin: 40px auto;
    padding: 20px;
    max-width: 1200px;
}

/* CARD */
.card-atalho {
    background: linear-gradient(135deg, #4a9253, #2c6836);
    border-radius: 16px;
    padding: 32px 24px;
    width: 300px;
    text-align: center;

    /* Sombra premium */
    box-shadow:
        0 3px 6px rgba(0, 0, 0, 0.16),      /* sombra real principal */
        inset 0 1.5px 3px rgba(255, 255, 255, 0.18); /* brilho superior */

    transition:
        transform 0.25s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;
}

/* Imagem */
.card-atalho img {
    width: 50%;
    margin-bottom: 12px;

    filter:
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15))
        drop-shadow(0 0 6px rgba(58, 107, 62, 0.12));

    transition: transform 0.25s ease;
}

/* Link */
.card-atalho a {
    text-decoration: none;
    color: #fff;
    display: block;
}

/* Títulos */
.card-atalho h2 {
    font-size: 1.55rem;
    color: #fff;
    margin-bottom: 12px;
    font-family: "Poppins", sans-serif;
}

/* Texto */
.card-atalho p {
    margin: 18px 0;
    font-size: 1.08rem;
    color: #fff;
    line-height: 1.45;
}

/* HOVER */
.card-atalho:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, #549b5cee, #2b6935ee);

    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.25),
        inset 0 1.5px 3px rgba(255, 255, 255, 0.22);
}

.card-atalho:hover img {
    transform: scale(1.05);
    filter:
        drop-shadow(0 6px 10px rgba(0, 0, 0, 0.18))
        drop-shadow(0 0 6px rgba(58, 107, 62, 0.12));
}

/******************************************************
 * Botões de links
 ******************************************************/

.botao-link {
    display: inline-block;
    margin: 4px 0;

    padding: 12px 26px;
    background: linear-gradient(135deg, #4a9253, #2c6836);
    color: #ffffff;

    font-weight: 600;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.98rem;

    border-radius: 10px;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.14),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.22s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}



/* HOVER PREMIUM */
.botao-link:hover {
    background: linear-gradient(135deg, #3e7143, #345e3b);
    transform: translateY(-2px) scale(1.03);

    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.22),
        0 0 10px rgba(58, 107, 62, 0.3);

    filter: brightness(1.05);
}



/* ACTIVE (clique) */
.botao-link:active {
    transform: translateY(0px) scale(0.96);

    box-shadow:
        0 3px 7px rgba(0, 0, 0, 0.22),
        inset 0 2px 4px rgba(255, 255, 255, 0.12),
        inset 0 -2px 4px rgba(0, 0, 0, 0.28);

    filter: brightness(0.92);
}

/* ---------------------------------------------------
   LISTA DE PROJETOS
--------------------------------------------------- */
.projetos {
    min-height: 600px;
    width: 100%;
    margin: auto;
    padding: 2vh 0;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.projeto-item.oculto {
  display: none !important;
}

.projetos li {
    width: 8cm;
    padding: 26px 22px;
    min-height: 600px;
    background: linear-gradient(135deg, #498d52, #2c6836);
    border-radius: 13px;

    /* Efeito 3D leve (otimizado) */
    box-shadow:
        0 3px 6px rgba(0, 0, 0, 0.16),      /* sombra real principal */
        inset 0 1.5px 3px rgba(255, 255, 255, 0.18); /* brilho superior */

    cursor: pointer;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
    box-sizing: border-box;

    transition:
        transform 0.3s ease,
        box-shadow 0.25s ease,
        filter 0.2s ease;
}

/* Hover melhora o 3D */
.projetos li:hover {
    transform: translateY(-4px);
    
}

/* ---------------------------------------------------
   TÍTULOS
--------------------------------------------------- */
.topico-titulo h1 {
    text-align: center;
}

.projetos h2 {
    color: #fff;
    margin-top: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
}

.projeto-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

/* ---------------------------------------------------
   IMAGEM DO PROJETO
--------------------------------------------------- */
.imagem-projeto {
    margin: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.projetos img {
    object-fit: cover;
    width: 100%;
    border-radius: 10px;

    /* Sombra leve para 200+ itens não pesar */
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));

    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}

.projetos img:hover {
    transform: scale(1.50);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.26));
}

/* ---------------------------------------------------
   DESCRIÇÃO DO PROJETO
--------------------------------------------------- */
.projetos-descricao {
    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 1.15rem;
    color: #ffffff;

    margin-top: 10px;
    font-family: 'Poppins', sans-serif;
}

/* ---------------------------------------------------
   LINKS
--------------------------------------------------- */
.projetos a {
    margin: 12px 17px;
    color: #ffffff;
    font-size: 1.05rem;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.projetos a:hover {
    transform: translateY(-1px);
}



/* PDFs */
details summary {
    cursor: pointer;
    padding: 10px;
    background-color: #dddddd;
    border-radius: 8px;
    transition: background 0.3s ease;
    margin: 5mm 0;
    filter: drop-shadow(5px 10px 15px rgba(0, 0, 0, 0.3));
}

details summary:hover {
    background-color: #c6d4c8;
}

details[open] summary {
    color: #5F9A65;
}

.detalhe-titulo {
    color: #2C6A3A;
    margin-bottom: 10px;
    font-size: 1.8rem;
    font-weight: bold;
}

.bloco-pdf object {
    width: 100%;
    height: 80vh;
}

/* BADGES */
.badges-container {
    max-width: 100%;
    margin: auto;
}

.badge-section {
    margin-bottom: 50px;
}

.badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.badges-grid img {
    width: 140px;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: none;
}

.badges-grid img:hover {
    transform: scale(1.05);
    box-shadow: none;
}

/* LOGOS COMPETÊNCIAS */
.logo-competencias {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 10px;
}

.logo-competencias img {
    margin: 10px 7px;
    width: 40px;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 0px !important; 
}

/* ANIMAÇÕES */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fade-in,
.slide-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.fade-in.appear,
.slide-in-up.appear {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------------------------
   FOOTER – Premium Verde Escuro (matching Header)
--------------------------------------------------- */
footer {
    background: linear-gradient(135deg, #387540, #215229);




    color: #f5f5f5;

    text-align: center;
    padding: 22px 40px;

    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.25);

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    position: relative;
    overflow: hidden;
}

/* ---------------------------------------------------
   ÍCONES DE CONTATO (versão premium)
--------------------------------------------------- */
.contatos-footer {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 28px;

    font-size: 2rem;
}

.contatos-footer a {
    color: #e9e9e9;

    transition:
        color 0.3s ease,
        transform 0.3s ease,
        filter 0.3s ease,
        text-shadow 0.3s ease;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Hover com animação premium */
.contatos-footer a:hover {
    transform: scale(1.22) translateY(-3px);

    filter: drop-shadow(0 0 6px rgba(95, 154, 101, 0.4));
    text-shadow: 0 0 8px rgba(127, 189, 137, 0.5);
}



/* ---------------------------------------------------
   MODAL – sem alterações drásticas, apenas refinamentos
--------------------------------------------------- */
#imagemModal {
    position: fixed;
    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    background-color: rgba(0, 0, 0, 0.85);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 9999;

    backdrop-filter: blur(6px);
    animation: fadeModal 0.25s ease-out;
}

@keyframes fadeModal {
    from { opacity: 0; }
    to   { opacity: 1; }
}



#imagemExpandida,
#modalConteudo img {
    width: 90vw;
    max-width: 95vw;

    height: auto;
    max-height: 90vh;

    object-fit: contain;
    border-radius: 14px;

    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.35),
        0 0 15px rgba(255, 255, 255, 0.08);

    animation: zoomIn 0.25s ease-out;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}




/* ---------------------------------------------------
   BOTÃO FECHAR – Premium
--------------------------------------------------- */
#fecharModal {
    position: fixed;
    top: 16px;
    right: 16px;

    width: 40px;
    height: 40px;

    background: rgba(250, 250, 250, 0.92);
    border: none;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 10001;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.12),
        inset 0 -2px 4px rgba(0, 0, 0, 0.18);

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* Hover */
#fecharModal:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.12);

    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.35),
        0 0 10px rgba(255, 255, 255, 0.4);
}

#fecharModal svg {
    width: 20px;
    height: 20px;
    stroke: #333;
}

/*
############################################
###                Chatbot               ###
############################################
*/

/* ============================================================
   FLOATING BUTTON
   ============================================================ */
#chatFab {
    position: fixed;
    bottom: 26px;
    right: 0.5rem;
    width: 60px;
    height: 60px;

    background: radial-gradient(circle at 30% 30%, #4a9253, #2c6836 70%);
    border-radius: 50%;
    border: none;

    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18), inset 0 2px 4px rgba(255, 255, 255, 0.15), inset 0 -2px 4px rgba(0, 0, 0, 0.2);

    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;
    transition: .3s ease;
    z-index: 9999;
}

#chatFab .icon {
    width: 34px;
    height: 34px;
    fill: white;
    opacity: 0.95;
    transition: transform .3s ease;
}

#chatFab:hover {
    transform: scale(1.08);
    filter: brightness(1.15);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18), inset 0 2px 4px rgba(255, 255, 255, 0.15), inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

#chatFab:hover .icon {
    transform: scale(1.15);
}


/* ============================================================
   CHAT PANEL
   ============================================================ */
#chatPanel {
    position: fixed;
    bottom: 95px;
    right: 0.5rem;
    width: 360px;
    height: 560px;
    border-radius: 26px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.22);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp .3s ease forwards;
    z-index: 9999;

    min-width: 360px;
    max-width: 92vw;
    max-height: calc(100vh - 140px);

    border: 1px solid rgba(36, 85, 46, 0.20);
}

/* Indicadores de borda */
#chatPanel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(36, 85, 46, 0.07), transparent 15%) top center/100% 8px no-repeat,
        linear-gradient(to right,  rgba(36, 85, 46, 0.07), transparent 15%) left center/8px 100% no-repeat;
    border-radius: inherit;
}

#chatPanel.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideUp {
    from { transform: translateY(25px); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}

/* ============================================================
   HEADER
   ============================================================ */
#chatHeader {
    background: linear-gradient(135deg, #387540, #215229);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    border-top-left-radius: 26px;
    border-top-right-radius: 26px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

#chatHeader button,
#fecharChat {
    z-index: 20;
    position: relative;
}

/* ============================================================
   CHAT BODY
   ============================================================ */
#chatBody {
    flex: 1;
    padding: 16px;
    background: #f3f4f6;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

#chatBody::-webkit-scrollbar {
    width: 6px;
}

#chatBody::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

/* ============================================================
   MENSAGENS (BUBBLES)
   ============================================================ */
.bubble {
    max-width: 85%;
    padding: 12px 15px;
    margin-bottom: 12px;
    border-radius: 18px;
    font-size: 0.96rem;
    line-height: 1.45;
    word-wrap: break-word;
    animation: fadeIn .25s ease;
    font-family: 'Inter', system-ui, sans-serif;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}

/* Usuário */
.user {
    align-self: flex-end;
    background: #24552E;
    color: #fff;
    border-bottom-right-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.18);
}

/* Assistente */
.assistant {
    align-self: flex-start;
    background: #ffffff;
    color: #111;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* ============================================================
   FORMULÁRIO
   ============================================================ */
#chatForm {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
}

#chatInput {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    padding: 10px 14px;
    font-size: 0.95rem;
    outline: none;
    transition: all .2s ease;
    resize: none;
    line-height: 1.4;
    min-height: 40px;
    max-height: 260px;
    overflow-y: auto;
    font-family: 'Inter', system-ui, sans-serif;
}

/* ----------------------------------------------------------
   SCROLLBAR PREMIUM VERDE
---------------------------------------------------------- */
#chatInput::-webkit-scrollbar {
    width: 8px;
}

#chatInput::-webkit-scrollbar-track {
    background: transparent; /* remove aquele retângulo horroroso */
}

#chatInput::-webkit-scrollbar-thumb {
    border-radius: 12px;
    border: 2px solid transparent;
    background-clip: padding-box;

    background: linear-gradient(
        to bottom,
        rgba(58, 107, 62, 0) 0%,         /* topo transparente */
        rgba(58, 107, 62, 0.35) 45%,     /* meio escuro */
        rgba(58, 107, 62, 0.35) 55%,     /* meio escuro */
        rgba(58, 107, 62, 0) 100%        /* base transparente */
    );

    transition: background 0.3s ease;
}


#chatInput::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        to bottom,
        rgba(58, 107, 62, 0) 0%,
        rgba(58, 107, 62, 0.55) 40%,
        rgba(58, 107, 62, 0.55) 60%,
        rgba(58, 107, 62, 0) 100%
    );
}

#chatInput:focus {
    border-color: #24552e;
    box-shadow: 0 0 0 2px rgba(36, 85, 46, 0.25);
}

#chatForm button {
    background: #25662f;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

#chatForm button:hover {
    background: #2C6A3A;
    transform: scale(1.05);
}

/* ============================================================
   MARKDOWN
   ============================================================ */
.assistant .markdown-body {
    font-size: 0.9rem;
    line-height: 1.55;
}

/* ============================================================
   TABELAS
   ============================================================ */
.assistant .markdown-body table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin: 1em 0;
    font-size: 0.9rem;
}

.assistant .markdown-body table thead {
    background-color: #f9fafb;
    color: #111827;
    font-weight: 600;
}

.assistant .markdown-body table th,
.assistant .markdown-body table td {
    padding: 0.75em 1em;
    border-bottom: 1px solid #e5e7eb;
    word-break: break-word;
}

.assistant .markdown-body table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.assistant .markdown-body table tbody tr:hover {
    background-color: #eef0f3;
    transition: background-color .2s;
}

/* ============================================================
   CODE BLOCKS
   ============================================================ */
.assistant .markdown-body .language-,
.assistant .markdown-body [class^="language-"],
.assistant .markdown-body pre {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.97rem;
    padding: 1em;
    
    color: #0a110b; 
    background: linear-gradient(
    135deg,
    rgb(245, 252, 245) 0%,
    rgb(242, 251, 242) 40%,
    rgb(248, 255, 248) 100%
);

    border-radius: 16px;

    overflow-x: auto;
    display: block;

    transition:
        background 0.35s ease,
        border 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.25s ease;
}

/* Alvo: qualquer bloco <pre> dentro do markdown do assistant */
.assistant .markdown-body .language-::-webkit-scrollbar,
.assistant .markdown-body [class^="language-"]::-webkit-scrollbar,
.assistant .markdown-body pre::-webkit-scrollbar {
    height: 8px; /* agora é altura, já que é horizontal */
}

.assistant .markdown-body .language-::-webkit-scrollbar-track,
.assistant .markdown-body [class^="language-"]::-webkit-scrollbar-track,
.assistant .markdown-body pre::-webkit-scrollbar-track {
    background: transparent;
}

.assistant .markdown-body .language-::-webkit-scrollbar-thumb,
.assistant .markdown-body [class^="language-"]::-webkit-scrollbar-thumb,
.assistant .markdown-body pre::-webkit-scrollbar-thumb {
    border-radius: 12px;
    border: 2px solid transparent;
    background-clip: padding-box;

    background: linear-gradient(
        to right,                    /* muda o direction: horizontal */
        rgba(58, 107, 62, 0) 0%,
        rgba(58, 107, 62, 0.35) 45%,
        rgba(58, 107, 62, 0.35) 55%,
        rgba(58, 107, 62, 0) 100%
    );

    transition: background 0.3s ease;
}

.assistant .markdown-body .language-::-webkit-scrollbar-thumb:hover,
.assistant .markdown-body [class^="language-"]::-webkit-scrollbar-thumb:hover,
.assistant .markdown-body pre::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        to right,
        rgba(58, 107, 62, 0) 0%,
        rgba(58, 107, 62, 0.55) 40%,
        rgba(58, 107, 62, 0.55) 60%,
        rgba(58, 107, 62, 0) 100%
    );
}


body.dark-mode .assistant .markdown-body .language-,
body.dark-mode .assistant .markdown-body [class^="language-"],
body.dark-mode .assistant .markdown-body pre {
    background: linear-gradient(
        135deg,
        rgba(30, 40, 32, 0.88) 0%,   /* quase sólido */
        rgba(32, 45, 34, 0.92) 100%  /* toque verde super leve */
    );

    color: #e3f1e6; /* verde acinzentado — legibilidade perfeita */
}

.assistant .markdown-body li {
    margin-left: 1rem;
}

.assistant .markdown-body a {
    color: #47be5f;
}

.assistant .markdown-body code {
    background-color: #3fa2535e;
    padding: 1px 3px;
    border-radius: 5px;
}

#btnPerguntar {
    display: none;
    position: absolute;
    top: -40px;
    left: 0;
    padding: 8px 14px;
    cursor: pointer;
    background: linear-gradient(135deg, #4a9253, #2c6836);
    color: #fff;
    font-weight: 400;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.98rem;
    border: transparent;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.14), inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

/* RESPONSIVIDADE */
@media (max-width: 1200px) {
    .cards-atalho {
        gap: 20px;
    }

    .card-atalho {
        width: 260px;
    }

    .projetos li {
        width: 7cm;
    }

    #chatPanel {
        width: 80%;
        right: 10%;
        height: 75%;
        bottom: 70px;
    }
}

@media (max-width: 992px) {
    body {
        overflow-x: hidden;
    }

    header,
    .nav {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .passaro-container {
        width: 65px;
        height: 65px;
    }

    .passaro-sombra {
        bottom: -40px;
        width: 30px;
        height: 43px;
    }

    .vento-rastro {
        width: 35px;
        height: 17px;
    }

    .barra-filtro-container {
        width: 91%;
    }

    .checklist-categorias {
        grid-template-columns: 1fr;
        /* uma coluna */
        padding: 16px;
    }

    .checklist-categorias label {
        font-size: 1rem;
        padding: 6px 0;
    }

    #botao-limpar-filtros:active {
    transform: scale(0.97);
    }

    .fundo-nav img {
        width: 92%;
    }

    nav ul {
        display: flex;
        list-style: none;
        gap: 10px;
    }

    .nav-list {
        width: 60vw;
    }

    .contencao {
        padding: 0 1rem;
    }

    .projetos {
        flex-direction: column;
        min-height: auto;
    }

    .projetos a {
        margin: auto;
    }

    .projetos li {
        min-height: 200px;
    }

    .contencao .texto ul {
        margin-left: 0;
    }

    .texto ul {
        margin-left: 20px;
        padding: 0;
    }

    .cards-atalho {
        flex-direction: column;
        align-items: center;
    }

    .card-atalho {
        width: 90%;
    }

    .barra-filtro {
        height: 35px;
    }

    .contatos-footer {
        gap: 10px;
    }

    .fundo-nav {
        margin: 0 1px;
        width: 35px;
        height: 35px;
    }

    #chatPanel {
        width: 92%;
        right: 4%;
        height: 70%;
        border-radius: 20px;
    }

    #chatHeader {
        font-size: 1rem;
        padding: 14px 16px;
    }

    #chatInput {
        font-size: 0.9rem;
    }

    #chatFab {
        width: 58px;
        height: 58px;
        bottom: 18px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    header {
        padding-bottom: 10px;
    }

    .logo-nome img {
        width: 70px;
    }

    .logo-nome h1 {
        padding-left: 12px;
    }

    .logo-wrapper::after {
        bottom: 19px;
        width: 45px;
        height: 10px;
    }

    .logo-nome h1 {
        font-size: 1.5rem;
    }

    .texto {
        width: 100%;
        padding: 20px;
    }

    .projetos li {
        width: 100%;
        margin: 10px 0;
    }

    .imagem-projeto {
        width: 89%;
        height: auto;
    }

    .cards-atalho {
        padding: 10px;
    }

    #chatPanel {
        width: 100%;
        height: 100%;
        right: 0;
        bottom: 0;
        border-radius: 0;
    }

    .bubble {
        max-width: 95%;
    }

    #chatFab .icon {
        width: 20px;
        height: 20px;
    }

    #chatHeader {
        border-radius: 0;
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    #chatBody {
        padding: 10px;
        font-size: 0.9rem;
    }

    #chatFab {
        width: 35px;
        /* ligeiramente menor para harmonia visual */
        height: 35px;
        right: 1px;
        /* mantém a margem similar à inferior */
        bottom: 18px
    }

    #chatFab:hover {
        transform: scale(1.07);
        /* interação mais suave em telas pequenas */
    }

    #chatForm {
        padding: 10px;
        gap: 6px;
    }

    #chatForm button {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .texto h1 {
        font-size: 1.8rem;
    }

    .texto h2 {
        font-size: 1.5rem;
    }

    .texto h3 {
        font-size: 1.3rem;
    }

    .texto h4 {
        font-size: 1.2rem;
    }

    .nav-list {
        width: 70vw;
    }

    .badges-grid img {
        width: 100px;
    }

    .projetos img:hover {
        transform: scale(1.1);
    }
}