:root {
    --cor-fundo-principal: #f0f1f1;
    --cor-fundo-secundaria: #182932;
    --cor-card: #ffffff;
    --cor-borda: #e0e0e0;
    --cor-texto-principal: #333333;
    --cor-texto-secundario: #1C9A9E;
    --fonte-principal: 'Roboto', sans-serif;
    --sombra-leve: 0 4px 8px rgba(0, 0, 0, 0.1);
    --button-bg: #566573;
    --button-hover-bg: #2C3E50;
    --header-bg: #212F3D;

}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--cor-fundo-principal);
    color: var(--cor-texto-principal);
    font-family: var(--fonte-principal);
    margin: 0;
    padding: 0;
    padding-top: 110px; 
}

.cabecalho {
    width: 100%;
    align-items: center;
    padding: 20px 40px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    background-color: var(--cor-fundo-secundaria);

    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.flex-linha {
    display: flex;
    align-items: center;
}

.texto-p {
    font-size: 0.875rem;
}

.container-painel {
    padding-top: 80px; 
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 40px;
    text-transform: uppercase;
}
.conteudo-principal {
    grid-area: conteudo-principal;
    text-transform: uppercase;
    font-weight: 500;
}

.painel-lateral {
    grid-area: painel-lateral;
}

.lista-voos{
    text-transform: uppercase;
    text-align: center;
    font-size: 1em;
    text-align: left;

    width: 100%;
    border-collapse: collapse; 
    table-layout: fixed; 

}

.content-title {
    font-size: 24px;
    font-weight: 700;
    color: #2C3E50; 
    margin: 0 0 20px 0;
    padding-left: 10px; 
    text-align: center;
}

.cabecalho-lista-voos, .item-voo {
    display: grid;
    grid-template-columns: 0.6fr 1.2fr 1.8fr 0.6fr 1fr 0.8fr 0.8fr 0.8fr;
    gap: 5px;
    padding: 1px 5px;
}

.cabecalho-lista-voos {
    font-weight: bold;
    color: #fff;
    background-color: var(--cor-fundo-secundaria);
    border-bottom: 1px solid var(--cor-borda);
    border-radius: 8px 8px 0 0 ;
    padding: 5px 5px;
    font-size: 0.87em;
}

.lista-voos th,
.lista-voos td {
    padding: 6px 5px;

    vertical-align: middle; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-voo {
    background-color: var(--cor-card);
    margin-top: 0px;
    font-size: 0.8em;

}

.item-voo:nth-child(odd) {
    background-color: #cecece;
}

.center-td{
    text-align: center;
}

.login-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 70vh;
}

#login-form{
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}

#login-form input{
    padding:10px;
}
/* 

*/


/* Área principal que centraliza o card */
.login-main {
    flex: 1; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Card de Login */
.login-card {
    background-color: var(--card-bg);
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    width: 100%;
    max-width: 380px;
    border: 1px solid var(--border-color);
}

/* Grupo de Input (Label + Input) */
.input-group {
    margin-bottom: 20px;
    width: 100%;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-light);
}

.input-group input {
    width: 100%;
    padding: 12px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus {
    border-color: var(--text-dark);
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.1);
}

