/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --brand:   #1B4F9E;
    --accent:  #2E7AE0;
    --surface: #F5F7FA;
    --card:    #FFFFFF;
    --border:  #DDE3EC;
    --text:    #1A202C;
    --muted:   #6B7A99;
    --danger:  #C0392B;
    --ok:      #1E8B5C;
    --radius:  10px;
    --shadow:  0 2px 12px rgba(27,79,158,.10);
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 15px;
    background: var(--surface);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Header ──────────────────────────────────────── */
header {
    background: var(--brand);
    color: #fff;
    padding: 0 2rem;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
header .logo {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .5px;
}
header nav a {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    margin-left: 1.4rem;
    font-size: .9rem;
    transition: color .2s;
}
header nav a:hover { color: #fff; }
header nav a.active { color: #fff; font-weight: 600; border-bottom: 2px solid #fff; padding-bottom: 2px; }

/* ── Main container ──────────────────────────────── */
main {
    flex: 1;
    padding: 2.5rem 1.5rem;
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
}

/* ── Card ────────────────────────────────────────── */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem 2.2rem;
}
.card h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 1.6rem;
}

/* ── Form ────────────────────────────────────────── */
.field { margin-bottom: 1.1rem; }
.field label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: .35rem;
}
.field input {
    width: 100%;
    padding: .6rem .85rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: .95rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(46,122,224,.15);
}

/* ── Botão ───────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: .65rem 1.6rem;
    background: var(--accent);
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, transform .1s;
}
.btn:hover  { background: var(--brand); }
.btn:active { transform: scale(.98); }
.btn.full   { width: 100%; text-align: center; }

/* ── Alertas ─────────────────────────────────────── */
.alert {
    padding: .75rem 1rem;
    border-radius: 6px;
    font-size: .9rem;
    margin-bottom: 1.2rem;
}
.alert.ok    { background: #EAF7F1; color: var(--ok);    border: 1px solid #B2DFC9; }
.alert.erro  { background: #FDECEA; color: var(--danger); border: 1px solid #F5C0BB; }

/* ── Tabela ──────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin-top: .8rem; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th {
    background: var(--surface);
    text-align: left;
    padding: .55rem .8rem;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--muted);
    border-bottom: 2px solid var(--border);
}
td {
    padding: .6rem .8rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--surface); }

/* ── Footer ──────────────────────────────────────── */
footer {
    text-align: center;
    padding: 1.2rem;
    font-size: .78rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
}
