/* ===== ESTILOS GERAIS ===== */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* ===== CENTRALIZAÇÃO PRINCIPAL ===== */
/* Container do logo alinhado à esquerda */
.headerlogo {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left; /* Alinha à esquerda */
    padding: 20px;
    box-sizing: border-box;
}

/* Cabeçalho com botões centralizado */
.header-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    box-sizing: border-box;
}

/* Container principal centralizado */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Container para links fora do container principal */
.links-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ===== WELCOME E STATS ===== */
.welcome {
    font-size: 24px;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
}

.stat {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    width: 30%;
    background-color: #f9f9f9;
}

.stat h3 {
    margin: 0;
    font-size: 9px;
    color: #333;
}

.stat p {
    font-size: 36px;
    margin: 10px 0;
    font-weight: bold;
}

/* ===== LINKS/BOTÕES ===== */
.links {
    margin-top: 38px;
    text-align: center;
}

.links a {
    text-decoration: none;
    display: inline-block;
    padding: 8px 18px;
    margin: 5px;
    background-color: #007BFF;
    color: white;
    border-radius: 5px;
    font-size: 16px;
}

.links a:hover {
    background-color: #0056b3;
    text-decoration: none;
}

/* ===== GRÁFICOS CENTRALIZADOS ===== */
.chart-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.chart-container {
    width: 48%;
    min-width: 300px;
    max-width: 550px;
}

/* ===== BOTÕES PRINCIPAIS ===== */
.botao_sair {
    background: #cc0000;
    border-radius: 11px;
    padding: 4px 23px;
    color: #ffffff;
    display: inline-block;
    font: normal bold 24px/1 "Open Sans", sans-serif;
    text-align: center;
}

.botao_alterarsenha {
    background: #0b5394;
    border-radius: 11px;
    padding: 4px 23px;
    color: #ffffff;
    display: inline-block;
    font: normal bold 24px/1 "Open Sans", sans-serif;
    text-align: center;
}

.botao_inicio {
    background: #274e13;
    border-radius: 11px;
    padding: 4px 23px;
    color: #ffffff;
    display: inline-block;
    font: normal bold 24px/1 "Open Sans", sans-serif;
    text-align: center;
}

.caution-button {
    background-color: #B06400 !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.caution-button:hover {
    background-color: #c82333 !important;
}

/* ===== TÍTULOS ===== */
h2 {
    color: #333;
}

/* ===== TABELAS ===== */
table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
}

th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

th {
    background-color: #4CAF50;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #ddd;
}

/* ===== LINKS GERAIS ===== */
a {
    color: white;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== FORMULÁRIOS ===== */
form {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: auto;
}

label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

/* Estilo unificado para todos os campos de input */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="file"],
select {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 2px solid #d3d9e0;
    border-radius: 8px;
    font-size: 14px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

/* Efeito hover e focus para os campos */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="file"]:focus,
select:focus {
    outline: none;
    border-color: #615e5d;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
    transform: translateY(-1px);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="date"]:hover,
input[type="file"]:hover,
select:hover {
    border-color: #f7c092;
    box-shadow: 0 3px 6px rgba(0, 123, 255, 0.15);
}

button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #218838;
}

.button-senha {
    background-color: #4169E1;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.button-senha:hover {
    background-color: #6495ED;
}

.button-bloqdesb {
    background-color: #FF7F50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.button-bloqdesb:hover {
    background-color: #FFA07A;
}

input[type="submit"] {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

input[type="submit"]:hover {
    background-color: #218838;
}

/* ===== POP-UPS GERAIS ===== */
.popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.close-popup {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 5px;
}

/* ===== INFO BOX ===== */
.info-box {
    background-color: #e7f3fe;
    border-left: 6px solid #2196F3;
    padding: 15px;
    margin: 20px auto;
    max-width: 600px;
    border-radius: 5px;
}

.info-box b {
    color: #2196F3;
}

/* ===== BOXES LATERAIS ===== */
.box-esquerdo {
    width: 33%;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.box-direito {
    width: 66% !important;
    padding: 0px !important;
    border: 0px !important;
    border-radius: 0px !important;
    vertical-align: top !important;
    padding-left: 0px !important;
}

.box p {
    text-align: left;
}

/* ===== FORMULÁRIOS SEM ESTILO ===== */
form.no-style {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
    margin: 0;
}

/* ===== BANNER DE MANUTENÇÃO ===== */
.maintenance-banner {
    background-color: black;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 22px;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1000;
}

/* ===== FOOTER ===== */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ccc;
    color: black;
    text-align: center;
    padding: 15px 0;
    font-size: 12px;
    margin: 0;
}

/* ===== SUPORTE TÉCNICO ===== */

/* Ícone de suporte flutuante */
.support-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #007BFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.support-icon:hover {
    background-color: #0056b3;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.support-icon svg {
    transition: transform 0.3s ease;
}

.support-icon:hover svg {
    transform: rotate(15deg);
}

/* Overlay do pop-up */
.support-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    backdrop-filter: blur(2px);
}

