:root { --sidebar-width: 16rem; }
.sidebar { width: var(--sidebar-width); }

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.15s ease;
}
.nav-link:hover { background: #f3f4f6; color: #374151; }
.nav-link.active { background: #eef2ff; color: #4f46e5; font-weight: 600; }

.filter-btn {
    padding: 0.375rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    cursor: pointer;
}
.filter-btn:hover { background: #f3f4f6; }
.filter-btn.active { background: #eef2ff; color: #4f46e5; border-color: #c7d2fe; }

.toggle {
    appearance: none;
    width: 2.5rem;
    height: 1.375rem;
    background: #d1d5db;
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}
.toggle::after {
    content: '';
    position: absolute;
    top: 0.1875rem;
    left: 0.1875rem;
    width: 1rem;
    height: 1rem;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.toggle:checked { background: #4f46e5; }
.toggle:checked::after { transform: translateX(1.125rem); }

details summary::-webkit-details-marker { display: none; }
details summary { list-style: none; }

@media (max-width: 768px) {
    .sidebar { display: none; }
}
