.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
}

.sidebar-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sidebar-search {
  padding: 8px 12px;
}

.sidebar-search input {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-input);
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
}

.sidebar-search input::placeholder {
  color: var(--text-muted);
}

.sidebar-search input:focus {
  box-shadow: 0 0 0 1px var(--accent);
}

.room-list {
  flex: 1;
  overflow-y: auto;
}

.room-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border);
}

.room-item:hover {
  background: var(--bg-hover);
}

.room-item.active {
  background: var(--bg-active);
}

.room-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-round);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  margin-right: 12px;
}

.room-info {
  flex: 1;
  min-width: 0;
}

.room-info-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-info-last {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.room-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  margin-left: 8px;
}

.room-meta-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.room-meta-badge {
  margin-top: 4px;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-round);
  background: var(--green);
  display: none;
}

.room-meta-badge.visible {
  display: block;
}

.btn-create {
  display: block;
  width: calc(100% - 24px);
  margin: 12px;
  padding: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-create:hover {
  background: var(--accent-hover);
}
