/* ==========================================================================
   Claude-Inspired Minimalist Chat UI Stylesheet
   Focus: Centered column, no visual clutter, document-like typography
   ========================================================================== */

:root {
  --bg-main: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-hover: #f1f5f9;
  --bg-user-bubble: #f4f4f5;

  --border-color: #e4e4e7;
  --border-subtle: #f1f5f9;

  --text-main: #18181b;
  --text-body: #27272a;
  --text-muted: #71717a;
  --text-light: #a1a1aa;

  --primary: #18181b;
  --primary-hover: #27272a;

  --success: #10b981;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  --danger: #ef4444;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --content-max-width: 760px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Slim scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

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

::-webkit-scrollbar-thumb {
  background: #e4e4e7;
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: #cbd5e1;
}

/* App Layout */
.app-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  background-color: var(--bg-main);
  justify-content: center;
}

.main-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background-color: var(--bg-main);
  position: relative;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Header: Minimal & Unobtrusive
   -------------------------------------------------------------------------- */
.chat-header {
  height: 52px;
  padding: 0 28px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  z-index: 10;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}



.status-dot.online {
  background-color: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.status-dot.offline {
  background-color: var(--danger);
}

.chat-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-ghost:hover {
  color: var(--text-main);
  background-color: var(--bg-hover);
}

.btn-icon-only {
  padding: 6px;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   1. Centered Conversation Stream
   -------------------------------------------------------------------------- */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 36px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Strictly centers conversation horizontally */
  scroll-behavior: smooth;
}

/* --------------------------------------------------------------------------
   6. Empty / Idle Starting State
   -------------------------------------------------------------------------- */
.welcome-container {
  margin: auto;
  max-width: var(--content-max-width);
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 16px;
  animation: fadeIn 0.25s ease-out;
}

.welcome-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  margin-bottom: 4px;
}

.welcome-container h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

.welcome-container p {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.55;
}

.suggestion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 720px;
  margin-top: 20px;
}

.suggestion-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 14px 16px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.suggestion-card:hover {
  border-color: #cbd5e1;
  background-color: var(--bg-subtle);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

.suggestion-card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 3px;
}

.suggestion-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Messages Stream & Vertical Rhythm
   -------------------------------------------------------------------------- */
.messages-list {
  display: flex;
  flex-direction: column;
  max-width: var(--content-max-width);
  width: 100%;
  margin: 0 auto;
}

/* 2. Kill strict avatar-bubble pattern */
.message-avatar {
  display: none !important;
}

.message-row {
  display: flex;
  width: 100%;
  animation: fadeIn 0.15s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 3. Vertical Rhythm: More space before a new user exchange */
.message-row.user {
  justify-content: flex-end;
  margin-top: 36px;
}

.message-row.user:first-child {
  margin-top: 0;
}

/* 3. Vertical Rhythm: Tight gap between prompt & AI reply */
.message-row.assistant {
  justify-content: flex-start;
  margin-top: 12px;
}

/* User Message: Subtle pill bubble, right-aligned */
.message-row.user .message-content-wrapper {
  max-width: 78%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.message-row.user .message-bubble {
  background-color: var(--bg-user-bubble);
  color: var(--text-main);
  padding: 10px 16px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.55;
  word-break: break-word;
}

/* Assistant Message: NO bubble background at all — reads like a document */
.message-row.assistant .message-content-wrapper {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.message-row.assistant .message-bubble {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  width: 100%;
  word-break: break-word;
  /* 4. Typography: Easy-to-read font size and comfortable line-height */
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-body);
}

/* Markdown typography inside AI responses */
.message-bubble p {
  margin-bottom: 14px;
}

.message-bubble p:last-child {
  margin-bottom: 0;
}

.message-bubble h1,
.message-bubble h2,
.message-bubble h3,
.message-bubble h4 {
  color: var(--text-main);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-top: 22px;
  margin-bottom: 10px;
}

.message-bubble h1 {
  font-size: 21px;
}

.message-bubble h2 {
  font-size: 18px;
}

.message-bubble h3 {
  font-size: 16px;
}

.message-bubble ul,
.message-bubble ol {
  margin: 10px 0 14px 22px;
}

.message-bubble li {
  margin-bottom: 6px;
}

.message-bubble code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
  background-color: rgba(15, 23, 42, 0.05);
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--text-main);
}

