/* ============================================
   ESTILO GERAL
   ============================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f4f6f8;
    color: #333;
    line-height: 1.5;
}

a { color: #1565c0; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================
   LOGIN
   ============================================ */
.tela-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
}

.caixa-login {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.caixa-login h1 {
    font-size: 22px;
    color: #0d47a1;
    margin-bottom: 4px;
}

.subtitulo {
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
}

.caixa-login label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    margin-top: 15px;
}

.caixa-login input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

.caixa-login input:focus {
    outline: none;
    border-color: #1565c0;
    box-shadow: 0 0 0 3px rgba(21,101,192,0.15);
}

.rodape-login {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-top: 20px;
}

/* ============================================
   BOTÕES
   ============================================ */
.botao {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.botao-primario {
    background: #1565c0;
    color: #fff;
    width: 100%;
    margin-top: 20px;
}
.botao-primario:hover { background: #0d47a1; text-decoration: none; }

.botao-perigo { background: #c62828; color: #fff; }
.botao-perigo:hover { background: #8e0000; }

.botao-secundario { background: #78909c; color: #fff; }
.botao-secundario:hover { background: #546e7a; }

/* ============================================
   ALERTAS
   ============================================ */
.alerta {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}
.alerta-erro { background: #ffebee; color: #c62828; border-left: 4px solid #c62828; }
.alerta-ok   { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #2e7d32; }
.alerta-aviso{ background: #fff8e1; color: #f57c00; border-left: 4px solid #f57c00; }

/* ============================================
   TOPO / MENU
   ============================================ */
.topo {
    background: #0d47a1;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
}
.logo:hover { text-decoration: none; }

.topo-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.topo-menu a {
    color: #e3f2fd;
    font-size: 14px;
    text-decoration: none;
}
.topo-menu a:hover { color: #fff; text-decoration: underline; }

.topo-menu .sair {
    background: rgba(255,255,255,0.15);
    padding: 6px 12px;
    border-radius: 5px;
}

/* ============================================
   CONTEÚDO
   ============================================ */
.conteudo {
    max-width: 1200px;
    margin: 25px auto;
    padding: 0 20px;
}

.conteudo h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #0d47a1;
}

/* ============================================
   CARDS DO DASHBOARD
   ============================================ */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 4px solid #1565c0;
}

.card-num {
    font-size: 32px;
    font-weight: 700;
    color: #1565c0;
}

.card-label {
    color: #555;
    font-size: 14px;
}

.card-link {
    margin-top: auto;
    font-size: 13px;
    font-weight: 600;
}

/* ============================================
   RODAPÉ
   ============================================ */
.rodape {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: #888;
    margin-top: 40px;
}

/* ============================================
   TABELAS (pra usar nos próximos blocos)
   ============================================ */
.tabela {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.tabela th, .tabela td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
.tabela th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}