/* ── ICON BUTTON ─────────────────────────────── */
.icon-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--bg-hover); color: var(--text-primary); }

/* ── SIDEBAR LOGO ────────────────────────────── */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

/* ── NEW CHAT BUTTON ─────────────────────────── */
.new-chat-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  margin-bottom: 4px;
}
.new-chat-btn:hover { background: var(--bg-hover); color: var(--text-primary); }

/* ── SEARCH ──────────────────────────────────── */
.search-wrapper { position: relative; margin-bottom: 4px; }
.sidebar-search-input {
  width: 100%;
  background: var(--bg-hover);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 7px 10px 7px 34px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s;
}
.sidebar-search-input::placeholder { color: var(--text-muted); }
.sidebar-search-input:focus { border-color: var(--border); }
.search-icon-wrap {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
}

/* ── CHAT ITEMS ──────────────────────────────── */
.chats-group-label {
  padding: 8px 8px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.chat-item {
  display: flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s, transform 0.1s;
  white-space: nowrap;
  overflow: hidden;
  gap: 8px;
  position: relative;
}
.chat-item:active {
  transform: scale(0.98);
}
.chat-item:hover, .chat-item.active { background: var(--bg-hover); color: var(--text-primary); }
.chat-item.active { background: var(--bg-active); }
.chat-item-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.chat-item-del {
  opacity: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: opacity 0.15s, color 0.15s;
}
.chat-item:hover .chat-item-del { opacity: 1; }
.chat-item-del:hover { color: #ff5f5f; }

/* ── USER PROFILE ────────────────────────────── */
.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.user-profile:hover { background: var(--bg-hover); }
.user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

/* ── AVATAR ──────────────────────────────────── */
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.02em;
  overflow: hidden;
  background: linear-gradient(135deg, #19c37d, #1a7f5e);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── MODEL SELECTOR ──────────────────────────── */
.model-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  transition: background 0.15s;
  letter-spacing: -0.01em;
}
.model-selector:hover { background: var(--bg-hover); }
.model-selector .chevron { color: var(--text-secondary); transition: transform 0.2s; }
.model-selector.open .chevron { transform: rotate(180deg); }

/* ── MODEL DROPDOWN ──────────────────────────── */
.model-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 10px;
  background: #2f2f2f;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  min-width: 240px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 200;
  display: none;
  animation: dropIn 0.15s ease;
}
.model-dropdown.open { display: block; }

.model-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.model-option:hover { background: var(--bg-hover); }
.model-option.selected { background: var(--bg-hover); }
.model-option-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}
.model-option-info { flex: 1; }
.model-option-name { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.model-option-desc { font-size: 12px; color: var(--text-muted); }

/* ── SUGGESTION CARDS ────────────────────────── */
.suggestions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  max-width: 640px;
}
.suggestion-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.suggestion-card:hover { background: #3a3a3a; border-color: #484848; }
.suggestion-title { font-size: 14px; font-weight: 500; color: var(--text-primary); line-height: 1.4; }
.suggestion-sub { font-size: 13px; color: var(--text-muted); }

@media (max-width: 768px) {
  .suggestions-grid { grid-template-columns: 1fr; }
}