.message-bubble pre {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 16px 0;
}

.message-bubble pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-body);
}

.message-bubble blockquote {
  border-left: 3px solid #cbd5e1;
  padding: 6px 14px;
  margin: 14px 0;
  color: var(--text-muted);
  font-style: italic;
}

/* 7. Timestamps and "Copy" appear ONLY on hover */
.message-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 8px;
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
}

.message-row:hover .message-meta {
  opacity: 1;
}

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

.copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s;
}

.copy-btn:hover {
  color: var(--text-main);
  text-decoration: underline;
}

/* Booking Confirmation Card */
.booking-card {
  margin-top: 14px;
  background-color: #ffffff;
  border: 1px solid var(--success-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  width: 100%;
  max-width: 520px;
}

.booking-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.booking-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--success-bg);
  color: #047857;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.booking-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
}

.booking-id {
  font-size: 11.5px;
  color: var(--text-light);
  font-family: ui-monospace, monospace;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.booking-item {
  display: flex;
  flex-direction: column;
}

.booking-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.booking-value {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
}

/* Typing Indicator */
.typing-indicator {
  display: none;
  align-items: center;
  max-width: var(--content-max-width);
  width: 100%;
  margin: 12px auto 0;
}

.typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 0;
}

.typing-bubble .dot {
  width: 5px;
  height: 5px;
  background-color: var(--text-light);
  border-radius: 50%;
  animation: pulse 1.4s infinite ease-in-out both;
}

.typing-bubble .dot:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-bubble .dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes pulse {

  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.typing-cursor {
  display: inline-block;
  color: var(--text-muted);
  font-weight: 700;
  margin-left: 2px;
  animation: cursorBlink 0.8s infinite;
}

@keyframes cursorBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   5. Composer Bar: Clean, Rounded, Ghost Until Active
   -------------------------------------------------------------------------- */
.chat-input-area {
  padding: 12px 24px 20px;
  background-color: var(--bg-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
  width: 100%;
}

.input-form {
  max-width: var(--content-max-width);
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 7px 10px 7px 14px;
  box-shadow: none;
  /* Removed visible shadow box */
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-form:focus-within {
  border-color: #cbd5e1;
  box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.05);
}

.btn-attach {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
  margin-bottom: 2px;
}

.btn-attach:hover {
  color: var(--text-main);
}

.message-input {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-main);
  background: transparent;
  max-height: 160px;
  padding: 6px 2px;
}

.message-input::placeholder {
  color: var(--text-light);
}

/* Send button: subtle/ghost until text is typed */
.btn-send {
  background-color: transparent;
  color: var(--text-light);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 2px;
  opacity: 0.25;
  transition: all 0.15s ease;
}

.btn-send.has-text {
  background-color: #18181b;
  color: #ffffff;
  opacity: 1;
  cursor: pointer;
}

.btn-send.has-text:hover {
  background-color: #27272a;
  transform: scale(1.03);
}

.btn-send.has-text:active {
  transform: scale(0.96);
}

.btn-send:disabled {
  background-color: transparent;
  color: var(--text-light);
  opacity: 0.25;
  cursor: not-allowed;
}

.input-helper {
  font-size: 11.5px;
  color: var(--text-light);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Modal & Dropzone
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  animation: modalIn 0.15s ease-out;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.btn-icon {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  color: var(--text-main);
  background-color: var(--bg-hover);
}

.modal-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dropzone {
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  background-color: var(--bg-subtle);
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: #18181b;
  background-color: #ffffff;
}

.dropzone-text {
  font-size: 13px;
  color: var(--text-main);
}

.dropzone-hint {
  font-size: 11.5px;
  color: var(--text-light);
}

.selected-file-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  font-size: 12.5px;
  font-weight: 500;
  margin-top: 6px;
}

.btn-remove-file {
  background: none;
  border: none;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
}

.btn-remove-file:hover {
  color: var(--danger);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-control {
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  background-color: #ffffff;
}

.form-control:focus {
  border-color: #18181b;
}

.upload-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-muted);
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--border-color);
  border-top-color: #18181b;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.btn {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}