/* Pop-up de suporte */
.support-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    width: 80vw;
    max-width: 1200px;
    min-width: 800px;
    height: 85vh;
    max-height: 900px;
    min-height: 600px;
    overflow: hidden;
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Cabeçalho do pop-up */
.support-popup-header {
    background-color: #007BFF;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.support-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

/* Botão de fechar */
.close-support-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-support-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Conteúdo do pop-up */
.support-popup-content {
    padding: 0;
    background-color: white;
    height: calc(100% - 60px);
    overflow: hidden;
}

.support-popup-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ===== RESPONSIVIDADE ATUALIZADA ===== */
@media (max-width: 1024px) {
    .headerlogo,
    .header-buttons,
    .links-container {
        width: 95%;
        padding: 15px;
    }

    .container {
        width: 95%;
        padding: 15px;
    }

    .chart-wrapper {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .headerlogo,
    .header-buttons,
    .links-container {
        width: 98%;
        padding: 10px;
    }

    .container {
        width: 98%;
        padding: 10px;
    }

    .header-buttons {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .chart-wrapper {
        padding: 0 10px;
        flex-direction: column;
    }

    .chart-container {
        width: 100%;
        max-width: none;
    }
}

/* CSS para exibir gráficos lado a lado */
.chart-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}
.chart-container {
    width: 48%;
    min-width: 300px;
}

/* Estilo para o ícone de perfil */
.profile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #086c82;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.profile-icon:hover {
    background-color: #064d5c;
}

.profile-icon svg {
    width: 20px;
    height: 20px;
}

/* Estilo para o ícone de home */
.home-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #274e13;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.home-icon:hover {
    background-color: #1a3209;
}

.home-icon svg {
    width: 20px;
    height: 20px;
}

/* Estilo para o ícone de logout */
.logout-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #cc0000;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.logout-icon:hover {
    background-color: #a00000;
}

.logout-icon svg {
    width: 20px;
    height: 20px;
}

/* Estilo para o ícone de Logs (adicionar ao seu arquivo .css) */
.logs-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #6f42c1; /* Cor roxa */
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.logs-icon:hover {
    background-color: #5a349b; /* Tom mais escuro de roxo */
}

.logs-icon svg {
    width: 20px;
    height: 20px;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
}
.popup-content {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1001;
    text-align: center;
}
.popup-content.success { border-top: 5px solid #28a745; }
.popup-content.error { border-top: 5px solid #dc3545; }
.popup-content button {
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}
.select-evento {
    width: 300px;
}

/* NOVO: Estilos para o Guia de Orientação */
.orientation-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e6ed;
    padding-bottom: 30px; /* Adiciona espaço na parte inferior */
}

.orientation-title {
    font-size: 1.8em;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 25px;
    padding-top: 30px;
}

.orientation-container h3 {
    font-size: 1.4em;
    color: #3498db;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
    text-align: left; /* Garante alinhamento à esquerda */
}

.orientation-container h4.language-toggle-label { /* Para o "Em português:" */
    font-size: 1.1em;
    color: #555;
    margin-top: 25px;
    margin-bottom: 10px;
    text-align: left;
    font-weight: 600;
}

.orientation-container p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    text-align: left;
}

/* Container para tabelas lado a lado */
.tables-side-by-side {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Espaço entre as tabelas */
    flex-wrap: wrap; /* Permite que as tabelas quebrem a linha em telas menores */
    margin-bottom: 20px; /* Espaço após o grupo de tabelas */
}

.table-column {
    flex: 1; /* Permite que as colunas cresçam e encolham */
    min-width: 48%; /* Largura mínima antes de quebrar a linha */
}

.instruction-table-wrapper {
    overflow-x: auto; /* Permite scroll horizontal em telas pequenas */
    /* Removido margin-bottom daqui, pois agora está no .tables-side-by-side */
}

.instruction-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background-color: #fdfdfd;
    border: 1px solid #e0e6ed;
    border-radius: 8px; /* Cantos arredondados para a tabela */
    overflow: hidden; /* Garante que os cantos arredondados funcionem */
}

.instruction-table th,
.instruction-table td {
    padding: 8px 12px; /* Reduzido o padding para deixar as linhas mais compactas */
    text-align: left;
    border: 1px solid #f0f0f0;
    vertical-align: top;
    font-size: 0.85em; /* Ligeiramente menor para economizar espaço */
    line-height: 1.4; /* Ajustado line-height para menor espaçamento */
}

.instruction-table thead th {
    background-color: #3498db;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.instruction-table tbody tr:nth-child(even) {
    background-color: #f9fbfd;
}

.instruction-table tbody tr:hover {
    background-color: #eaf6ff;
}

.instruction-table ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.instruction-table li {
    margin-bottom: 3px; /* Reduzido margin-bottom para listas */
    color: #444;
}

/* Responsividade para a tabela de instruções */
@media (max-width: 768px) {
    .tables-side-by-side {
        flex-direction: column; /* Empilha as tabelas verticalmente em telas pequenas */
        gap: 30px; /* Espaço maior entre as tabelas empilhadas */
    }

    .table-column {
        min-width: unset; /* Remove a largura mínima quando empilhado */
        width: 100%;
    }

    .instruction-table th,
    .instruction-table td {
        display: block; /* Empilha as células em telas pequenas */
        width: 100%;
        box-sizing: border-box;
    }

    .instruction-table thead {
        display: none; /* Esconde o cabeçalho em telas pequenas */
    }

    .instruction-table tr {
        margin-bottom: 15px;
        display: block;
        border: 1px solid #e0e6ed;
        border-radius: 8px;
    }

    .instruction-table td:first-child { /* Estilo para o "título" da linha em mobile */
        background-color: #f0f8ff;
        font-weight: bold;
        color: #3498db;
        border-bottom: 1px solid #e0e6ed;
    }

    .orientation-container h3, .orientation-container p {
        padding: 0 10px; /* Ajusta o padding para melhor leitura em mobile */
    }
}