.sidebar {
  width: 320px;
  background: var(--bg-sidebar);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 15px var(--shadow);
  transition: left 0.3s ease;
  flex-shrink: 0;
}

.sidebar-header {
  background: var(--primary);
  color: white;
  padding: 25px 20px;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.header-icon {
  font-size: 2.2rem;
}

.sidebar-header h1 {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
}

.sidebar-header p {
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 300;
}

.search-box {
  position: relative;
  margin-top: 10px;
}

.search-box input {
  width: 100%;
  padding: 12px 15px;
  padding-right: 40px;
  border-radius: 22px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: white;
  font-family: inherit;
  font-size: 16px;
}

.search-box input::placeholder {
  color: rgba(255,255,255,0.6);
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0 20px 10px;
  letter-spacing: 1px;
}

.categories-list {
  display: flex;
  flex-direction: column;
}

.cat-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.2s;
  border-left: 4px solid transparent;
}

.cat-item:hover {
  background: #f8f9fa;
}

.cat-item.active {
  background: #ebfcff;
  border-left-color: var(--primary);
}

.cat-icon {
  width: 32px;
  height: 32px;
  background: #f0f0f0;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 1.1rem;
}

.cat-item.active .cat-icon {
  background: #b6f0ed;
  color: white;
}

.cat-name {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  color: #444;
}

.cat-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sidebar-footer {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.file-info {
  font-size: 0.7rem;
  color: #aaa;
  font-style: italic;
}
