:root {
    --brand: #2f5d50;
    --brand-dark: #21453c;
    --brand-light: #e9f2ef;
    --bg: #f6f7f9;
}

body {
    background: var(--bg);
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Sidebar */
.sidebar {
    min-height: 100vh;
    background: var(--brand-dark);
    color: #fff;
}

.sidebar .brand {
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.sidebar a {
    color: rgba(255,255,255,.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .65rem 1rem;
    font-size: .92rem;
    border-left: 3px solid transparent;
}

.sidebar a:hover {
    background: rgba(255,255,255,.06);
    color: #fff;
}

.sidebar a.active {
    background: rgba(255,255,255,.1);
    color: #fff;
    border-left-color: #7fd1b9;
    font-weight: 600;
}

/* Cards do dashboard */
.card-kpi {
    border: none;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    transition: transform .15s ease, box-shadow .15s ease;
    height: 100%;
}

.card-kpi:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.09);
}

.card-kpi .icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--brand-light);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.page-header {
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    padding: 1.75rem 2rem;
    margin-bottom: 1.75rem;
}

.result-box {
    border-radius: 14px;
    background: var(--brand-light);
    border: 1px solid #cfe6dd;
    padding: 1.5rem;
}

.result-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--brand-dark);
}

.formula-box {
    background: #fff;
    border: 1px dashed #c9c9c9;
    border-radius: 10px;
    padding: .9rem 1.1rem;
    font-size: .88rem;
    color: #555;
}

.btn-brand {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.btn-brand:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.table thead th {
    background: var(--brand-light);
    border-bottom: none;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--brand-dark);
}
