@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    --brand: #0a3d66;
    --brand-2: #0f5f9b;
    --brand-3: #1b78c0;
    --accent: #8fb6d9;
    --bg: #e9f0f7;
    --surface: #ffffff;
    --text: #0b1526;
    --muted: #5b6b82;
    --border: #d4e0ef;
    --shadow: 0 22px 60px rgba(9, 32, 60, 0.16);
    --radius: 20px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
    background:
        radial-gradient(1200px 600px at 10% -10%, #cfe1f5 0%, transparent 60%),
        radial-gradient(1000px 500px at 90% 10%, #dbe9f6 0%, transparent 55%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.topo {
    background: linear-gradient(120deg, #072b48 0%, #0a3d66 45%, #0f5f9b 100%);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 14px 40px rgba(6, 20, 36, 0.35);
}

.topo-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo, .topo a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.logo {
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: 1.4rem;
    letter-spacing: 0.4px;
}

.topo nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.topo nav a {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    transition: transform 0.2s ease, background 0.2s ease;
    letter-spacing: 0.2px;
}

.topo nav a:hover,
.topo nav a:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.main-conteudo { padding: 42px 0 68px; }

.hero, .card, .formulario, .tabela, .destaque {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(212, 224, 239, 0.75);
}

.hero {
    padding: 48px;
    margin-bottom: 28px;
    background:
        linear-gradient(135deg, rgba(15, 95, 155, 0.1), rgba(143, 182, 217, 0.12)),
        #ffffff;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    right: -70px;
    top: -90px;
    background: radial-gradient(circle, rgba(15, 95, 155, 0.45), transparent 70%);
}

.hero h1 {
    margin-top: 0;
    font-size: 2.6rem;
    font-family: "Playfair Display", "Times New Roman", serif;
}

.hero p { color: var(--muted); max-width: 720px; }

.acoes, .acoes-admin {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.botao {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2) 55%, var(--brand-3));
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 14px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 14px 28px rgba(8, 40, 70, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.botao:hover,
.botao:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(15, 76, 129, 0.28);
}

.botao-secundario {
    background: linear-gradient(135deg, #5a6f86, #8aa2bb);
    box-shadow: 0 12px 24px rgba(70, 90, 115, 0.24);
}

.botao-perigo {
    background: linear-gradient(135deg, #9f1b1b, #d83a3a);
    box-shadow: 0 12px 24px rgba(159, 27, 27, 0.24);
}

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

.card {
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(16, 44, 84, 0.16);
}

.formulario {
    padding: 22px;
    margin: 22px 0;
}

.campo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
    font-weight: 600;
    color: #0f2b4a;
}

input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 1rem;
    background: #f7fafe;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: rgba(25, 113, 194, 0.6);
    box-shadow: 0 0 0 3px rgba(25, 113, 194, 0.15);
    background: #ffffff;
}

.tabela {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    display: block;
    padding: 0;
}

.tabela thead, .tabela tbody, .tabela tr { width: 100%; }
.tabela table { width: 100%; }

.tabela th, .tabela td {
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.tabela th {
    background: linear-gradient(135deg, #e3edf8, #f2f6fb);
    color: #0f2b4a;
    font-weight: 700;
}

.tabela tr:nth-child(even) td {
    background: #f6f9fd;
}

.alerta {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 20px;
    font-weight: 700;
    border-left: 6px solid transparent;
}

.alerta-sucesso { background: #dcfce7; color: #166534; border-left-color: #16a34a; }
.alerta-erro { background: #fee2e2; color: #991b1b; border-left-color: #dc2626; }

.rodape {
    background: linear-gradient(135deg, #e2ebf5, #f4f7fb);
    padding: 22px 0;
    text-align: center;
    color: #475569;
}

.topo-painel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.form-inline {
    display: flex;
    gap: 8px;
    align-items: center;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero, .card, .formulario, .tabela { animation: fadeUp 0.6s ease both; }

@media (max-width: 768px) {
    .topo-flex, .topo-painel { flex-direction: column; align-items: flex-start; }
    .hero { padding: 26px; }
    .topo nav a { width: 100%; text-align: center; }
}
