/* ============================
   BASE
============================ */
body {
    background: #f4f6f9;
    font-family: "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

/* ============================
   HEADER
============================ */
#header {
    width: 100%;
    display: flex;
    justify-content: center;  
    align-items: center;      
    background: #003366;
    padding: 20px 0;
}

#logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

#logo img {
    display: block;
}

/* ============================
   CONTAINER
============================ */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 25px;
}

.titulo {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #003366;
    margin-bottom: 25px;
}

/* ============================
   MENU HORIZONTAL
============================ */
.menu-assuntos {
    background: #e8f1ff; /* azul claro */
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.menu-item {
    background: #005fa3;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: 0.25s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.menu-item:hover {
    background: #004a80;
    transform: translateY(-2px);
}

.menu-item.ativo {
    background: #002f55;
    transform: translateY(-2px);
}

/* ============================
   LAYOUT PRINCIPAL
============================ */
.layout {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 20px;
    align-items: flex-start;
}

.col-esquerda, .col-direita {
    width: 40%;
}

.col-esquerda {
    height: 800px; /* ajuste conforme o layout */
    display: flex;
    flex-direction: column;
}

/* ============================
   DROPZONES
============================ */
.dropzone {
    min-height: 130px;
    padding: 12px;
    border: 2px dashed #b5c7e0;
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 25px;
    transition: 0.25s;
}

.dropzone:hover {
    border-color: #005fa3;
    background: #f0f6ff;
}

/* ============================
   CAMPOS ARRASTÁVEIS
============================ */
.campo {
    padding: 8px 12px;
    margin: 6px 0;
    background: #e8f1ff;
    border: 1px solid #b0c4e0;
    border-radius: 6px;
    cursor: grab;
    transition: 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.campo:hover {
    background: #d9e9ff;
    transform: translateX(4px);
}

#campos-disponiveis {
    flex: 1;
    max-height: none !important;
    overflow-y: auto !important;
}

#campos-disponiveis::-webkit-scrollbar {
    width: 8px;
}

#campos-disponiveis::-webkit-scrollbar-track {
    background: #e8f1ff;
    border-radius: 10px;
}

#campos-disponiveis::-webkit-scrollbar-thumb {
    background: #005fa3;
    border-radius: 10px;
}

#campos-disponiveis::-webkit-scrollbar-thumb:hover {
    background: #004a80;
}

/* ============================
   SELECT E BOTÕES
============================ */
.select-estilizado {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #aaa;
    width: 100%;
    margin-bottom: 20px;
    font-size: 15px;
}

.btn-gerar {
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.25s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-gerar:hover {
    background: #1e7e34;
    transform: translateY(-2px);
}

.btn-csv {
    display: block;
    margin: 25px auto 0 auto;
    background: #0069d9;
    color: white;
    padding: 12px 22px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.25s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-csv:hover {
    background: #0053ad;
    transform: translateY(-2px);
}

.btn-secundario {
    background-color: #ffdd57;
    color: #333;
    border: 1px solid #b5c7e0;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
}

.btn-secundario:hover {
    background-color: #d5dce8;
}

.botoes-acao {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px; /* espaço entre os botões */
    margin-top: 20px;
}

/* ============================
   TABELA
============================ */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

th {
    background: #003366;
    color: white;
    padding: 12px;
    text-align: center;
    font-size: 15px;
}

td {
    padding: 10px;
    border-bottom: 1px solid #e0e6f0;
    text-align: center;
}

tr:nth-child(even) {
    background: #f7faff;
}

#resultado {
    text-align: center;
}

.resultado-wrapper {
    text-align: center;
    margin-top: 20px;
}

#baixar-csv {
    text-align: center;
    display: inline-block;
}

#rodape {
    text-align: center;
    padding: 15px 0;
    margin-top: 40px;
    font-size: 14px;
    color: #4a4a4a;
    border-top: 1px solid #dcdcdc;
    background-color: #f7f7f7;
}