/* --- CONFIGURAÇÃO GERAL --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f8ff; /* Azul clarinho */
    display: flex;
    justify-content: center;
    align-items: center; 
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.container {
    background-color: white;
    padding: 30px; 
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 650px;
}

h2 { 
    color: #4a90e2; /* Azul principal */
    text-align: center; 
    padding: 10px;
}

/* --- GRUPO DE INPUTS --- */
.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 10px;
    margin-bottom: 20px;
}

input {
    padding: 10px;
    border: 2px solid #b0d4ff; /* Borda azul clara */
    border-radius: 5px;
    outline: none;
}

input:focus {
    border-color: #4a90e2; /* Destaque em azul ao clicar */
}

/* --- BOTÕES PRINCIPAIS --- */
.btn-add {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.btn-add:hover {
    background-color: #357abd;
}

.btn-pdf {
    background-color: #27ae60; /* Verde para o botão de PDF */
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    font-weight: bold;
}

.btn-pdf:hover {
    background-color: #219150;
}

/* --- TABELA --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th {
    background-color: #e6f2ff; /* Fundo do cabeçalho azul claro */
    color: #4a90e2;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #b0d4ff;
}

td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* --- BOTÕES DE AÇÃO NA TABELA --- */
.btn-edit {
    background-color: #fbc02d; /* Mantive o amarelo para o "Editar" pois dá um bom contraste */
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 5px;
}

.btn-edit:hover {
    background-color: #f9a825;
}

.btn-delete {
    background: #ff6b6b; /* Vermelho suave para o "Remover" */
    color: white; 
    border: none; 
    padding: 5px 10px;
    border-radius: 3px; 
    cursor: pointer;
}

.btn-delete:hover {
    background-color: #e74c3c;
}

/* --- REGRAS PARA O PDF (HTML2PDF) --- */
#conteudo-pdf {
    overflow: visible !important;
    height: auto !important;
}

.pdf-layout {
    width: 100% !important;
    max-width: none !important;
    padding: 20px !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.pdf-layout table {
    width: 100% !important;
}

/* Impede que o PDF corte uma linha da tabela ao meio entre páginas */
tr {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
}

thead {
    display: table-header-group; 
}

/* Configurações específicas de impressão e PDF */
@media print {
    body {
        background: none;
    }
    .container {
        padding: 10px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
        box-shadow: none !important;
    }
    .no-export {
        display: none !important;
    }
}