:root {
    --bg: #f4f7f2;
    --card: #ffffff;
    --text: #142013;
    --muted: #496047;
    --accent: #2f8f46;
    --accent-dark: #216636;
    --line: #d9e2d7;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top right, #dcefd8 0%, var(--bg) 45%, #edf4ea 100%);
    color: var(--text);
    min-height: 100vh;
    position: relative;
}

.bg-video-wrap {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background:#142013bd;
}

.app {
    width: min(920px, 94vw);
    margin: 36px auto;
    position: relative;
    z-index: 1;
}

h1 {
    margin-bottom: 8px;
    letter-spacing: 0.2px;
    color: #f5fbf4;
}

.subtitle {
    margin-top: 0;
    color: #d5e8d5;
}

.card {
    background: rgba(255, 255, 255, 0.80);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(30, 55, 33, 0.08);
    padding: 22px;
    margin-top: 18px;
    backdrop-filter: blur(2px);
}

form {
    display: grid;
    gap: 12px;
}

label {
    font-weight: 600;
}

select,
input,
button {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #c5d1c2;
    font-size: 1rem;
    padding: 11px 12px;
}

select:focus,
input:focus {
    outline: 2px solid #9fd5aa;
    border-color: #84bf92;
}

input:disabled {
    background: #eef2ed;
    color: #6d7f6a;
}

button {
    margin-top: 4px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent) 0%, #4ca85d 100%);
    transition: transform 0.15s ease, background 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
}

.highlight {
    background: #eff8ee;
    border: 1px solid #d3e6d0;
    border-radius: 10px;
    padding: 12px;
    margin-top: 6px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
}

th,
td {
    padding: 10px 8px;
    border-bottom: 1px solid #e4ece2;
    text-align: left;
}

#resultadoTabela th:nth-child(2),
#resultadoTabela th:nth-child(3),
#resultadoTabela td:nth-child(2),
#resultadoTabela td:nth-child(3) {
    text-align: right;
    white-space: nowrap;
}

#resultadoTabela .main-row {
    background:var(--accent);
    font-weight: 700;
    color: #fff;
}

thead th {
    font-size: 0.95rem;
    color: #2e3f2d;
}

.note {
    margin-top: 14px;
    font-size: 0.9rem;
    color: #5a6d58;
}

.hidden {
    display: none;
}

@media (max-width: 640px) {
    .app {
        margin-top: 22px;
        width: 95vw;
    }

    .card {
        padding: 16px;
    }

    th,
    td {
        padding: 9px 6px;
        font-size: 0.94rem;
    }
}
tr:hover{
    background-color: #3db18571;
    font-weight: 500;
}
