:root {
    --olsen-primary: #0d6efd;
    --olsen-sidebar-bg: #1f2937;
    --olsen-sidebar-bg-hover: #111827;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #1f2937;
}

/* Sidebar */
.sidebar {
    width: 240px;
    min-height: 100vh;
    background: var(--olsen-sidebar-bg);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    padding: 1rem 0;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-mark {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: #fff;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.sidebar .nav-link {
    color: rgba(255,255,255,.78);
    padding: .65rem 1.25rem;
    border-left: 3px solid transparent;
    font-size: .94rem;
}
.sidebar .nav-link:hover { background: var(--olsen-sidebar-bg-hover); color: #fff; }
.sidebar .nav-link.active {
    background: var(--olsen-sidebar-bg-hover);
    color: #fff;
    border-left-color: var(--olsen-primary);
}

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 10; }

/* KPI cards */
.kpi-card { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.kpi-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    font-size: 1.6rem;
    display: inline-flex; align-items: center; justify-content: center;
}

.card { box-shadow: 0 1px 2px rgba(0,0,0,.04); }

/* Tabela */
.table > :not(caption) > * > * { padding: .85rem; }
.table-warning-subtle > * { background-color: #fff7e0 !important; }

/* Timeline */
.timeline .item-novo { background: #fffaf0; border-left: 3px solid #ffc107; }

/* Auth */
.auth-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #e0e7ff 0%, #f0f9ff 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
.auth-wrapper { width: 100%; max-width: 420px; }
.auth-card { background: #fff; border-radius: 14px; padding: 2rem; }

/* Responsivo */
@media (max-width: 768px) {
    .sidebar { width: 70px; }
    .sidebar-brand div:last-child,
    .sidebar .nav-link span,
    .sidebar .nav-link { font-size: 0; }
    .sidebar .nav-link i { font-size: 1.15rem; }
    .sidebar .nav-link { text-align: center; padding: .9rem .25rem; }
    .sidebar form { display: none; }
}
