:root {
    --primary: #1A3A6C;
    --accent: #FF6600;
}
.bg-primary { background-color: var(--primary); }
.text-primary { color: var(--primary); }
.border-primary { border-color: var(--primary); }
.hover\:bg-primary-dark:hover { background-color: #0f2b4f; }
.accent-bg { background-color: var(--accent); }
.accent-text { color: var(--accent); }

.category-tree ul {
    list-style: none;
    margin-left: 1rem;
    padding-left: 0;
}
.category-tree li {
    margin: 0.25rem 0;
}
.category-node {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}
.category-node .name {
    flex: 1;
    font-weight: 500;
}
.category-node .count {
    font-size: 0.75rem;
    background-color: #e5e7eb;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    color: #4b5563;
}
.category-node.active {
    background-color: #e0f2fe;
    color: var(--primary);
    border-left: 3px solid var(--accent);
}
.category-node:hover {
    background-color: #f3f4f6;
}
.toggle-icon {
    width: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    cursor: pointer;
    color: #6b7280;
}
.law-card {
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}
.law-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    border-left-color: var(--accent);
}
mark {
    background-color: #fff3bf;
    padding: 0 2px;
    border-radius: 4px;
    color: #b45309;
}
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100%;
    z-index: 50;
    transition: left 0.3s ease;
    background-color: white;
    box-shadow: 2px 0 12px rgba(0,0,0,0.1);
}
.mobile-sidebar.open {
    left: 0;
}
.overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.4);
    z-index: 40;
    display: none;
}
.overlay.active {
    display: block;
}
@media (min-width: 768px) {
    .mobile-sidebar {
        position: static;
        width: auto;
        box-shadow: none;
    }
    .overlay {
        display: none !important;
    }
}
.pagination button {
    transition: all 0.2s;
}
.pagination button.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}