:root {
    --brand: #0b6f6c;
    --brand-dark: #064a48;
    --accent: #ff8a00;
    --surface: #f7f9fc;
    --card: #ffffff;
    --text: #1b1f24;
}

body {
    background: radial-gradient(circle at 20% 20%, #e0fff4 0%, #f7f9fc 35%, #eef2ff 100%);
    color: var(--text);
    min-height: 100vh;
    position: relative;
}

body.dark-mode {
    --surface: #111827;
    --card: #1f2937;
    --text: #f3f4f6;
    background: radial-gradient(circle at 20% 20%, #1d4b4a 0%, #111827 45%, #172554 100%);
}

.background-shape {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, rgba(11, 111, 108, 0.06), rgba(255, 138, 0, 0.04));
    z-index: -1;
}

.top-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
}

body.dark-mode .top-nav {
    background: rgba(17, 24, 39, 0.85);
}

.brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.card,
.sidebar,
.table,
.form-control,
.form-select,
.modal-content {
    background: var(--card);
    color: var(--text);
}

.sidebar {
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 90px;
}

.sidebar-link {
    display: block;
    padding: 0.65rem 0.75rem;
    border-radius: 0.6rem;
    color: inherit;
    text-decoration: none;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: linear-gradient(120deg, var(--brand), #1aa9a5);
    color: #fff;
}

.kpi-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.floating-action {
    position: fixed;
    right: 16px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    z-index: 999;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
}

.floating-action.whatsapp {
    bottom: 16px;
    background: #25d366;
}

.badge-soft {
    background: rgba(11, 111, 108, 0.12);
    color: var(--brand-dark);
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}

@media (max-width: 991px) {
    .sidebar {
        position: static;
    }
}
