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

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Container Principal */
.container, .container-lista {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 600px;
    margin: auto;
}

.container-lista { max-width: 900px; }

h1 { color: #2d3436; margin-bottom: 10px; font-size: 1.8rem; text-align: center; }
h3 { margin-top: 20px; margin-bottom: 10px; color: #444; }
p { color: #636e72; margin-bottom: 1.5rem; text-align: center; }

/* ==========================================
   2. DASHBOARD (Grid de Botões)
   ========================================== */
.grid-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.btn-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    border: none;
    border-radius: 15px;
    background-color: #57606f;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-decoration: none;
}

.btn-menu:hover { transform: translateY(-5px); filter: brightness(1.1); }

/* ==========================================
   3. FORMULÁRIOS
   ========================================== */
.campo { text-align: left; margin-bottom: 15px; }
label { display: block; margin-bottom: 5px; font-weight: 600; color: #2d3436; }

input, select {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

input:focus, select:focus { border-color: #667eea; background-color: #f9faff; }

.linha-dupla { display: flex; gap: 15px; }
.linha-dupla .campo { flex: 1; }

.btn-salvar, .btn-login {
    width: 100%;
    padding: 15px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-login { background-color: #007bff; }
.btn-salvar:hover { background: #219150; }
.btn-login:hover { background-color: #0056b3; }

/* ==========================================
   4. TABELAS E LISTAS
   ========================================== */
.tabela-responsiva { overflow-x: auto; margin-top: 15px; }

table { width: 100%; border-collapse: collapse; }

th, td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
th { background-color: #f8f9fa; font-weight: bold; color: #333; }
tr:nth-child(even) { background-color: #fafafa; }

/* ==========================================
   5. BOTÕES DE AÇÃO E VOLTAR
   ========================================== */
.btn-voltar {
    background: #dfe4ea;
    color: #2d3436;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

/* ==========================================
   6. RELATÓRIOS E ACOMPANHAMENTO
   ========================================== */
.grid-resumo { display: flex; gap: 15px; margin: 20px 0; }
.card-resumo {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    border: 2px solid #eee;
    flex: 1;
    text-align: center;
}
.card-resumo h3 { margin-top: 0; font-size: 1.5rem; color: #667eea; }

/* ==========================================
   JUSTIFICATIVAS
   ========================================== */

.card-acoes { display: flex; gap: 10px; }
.btn-icon-edit { background: none; border: none; color: #3498db; cursor: pointer; font-size: 1.1rem; }
.btn-icon-delete { background: none; border: none; color: #e74c3c; cursor: pointer; font-size: 1.1rem; }