/* CHANGE: Switched to a more modern, professional font */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-ligatures: common-ligatures contextual;
  -webkit-font-feature-settings: "calt" on, "liga" on;
  font-feature-settings: "calt" on, "liga" on;

  /* CRITICAL CHANGE: Disable body scroll for Fixed App Layout */
  overflow: hidden;
  height: 100%;
  width: 100%;
}

/* CHANGE: Set the base font size for consistency across mobile */
@media (min-width: 768px) {
  body {
    font-size: 17px;
    line-height: 1.5;
  }

  .message-container {
    padding: 0 1% !important;
  }
}

html {
  height: 100%;
  width: 100%;
  overflow: hidden;
  /* Lock html scroll too */
}

#app-container {
  max-width: 100%;
  height: 100%;
  /* Ensure main container fills screen */
  display: flex;
  /* Enable flex layout for sidebar + content */
}

/* --- NEW: GLOBAL HIDE SCROLLBARS (Desktop & Mobile) --- */
/* Applies to custom scrollbar class, chat window, login view, and modals */
.custom-scrollbar,
#chat-window,
#login-view,
.overflow-y-auto,
.overflow-x-auto {
  -ms-overflow-style: none;
  /* For IE and Edge */
  scrollbar-width: none;
  /* For Firefox */
}

.custom-scrollbar::-webkit-scrollbar,
#chat-window::-webkit-scrollbar,
#login-view::-webkit-scrollbar,
.overflow-y-auto::-webkit-scrollbar,
.overflow-x-auto::-webkit-scrollbar {
  display: none;
  /* For Chrome, Safari, and Opera */
}


/* Scrollbar hidden rules removed */


/* --- NEW: Text-first chat styles from mockup --- */
:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #6b7280;
  --hint: #4b5563;
  --accent: #16a34a;

  --user-bg: #16a34a;
  --user-fg: #ffffff;
  --ai-fg: #111827;
  --ai-bg: #transparent;
}

.dark {
  --bg: #000000;
  --fg: #f5f5f5;
  --muted: #9ca3af;
  --hint: #d1d5db;
  --accent: #22c55e;

  --user-bg: #166534;
  --user-fg: #f0fdf4;
  --ai-fg: #f3f4f6;
  --ai-bg: #transparent;
}

.message-container {
  width: 100%;
  /* UPDATED: Center the messages inside the full-width scroll view */
  margin: 0 auto;
  padding: 0 16px;
}

.message-container {
  /* UPDATED: Max width to prevent text from stretching too far on large screens */
  max-width: 64rem !important;
  /* 5xl size (1024px) */
}

.message.user {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: flex-start;
  margin-left: auto;
  max-width: 98%;
}

.message.ai {
  display: flex;
  align-items: flex-start;
  color: var(--ai-fg);
  max-width: 100%;
}

.ai-avatar,
.user-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  margin-top: 2px;
}

.ai-content-wrapper,
.user-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.message.user .user-content-wrapper {
  align-items: flex-end;
}

.ai-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.message.ai .chat-bubble {
  background: var(--ai-bg);
  color: var(--ai-fg);
  padding: 14px 16px;
  border-radius: 12px;
  position: relative;
}

.message.user .chat-bubble {
  background: var(--user-bg);
  color: var(--user-fg);
  padding: 14px 16px;
  border-radius: 12px;
  position: relative;
}

.message.user .chat-bubble::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 14px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 10px;
  border-color: transparent transparent transparent var(--user-bg);
}

.message .chat-bubble {
  box-shadow: none;
}

