@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&display=swap');

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Sora', system-ui, sans-serif;
    background: #f0faf3;
    color: #0f1f14;
    line-height: 1.6;
}

/* ── NAVBAR ─────────────────────────────── */
.navbar {
    background: #0f1f14;
    border-bottom: 3px solid #16a34a;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    height: 56px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 8px #16a34a;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: .3; }
}

.brand-name {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #fff;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.navbar-links a {
    text-decoration: none;
    color: rgba(255,255,255,.5);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 6px;
    transition: color .15s, background .15s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.navbar-links a:hover {
    color: #fff;
    background: rgba(255,255,255,.09);
}

.navbar-links a.ativo {
    color: #fff;
    background: #16a34a;
}

/* hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,.75);
    border-radius: 2px;
}

/* ── CONTAINER ──────────────────────────── */
.container {
    max-width: 1100px;
    margin: 32px auto;
    padding: 0 20px;
}

/* ── HERO ───────────────────────────────── */
.hero {
    background: #0f1f14;
    border-radius: 14px;
    padding: 32px 36px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(22,163,74,.28) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

.hero h1 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 14px;
    color: rgba(255,255,255,.5);
    position: relative;
    z-index: 1;
}

/* ── CARD ───────────────────────────────── */
.card {
    background: #fff;
    border: 1px solid #d1e8d9;
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(15,31,20,.07);
}

.topo {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #d1e8d9;
}

.topo h2 { font-size: 17px; font-weight: 700; color: #0f1f14; }
.sub { font-size: 13px; color: #6b8f77; margin-top: 4px; }

/* ── FORM ───────────────────────────────── */
form > div { margin-bottom: 16px; }

label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #2d4a37;
    margin-bottom: 6px;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="email"],
select {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    font-family: 'Sora', system-ui, sans-serif;
    color: #0f1f14;
    background: #f0faf3;
    border: 1.5px solid #c1ddc9;
    border-radius: 8px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
    appearance: none;
    display: block;
}

input:focus, select:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22,163,74,.14);
    background: #fff;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b8f77' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 38px;
    cursor: pointer;
}

.checkRow {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    margin-bottom: 8px;
}

.checkRow input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #16a34a;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.checkRow label {
    margin: 0;
    text-transform: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    cursor: pointer;
    color: #2d4a37;
}

.row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.row2 > div { margin-bottom: 0; }

/* ── BOTÃO ──────────────────────────────── */
button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #16a34a;
    color: #fff;
    border: none;
    padding: 13px 24px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, transform .1s, box-shadow .15s;
    margin-top: 10px;
    box-shadow: 0 3px 12px rgba(22,163,74,.28);
    font-family: 'Sora', system-ui, sans-serif;
}

button[type="submit"]:hover {
    background: #15803d;
    box-shadow: 0 5px 18px rgba(22,163,74,.38);
    transform: translateY(-1px);
}

button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(22,163,74,.2);
}

/* ── MENSAGEM ───────────────────────────── */
.msg {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    background: #dcfce7;
    color: #15803d;
    border-left: 4px solid #16a34a;
}

.msg.erro {
    background: #fdecea;
    color: #b01a13;
    border-left-color: #dc2626;
}

/* ── TABELA ─────────────────────────────── */
.tableWrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #d1e8d9;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
    font-size: 14px;
}

table thead tr { background: #0f1f14; }

table th {
    padding: 13px 16px;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    border: none;
}

table tbody tr {
    border-bottom: 1px solid #eaf4ed;
    transition: background .1s;
}

table tbody tr:last-child { border-bottom: none; }
table tbody tr:hover { background: #f5fbf7; }

table td {
    padding: 12px 16px;
    color: #2d4a37;
    border: none;
    vertical-align: middle;
}

table td:first-child {
    font-size: 12px;
    color: #6b8f77;
}

.vazio {
    text-align: center;
    padding: 40px 20px;
    color: #6b8f77;
    font-size: 14px;
}

/* ── BADGES ─────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.badge-on  { background: #dcfce7; color: #15803d; }
.badge-off { background: #fdecea; color: #b01a13; }

/* ── CHIPS ──────────────────────────────── */
.sigla {
    font-family: 'Cascadia Code', 'Fira Mono', 'Courier New', monospace;
    font-size: 12px;
    font-weight: 600;
    background: #eaf4ed;
    border: 1px solid #c1ddc9;
    color: #2d4a37;
    padding: 2px 8px;
    border-radius: 5px;
    display: inline-block;
}

.mac {
    font-family: 'Cascadia Code', 'Fira Mono', 'Courier New', monospace;
    font-size: 12px;
    font-weight: 700;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #15803d;
    padding: 2px 8px;
    border-radius: 5px;
    display: inline-block;
}

/* ── RESPONSIVO ─────────────────────────── */
@media (max-width: 768px) {
    .navbar { position: relative; }

    .navbar-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 56px; left: 0; right: 0;
        background: #0f1f14;
        padding: 12px 16px 20px;
        border-bottom: 2px solid #16a34a;
        gap: 4px;
        z-index: 999;
        box-shadow: 0 8px 24px rgba(0,0,0,.3);
    }

    .navbar-links.open { display: flex; }
    .navbar-links a { width: 100%; padding: 10px 14px; }
    .nav-toggle { display: flex; }

    .hero { padding: 24px 20px; }
    .hero h1 { font-size: 20px; }
    .card { padding: 18px 16px; }
    .row2 { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 480px) {
    .container { margin: 16px auto; }
    .navbar-inner { padding: 0 14px; }
}