/* Botão de Login */
.btn-login {
    width: 100%;
    padding: 12px;
    background-color: var(--button-bg);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.btn-login:hover {
    background-color: var(--button-hover-bg);
}
 /* CLASSES DO MAPEAMENTO DE STATUS */

.cancelado{
    color: #ad2020;
    font-weight: 600;
}

.alternado{
    color: #00bfc5;
    font-weight: 600;

}

.desconhecido{
    color: #949494;
    font-weight: 600;

}

 .filter-controls {
    position: absolute;
    top: 100%; 
    left: 0;
    right: 0;
    
    background-color: #f8f9fa;
    padding: 15px 70px;
    border-bottom: 1px solid #dee2e6;
    
    display: flex;
    justify-content: flex-start;
}

.checkbox-wrapper {
    display: flex;
    align-items: end;
}

.checkbox-wrapper input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-wrapper label {
    font-size: 14px;
    color: #343a40;
    cursor: pointer;
}

/* =============================================================== */
/* CABEÇALHO E TOTAIS                      */
/* =============================================================== */
.cabecalho-principal {
    background-color: #212F3D;
    padding: 15px 40px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;

    position: fixed;
    top: 0;
    left: 0;
    right: 0; /* Garante que ocupe 100% da largura */
    z-index: 1000;
}

/* Container da Esquerda (Logo e Navegação) */
.header-left-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo-container {
    flex-shrink: 0; /* Impede que o logo seja espremido */
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #EAECEE;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
    white-space: nowrap; /* Garante que os links não quebrem linha */
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Container da Direita (Totais e Filtro) */
.header-right-content {
    display: flex;
    flex-direction: column; /* Coloca os totais em cima e o filtro embaixo */
    align-items: flex-end; /* Alinha tudo à direita */
    gap: 10px;
    min-width: 0; /* Permite que o container encolha se necessário */
}


.painel-totais {
    display: flex;
    align-items: center;
    min-width: 0; 
}

.painel-totais .card-dados {
    /* display: flex; */
    align-items: center;
    background-color: transparent; 
    box-shadow: none;
    padding: 0;
}

/* Blocos internos do card (data/destino, executiva, primeira classe) */
.painel-totais .info-voo-superior, .info-voo-inferior,
.painel-totais .info-assentos {
    display: flex;
    align-items: center;
    gap: 15px; 
}

/* Separador vertical entre data/destino e os assentos */
.painel-totais .info-voo-superior {
    padding-right: 25px;
    border-right: 1px solid #4A5A6A;
}

.painel-totais .info-item {
    display: flex;
    flex-direction: row;
    gap: 4px;
    text-align: left;
}

.painel-totais .titulo-card {
    font-size: 11px;
    color: #B0BEC5;
    text-transform: uppercase;
    white-space: nowrap; 
    text-align: center;
}

.painel-totais .subtitulo-card {
    font-size: 14px;
    color: #FFFFFF;
    font-weight: 500;
    white-space: nowrap;
}

.detalhes-assento {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.painel-totais .tipo-assento {
    font-size: 14px;
    color: #FFFFFF;
}

.painel-totais .quantidade-assento {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    width: 100%;
    text-align: center;
}

.painel-totais .icone-assento img {
    width: 60px;
    height: 60px;
}



/* =============================================================== */
/* DASHBOARD                             */
/* =============================================================== */
.controls-container {
    margin-bottom: 30px;
}
.chart-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.dashboard-container {
    padding: 0px 80px;
}

.controls-container {
    margin-bottom: 20px; 
}

.chart-container {
    margin-bottom: 20px; 
}

.chart-container h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--text-dark);
}


/* SELETOR DE DATA */
.controls-container label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-light);
}

.date-picker-wrapper {
    position: relative; /* Para o posicionamento do ícone */
    width: 280px; /* Define uma largura fixa */
}

#week-picker {
    width: 100%;
    padding: 10px 15px 10px 40px; /* Espaço à esquerda para o ícone */
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: #fff;
    font-size: 16px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#week-picker:hover {
    border-color: #aab;
}

.date-picker-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none; 
}

#app-content{
    padding:40px 60px;
}

/* Em telas com mais de 1200px de largura, coloca os gráficos lado a lado */
@media (min-width: 1400px) {
    .dashboard-container {
        display: grid;
        grid-template-columns: 1fr 1fr; 
        grid-template-rows: auto 1fr; 
        gap: 20px;
        align-items: flex-start;
    }
    .controls-container {
        grid-column: 1 / -1; 
    }
}

/*  Filtro SVG na tabela */

.th-with-toggle {
    display: flex;
    align-items: center;
}

.filter-toggle {
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    margin-left: 8px; /* Espaço entre o texto e o ícone */
    transform: rotate(0deg); 
}

.filter-toggle.inactive { 
    transition: transform 0.3s ease-in-out;
    transform: rotate(180deg); /* ✅ Gira 180 graus quando inativo */
}