.meta {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  align-items: baseline;
  width: 100%;
  padding-top: 6px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .meta {
  border-top-color: rgba(255, 255, 255, 0.08);
}


.message.user .meta {
  justify-content: flex-end;
}

.why-btn {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.message.user .why-btn {
  color: #f0fdf4;
}

.dark .message.user .why-btn {
  color: #bbf7d0;
}

.why-btn:hover {
  opacity: 0.8;
}

.stamp {
  font-size: 11px;
  color: var(--muted);
}

.message.user .stamp {
  color: rgba(255, 255, 255, 0.7);
}

.dark .message.user .stamp {
  color: rgba(240, 253, 244, 0.7);
}

.chat-bubble {
  line-height: 1.7;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.chat-bubble h1,
.chat-bubble h2,
.chat-bubble h3 {
  font-weight: 400;
  line-height: 1.3;
}

.chat-bubble h1 {
  font-size: 1.55rem;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 0.25em;
}

.chat-bubble h2 {
  font-size: 1.32rem;
  margin-top: 1.25em;
  margin-bottom: 0.5em;
}

.chat-bubble h3 {
  font-size: 1.15rem;
  margin-top: 1.1em;
  margin-bottom: 0.4em;
}

.chat-bubble>*:first-child {
  margin-top: 0;
}

.chat-bubble p {
  margin-bottom: 1em;
}

.chat-bubble>*:last-child {
  margin-bottom: 0;
}

.chat-bubble ul,
.chat-bubble ol {
  padding-left: 1.75rem;
  margin-bottom: 1em;
}

.chat-bubble ul {
  list-style-type: disc;
}

.chat-bubble ol {
  list-style-type: decimal;
  list-style-position: outside;
}

.chat-bubble li {
  margin-bottom: 0.5em;
  padding-left: 0.25rem;
}

.chat-bubble li::marker {
  color: #a3a3a3;
}

.dark .chat-bubble li::marker {
  color: #737373;
}


.chat-bubble a {
  color: #16a34a;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.dark .chat-bubble a {
  color: #22c55e;
}

.message.user .chat-bubble a {
  color: #ffffff;
  font-weight: 500;
  text-underline-offset: 3px;
}

.dark .message.user .chat-bubble a {
  color: #bbf7d0;
}


.chat-bubble code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
  background: rgba(0, 0, 0, .06);
  padding: .2rem .4rem;
  border-radius: .35rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.dark .chat-bubble code {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, 0.15);
}

.message.user .chat-bubble code {
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.2);
  color: #f0fdf4;
}

.dark .message.user .chat-bubble code {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(0, 0, 0, 0.3);
  color: #dcfce7;
}


.chat-bubble pre {
  background: #282c34;
  color: #abb2bf;
  padding: 1rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-bubble pre code {
  background: transparent;
  border: none;
  padding: 0;
}

.chat-bubble blockquote {
  border-left: 3px solid #16a34a;
  padding-left: 1rem;
  margin-left: 0.25rem;
  font-style: italic;
  color: #525252;
}

.dark .chat-bubble blockquote {
  border-color: #22c55e;
  color: #a3a3a3;
}

.message.user .chat-bubble blockquote {
  border-left-color: #f0fdf4;
  color: #f0fdf4;
}

.dark .message.user .chat-bubble blockquote {
  border-left-color: #bbf7d0;
  color: #dcfce7;
}

.table-wrapper {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1em;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.dark .table-wrapper {
  border-color: rgba(255, 255, 255, 0.2);
}

.chat-bubble table {
  width: 100%;
  border-collapse: collapse;
  border: none;
  min-width: 600px;
}

.dark .chat-bubble table {
  border-color: rgba(255, 255, 255, 0.2);
}

.chat-bubble th,
.chat-bubble td {
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  text-align: left;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 400px;
  min-width: 150px;
}

.dark .chat-bubble th,
.dark .chat-bubble td {
  border-color: rgba(255, 255, 255, 0.2);
}

.chat-bubble th {
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0.03);
}

.dark .chat-bubble th {
  background-color: rgba(255, 255, 255, 0.1);
}

.message.user .chat-bubble table {
  border-color: rgba(255, 255, 255, 0.3);
}

.message.user .chat-bubble th,
.message.user .chat-bubble td {
  border-color: rgba(255, 255, 255, 0.3);
}

.message.user .chat-bubble th {
  background-color: rgba(0, 0, 0, 0.15);
}

.chat-bubble hr {
  border: none;
  height: 2px;
  background-color: rgba(0, 0, 0, 0.1);
  margin: 2em 0;
}

.dark .chat-bubble hr {
  background-color: rgba(255, 255, 255, 0.2);
}

.message.user .chat-bubble hr {
  background-color: rgba(255, 255, 255, 0.3);
}

.chat-bubble del {
  text-decoration: line-through;
  color: #6b7280;
}

.dark .chat-bubble del {
  color: #9ca3af;
}

.reason-text.truncated {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.expand-btn {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  background: none;
  border: none;
  padding: 4px 0 0 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose {
  line-height: 1.6;
}

.prose :where(p):not(:where([class~="not-prose"] *)) {
  margin-top: 0.8em;
  margin-bottom: 0.8em;
}

.dark .stroke-green-500 {
  stroke: #22c55e;
}

.dark .stroke-yellow-500 {
  stroke: #eab308;
}

.dark .stroke-red-500 {
  stroke: #ef4444;
}

.dark .fill-green-500 {
  fill: #22c55e;
}

.dark .fill-yellow-500 {
  fill: #eab308;
}

.dark .fill-red-500 {
  fill: #ef4444;
}

.msg {
  max-width: min(120ch, 100%);
  word-break: break-word;
}

.toast {
  opacity: 0;
  transform: translateY(10px);
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.value-chip {
  display: inline-block;
  background-color: #e5e7eb;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.dark .value-chip {
  background-color: #dddddd;
  color: #000000;
}

.example-prompt-btn {
  padding: 0.75rem;
  background-color: #f3f4f6;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  text-align: left;
  transition: background-color 0.2s;
}

.example-prompt-btn:hover {
  background-color: #e5e7eb;
}

.dark .example-prompt-btn {
  background-color: #1f2937;
}

.dark .example-prompt-btn:hover {
  background-color: #374151;
}

.loader {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.thinking-spinner {
  border: 3px solid #e5e7eb;
  border-top: 3px solid #16a34a;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

.dark .thinking-spinner {
  border: 3px solid #374151;
  border-top: 3px solid #22c55e;
}

#login-view .app-logo {
  height: 6rem;
  width: 6rem;
}

.modal-tab-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  /* REMOVED width: 100% - This was forcing tabs to be full width on mobile horizontal scroll */
  text-align: left;
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 0.5rem;
  color: #374151;
  transition: background-color 0.2s, color 0.2s;
}

.dark .modal-tab-button {
  color: #d1d5db;
}

.modal-tab-button:hover {
  background-color: #f3f4f6;
}

.dark .modal-tab-button:hover {
  background-color: #1f2937;
}

.modal-tab-button.active {
  background-color: #dcfce7;
  color: #166534;
}

.dark .modal-tab-button.active {
  background-color: #14532d;
  color: #bbf7d0;
}

.modal-tab-button.active svg {
  color: #16a34a;
}

.dark .modal-tab-button.active svg {
  color: #22c55e;
}

/* FIX: Ensure hidden tabs stay hidden even with display:flex on base class */
.modal-tab-button.hidden {
  display: none !important;
}

.settings-modal-select {
  width: 100%;
  font-size: 0.875rem;
  color: var(--fg);
  background-color: var(--bg);
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.dark .settings-modal-select {
  border-color: #4b5563;
  background-color: #1f2937;
  color: var(--fg);
}

.settings-modal-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

.form-radio {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: inline-block;
  vertical-align: middle;
  background-origin: border-box;
  user-select: none;
  flex-shrink: 0;
  height: 1.25rem;
  width: 1.25rem;
  border-radius: 100%;
  border: 2px solid #9ca3af;
  background-color: var(--bg);
}

.dark .form-radio {
  border-color: #6b7280;
  background-color: #374151;
}

.form-radio:checked {
  border-color: var(--accent);
  background-color: var(--accent);
  border-width: 4px;
}

.form-radio:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.3);
}

.convo-menu-button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.35rem;
  border-radius: 9999px;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.convo-menu-button.menu-icon-hidden {
  opacity: 0 !important;
}

.convo-menu-button:hover {
  background: rgba(120, 120, 120, 0.12);
}

@media (min-width: 768px) {

  .convo-item-inner:hover .convo-menu-button,
  .convo-item-inner.active .convo-menu-button {
    opacity: 1 !important;
  }

  .convo-menu-button:hover {
    background: rgba(120, 120, 120, 0.12);
  }
}

.convo-item {
  position: relative;
}

.app-tagline {
  font-size: 14px;
  white-space: nowrap;
  font-weight: bold;
}

.convo-item-inner {
  background-color: white !important;
  position: relative;
}

.dark .convo-item-inner {
  background-color: black !important;
}

.convo-item-inner.bg-green-600 {
  background-color: #16a34a !important;
}

.dark .convo-item-inner.dark\:bg-green-600 {
  background-color: #16a34a !important;
}

.convo-pin-icon {
  color: #f59e0b;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.dark .convo-pin-icon {
  color: #fbbf24;
}

.convo-item-inner.bg-green-600 .convo-pin-icon {
  color: #fcd34d;
}

.trust-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  margin-right: 8px;
  white-space: nowrap;
  line-height: 1.2;
  height: 24px;
}

.trust-score-pill:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.trust-green {
  background-color: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.trust-yellow {
  background-color: #fef9c3;
  color: #854d0e;
  border-color: #fde047;
}

.trust-red {
  background-color: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.dark .trust-green {
  background-color: rgba(22, 163, 74, 0.2);
  color: #86efac;
  border-color: rgba(22, 163, 74, 0.4);
}

.dark .trust-yellow {
  background-color: rgba(234, 179, 8, 0.2);
  color: #fde047;
  border-color: rgba(234, 179, 8, 0.4);
}

.dark .trust-red {
  background-color: rgba(220, 38, 38, 0.2);
  color: #fca5a5;
  border-color: rgba(220, 38, 38, 0.4);
}

.meta {
  align-items: center !important;
}

/* --- NEW: Enhanced Input Styling (The "Conversational Surface") --- */

/* 1. Wrapper for the input area (The "Dock") */

/* UPDATED: Separated logic. This handles generic classes and the new wrapper */
.input-dock-container,
.input-wrapper,
form {
  position: relative;
  /* Crucial for button positioning */
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem;
  /* 16px padding */

  /* NEW: Ensure flex properties don't break absolute positioning */
  display: flex;
  align-items: flex-end;
  gap: 0;
  /* Remove gap since button is absolute */
}

/* UPDATED: Dark mode support for wrapper */
.dark .input-dock-container,
.dark .input-wrapper,
.dark form {
  background: rgba(0, 0, 0, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* UPDATED: Special logic for the inner footer ID to respect full-width parent */
#composer-footer {
  /* Needs relative for button positioning */
  position: relative;
  display: flex;
  align-items: flex-end;
  /* Background handled by wrapper, so we make this transparent */
  background: transparent !important;
  border: none !important;
  backdrop-filter: none !important;
  /* Remove default padding from previous version if any, padding is on wrapper or controlled by flex */
  padding: 16px;
  gap: 0;
}

/* 2. The Input Field Itself (The Capsule) */
#message-input {
  /* Modern Pill Shape */
  border-radius: 8px;
  /* Right padding ensures text doesn't go behind the button */
  padding: 10px 54px 10px 20px;

  /* Surface styling */
  background-color: transparent;
  border: none;
  box-shadow: none;

  /* Typography */
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);

  /* Behavior */
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  resize: none;
  width: 100%;
  min-height: 60px;
  max-height: 150px;

  /* NEW: Ensure it overrides Tailwind utility classes */
  margin: 0 !important;
  flex: 1;
}

.dark #message-input {
  background-color: transparent;
  color: white;
  box-shadow: none;
}

/* Focus State */
/* Focus State Removed per user request */
#message-input:focus {
  outline: none;
}

.dark #message-input:focus {
  /* No change */
}

#message-input::placeholder {
  color: #9ca3af;
}