.btn-primary {
  background-color: #18181b;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #27272a;
}

.btn-primary:disabled {
  background-color: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--bg-hover);
}

/* --------------------------------------------------------------------------
   Toast Notifications
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 100;
}

.toast {
  background-color: #18181b;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.15s ease-out;
}

.toast.success {
  background-color: #047857;
}

.toast.error {
  background-color: #b91c1c;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Sidebar: Documents & Chat History
   -------------------------------------------------------------------------- */
.sidebar {
  width: 260px;
  height: 100vh;
  background-color: #fafafa;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: margin-left 0.2s ease, transform 0.2s ease;
  z-index: 20;
}

.sidebar:not(.open) {
  margin-left: -260px;
}

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

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.sidebar-action {
  padding: 10px 12px 4px;
}

.btn-sidebar-new-chat {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-sidebar-new-chat:hover {
  background-color: var(--bg-hover);
  border-color: #cbd5e1;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.sidebar-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sessions-count-badge {
  background-color: #e4e4e7;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: var(--radius-full);
}

.documents-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: var(--radius-xs);
  font-size: 12.5px;
  color: var(--text-body);
  transition: background-color 0.15s ease;
}

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

.doc-name {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.doc-chunks {
  font-size: 10px;
  color: var(--text-muted);
  background-color: #e4e4e7;
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}

.sidebar-search {
  padding: 0 2px 4px;
}

.search-sessions-input {
  width: 100%;
  padding: 6px 10px;
  font-size: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  background-color: #ffffff;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.search-sessions-input:focus {
  border-color: #18181b;
}

.sessions-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.session-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 8px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

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

.session-item.active {
  background-color: #e4e4e7;
  color: #18181b;
}

.session-item-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: calc(100% - 36px);
}

.session-item-title {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-item-snippet {
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-item-meta {
  display: flex;
  align-items: center;
  gap: 4px;
}

.session-msg-pill {
  font-size: 10px;
  color: var(--text-muted);
  background-color: rgba(0, 0, 0, 0.05);
  padding: 1px 4px;
  border-radius: 3px;
}

.session-delete-btn {
  background: none;
  border: none;
  font-size: 14px;
  color: var(--text-light);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
}

.session-item:hover .session-delete-btn {
  opacity: 1;
}

.session-delete-btn:hover {
  color: var(--danger);
}

.empty-hint {
  font-size: 12px;
  color: var(--text-light);
  padding: 6px 8px;
  text-align: center;
}

.sidebar-footer {
  padding: 10px 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-sidebar-footer {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-sidebar-footer:hover {
  background-color: var(--bg-hover);
}

.current-session-badge {
  font-size: 10px;
  color: var(--text-light);
  font-family: ui-monospace, monospace;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 4px;
}

.current-session-badge:hover {
  color: var(--text-main);
}

/* Bookings table */
.modal-card-large {
  max-width: 680px;
}

.bookings-table-container {
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
}

.data-table th {
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-body);
}

.data-table tbody tr:hover {
  background-color: var(--bg-hover);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.text-center {
  text-align: center;
}

/* --------------------------------------------------------------------------
   Responsive Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12);
  }

  .sidebar:not(.open) {
    transform: translateX(-100%);
    margin-left: 0;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .chat-header {
    padding: 0 16px;
  }

  .chat-messages {
    padding: 20px 14px;
  }

  .chat-input-area {
    padding: 8px 14px 14px;
  }

  .message-row.user .message-content-wrapper {
    max-width: 88%;
  }

  .suggestion-grid {
    grid-template-columns: 1fr;
  }
}