/* ═══════════════════════════════════════════════════════
   Chrome — Sidebar + Topbar
   ═══════════════════════════════════════════════════════ */

/* ─── SIDEBAR ─── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--chrome-bg);
  border-right: 1px solid var(--chrome-border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-brand {
  padding: 0 16px;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--chrome-border);
  cursor: pointer;
  flex-shrink: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--logo-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  font-family: var(--font-sans);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  line-height: 1.1;
  font-family: var(--font-sans);
}

.brand-name em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 1px;
}

/* ─── Sections sidebar ─── */
.sidebar-section {
  padding: 18px 12px 4px;
}

.sidebar-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--chrome-text-subtle);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 0 10px 10px;
  font-weight: 500;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--chrome-text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  transition: all var(--t-fast);
  font-family: var(--font-sans);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.nav-item.active {
  background: rgba(74, 111, 212, 0.12);
  color: #fff;
}

.nav-item.active::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--crystal);
  border-radius: 2px;
  margin-left: -13px;
  margin-right: 7px;
}

.nav-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke-width: 1.8;
}

.nav-item .count-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--chrome-text-subtle);
  padding: 2px 6px;
  background: rgba(126, 184, 247, 0.08);
  border-radius: 100px;
  font-weight: 500;
}

/* ─── Clients (sous-sidebar) ─── */
.sidebar-clients {
  padding: 4px 12px 16px;
}

.client-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--t-fast);
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
}

.client-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.client-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.client-name {
  font-size: 12.5px;
  color: var(--chrome-text-muted);
  font-weight: 500;
}

/* ─── TOPBAR ─── */
.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--topbar-height);
  background: var(--chrome-bg);
  border-bottom: 1px solid var(--chrome-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px;
  gap: 12px;
  z-index: 90;
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--chrome-border);
  border-radius: var(--radius-sm);
  min-width: 320px;
  cursor: text;
  transition: border-color var(--t-fast);
}

.topbar-search:hover,
.topbar-search:focus-within {
  border-color: var(--chrome-border-strong);
  background: rgba(255, 255, 255, 0.06);
}

.topbar-search svg {
  width: 14px;
  height: 14px;
  color: var(--chrome-text-subtle);
}

.topbar-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  font-family: var(--font-sans);
}

.topbar-search input::placeholder {
  color: var(--chrome-text-subtle);
}

.topbar-search kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--chrome-text-subtle);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--chrome-border);
  border-radius: 4px;
  padding: 2px 6px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--chrome-border);
  border-radius: var(--radius-sm);
  color: var(--chrome-text-muted);
  cursor: pointer;
  transition: all var(--t-fast);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: var(--chrome-border-strong);
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}