/* 3. The Send Button */
#send-button,
#send-btn,
.send-btn,
button[type="submit"] {
  /* Position handled by Tailwind in HTML */
  /* position: absolute; */
  /* right: 26px; */
  /* bottom: 26px; */

  width: 32px;
  height: 32px;
  border-radius: 50%;

  /* Force the Green Circle Look */
  background-color: #16a34a !important;
  color: white !important;

  /* Center the Icon Perfectly */
  display: flex !important;
  align-items: center;
  justify-content: center;

  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

/* Hover State */
#send-button:hover {
  background-color: #15803d !important;
  /* Darker green */
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Disabled State (When input is empty) */
#send-button:disabled {
  background-color: #e5e7eb !important;
  color: #9ca3af !important;
  box-shadow: none;
  cursor: default;
  transform: none;
}

.dark #send-button:disabled {
  background-color: #374151 !important;
  color: #6b7280 !important;
}

/* Icon Sizing & Optical Centering */
#send-button svg {
  width: 16px;
  height: 16px;

  /* RESET any inline transforms from HTML */
  transform: rotate(45deg) !important;

  /* Optical correction: Paper planes look heavy on the left/bottom, 
       so we nudge it slightly right to make it look centered. */
  margin-left: 2px;
  margin-top: 0;

  fill: none;
  stroke: currentColor;
  stroke-width: 2px;
}

