/* ---------------------------------------------------------------
   Fluviaam - estilos base
   Paleta e tipografia conforme o manual de marca.
   --------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    /* Paleta oficial */
    --navy-900: #071B34;
    --navy-800: #0B2D4D;
    --blue-700: #124E7A;
    --teal-600: #007A8C;
    --blue-300: #6BB5E7;
    --gray-100: #D6E2EC;

    /* Papeis */
    --bg:            var(--navy-900);
    --bg-elevated:   var(--navy-800);
    --border:        rgba(107, 181, 231, .18);
    --text:          var(--gray-100);
    --text-strong:   #FFFFFF;
    --text-muted:    rgba(214, 226, 236, .65);
    --accent:        var(--blue-300);
    --accent-strong: var(--blue-700);

    --radius: 12px;
    --shadow: 0 12px 32px rgba(7, 27, 52, .45);
    --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    background-image: radial-gradient(1200px 600px at 70% -10%, rgba(18, 78, 122, .55), transparent 60%);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.centered {
    justify-content: center;
    align-items: center;
    padding: 24px;
}

h1, h2, h3 {
    margin: 0 0 .5em;
    color: var(--text-strong);
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
    padding: .15em .4em;
    border-radius: 6px;
    background: rgba(107, 181, 231, .12);
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: .9em;
}

.muted { color: var(--text-muted); }

/* --- Layout ---------------------------------------------------- */
.topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(11, 45, 77, .5);
    backdrop-filter: blur(8px);
}

.brand img { display: block; height: 36px; width: auto; }

.container {
    flex: 1;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 24px;
}

.footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: .875rem;
    text-align: center;
}

.footer p { margin: 0; }

/* --- Componentes ----------------------------------------------- */
.card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    box-shadow: var(--shadow);
}

.btn {
    display: inline-block;
    padding: .65em 1.4em;
    border: 1px solid transparent;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    color: var(--navy-900);
    font-weight: 600;
    font-size: .9375rem;
    cursor: pointer;
    transition: transform .15s ease, filter .15s ease;
}

.btn:hover { filter: brightness(1.08); transform: translateY(-1px); text-decoration: none; }

.btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.alert {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    background: rgba(107, 181, 231, .1);
}

.alert-error { border-left-color: #E2574C; background: rgba(226, 87, 76, .1); }
.alert-ok    { border-left-color: var(--teal-600); background: rgba(0, 122, 140, .12); }

/* --- Formularios ----------------------------------------------- */
label { display: block; margin-bottom: 6px; font-size: .875rem; font-weight: 500; }

input, select, textarea {
    width: 100%;
    padding: .65em .85em;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(7, 27, 52, .6);
    color: var(--text);
    font: inherit;
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: transparent;
}

.field { margin-bottom: 16px; }

/* --- Tabelas ---------------------------------------------------- */
.table-wrap { overflow-x: auto; }

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

th, td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

th { color: var(--text-strong); font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em; }

@media (max-width: 640px) {
    .container { padding: 20px 16px; }
    .card { padding: 20px; }
}