.profile-section-container {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.dark .profile-section-container {
  background-color: rgba(31, 41, 55, 0.5);
  border-color: #374151;
}

.chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  min-height: 2rem;
  /* Prevent collapse */
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #1f2937;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  /* Pill shape */
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.dark .profile-chip {
  background-color: #374151;
  border-color: #4b5563;
  color: #e5e7eb;
}

.profile-chip:hover {
  border-color: #d1d5db;
  background-color: #e5e7eb;
}

.dark .profile-chip:hover {
  border-color: #6b7280;
  background-color: #4b5563;
}

.chip-delete-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.2s;
}

.chip-delete-btn:hover {
  color: #ef4444;
  /* Red on hover */
  background-color: rgba(239, 68, 68, 0.1);
}

/* Suggestions Area */
.suggestions-area {
  margin-top: 0.75rem;
}

.suggestion-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.suggestion-pill {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  background-color: rgba(22, 163, 74, 0.08);
  /* Very light green */
  color: #15803d;
  cursor: pointer;
  border: 1px dashed #86efac;
  transition: all 0.2s;
}

.dark .suggestion-pill {
  background-color: rgba(22, 163, 74, 0.15);
  color: #86efac;
  border-color: #15803d;
}

.suggestion-pill:hover {
  background-color: #16a34a;
  color: white;
  border-color: #16a34a;
  transform: translateY(-1px);
}

/* Empty State */
.empty-section-state {
  text-align: center;
  padding: 1rem;
  color: #9ca3af;
  font-style: italic;
  font-size: 0.9rem;
  border: 2px dashed #e5e7eb;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.dark .empty-section-state {
  border-color: #374151;
  color: #6b7280;
}

/* Visible Scrollbar for Input */
.input-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.dark .input-scrollbar {
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.input-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.input-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.input-scrollbar::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.dark .input-scrollbar::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
}