/* ==========================================================================
   GPS IT Design System & Tokens
   ========================================================================== */
:root {
  /* Brand Core Colors */
  --gps-bg: #F6F8FC;
  --gps-cards: #FFFFFF;
  --gps-sidebar: #FFFFFF;
  --gps-navy: #162341;
  --gps-blue: #5B7BFB;
  --gps-orange: #FF6600;

  /* Extended Palettes */
  --navy-dark: #0D1629;
  --navy-light: #253866;
  --blue-hover: #4869F4;
  --orange-hover: #E65C00;
  
  --text-primary: #162341;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --text-light: #FFFFFF;

  --border-subtle: #E2E8F0;
  --border-active: #5B7BFB;

  --success-color: #10B981;
  --error-color: #EF4444;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;

  /* Sizing & Radius */
  --sidebar-width: 280px;
  --header-height: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(22, 35, 65, 0.05);
  --shadow-md: 0 4px 16px rgba(22, 35, 65, 0.08);
  --shadow-lg: 0 10px 30px rgba(22, 35, 65, 0.1);
  --shadow-blue: 0 4px 14px rgba(91, 123, 251, 0.28);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background-color: var(--gps-bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Layout Structure
   ========================================================================== */
.app-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  position: relative;
  background-color: var(--gps-bg);
  background-image: radial-gradient(circle at 10% 10%, rgba(91, 123, 251, 0.04), transparent 40%),
                    radial-gradient(circle at 90% 90%, rgba(255, 102, 0, 0.03), transparent 40%);
}

/* ==========================================================================
   Sidebar (GPS IT)
   ========================================================================== */
.sidebar {
  width: var(--sidebar-width);
  height: 100%;
  background-color: var(--gps-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  z-index: 40;
  box-shadow: 2px 0 12px rgba(22, 35, 65, 0.03);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gps-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(22, 35, 65, 0.2);
}

.brand-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: #FFFFFF;
}

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

.brand-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--gps-navy);
}

.brand-tag {
  font-size: 9px;
  font-weight: 700;
  background-color: var(--gps-orange);
  color: #FFFFFF;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.sidebar-actions {
  padding: 16px;
}

.btn-new-chat {
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gps-blue) 0%, #4361EE 100%);
  color: #FFFFFF;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-blue);
  transition: all 0.2s ease;
}

.btn-new-chat:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--blue-hover) 0%, #3B53DC 100%);
  box-shadow: 0 6px 18px rgba(91, 123, 251, 0.4);
}

.sidebar-section-title {
  padding: 6px 18px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 13px;
  border-left: 3px solid transparent;
  user-select: none;
}

.chat-item:hover {
  background-color: var(--gps-bg);
  color: var(--text-primary);
}

.chat-item.active {
  background-color: rgba(91, 123, 251, 0.08);
  color: var(--gps-blue);
  border-left-color: var(--gps-blue);
  font-weight: 600;
}

.chat-item-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  margin-right: 8px;
}

.chat-item-delete {
  opacity: 0;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: opacity 0.2s, color 0.2s;
}

.chat-item:hover .chat-item-delete {
  opacity: 1;
}

.chat-item-delete:hover {
  color: var(--error-color);
}

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #FFFFFF;
}

.server-status-card {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-indicator-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--text-muted);
}

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

.status-info {
  display: flex;
  flex-direction: column;
}

.status-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gps-navy);
}

.status-sub {
  font-size: 10px;
  color: var(--text-muted);
}

/* ==========================================================================
   Main Chat Area
   ========================================================================== */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  background-color: var(--gps-bg);
}

.chat-header {
  height: var(--header-height);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  z-index: 20;
}

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

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

.header-model-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--gps-navy);
  display: flex;
  align-items: center;
  gap: 6px;
}

.model-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--gps-blue);
  background: rgba(91, 123, 251, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
}

.header-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(22, 35, 65, 0.06);
  color: var(--gps-navy);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
}

.performance-hud {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 12px;
  box-shadow: var(--shadow-sm);
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hud-label {
  color: var(--text-muted);
}

.hud-value {
  color: var(--gps-navy);
  font-weight: 600;
}

.hud-value.highlight {
  color: var(--gps-blue);
}

.hud-divider {
  width: 1px;
  height: 12px;
  background-color: var(--border-subtle);
}

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

/* ==========================================================================
   Chat Messages
   ========================================================================== */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-behavior: smooth;
}

/* Welcome Screen GPS IT */
.welcome-screen {
  margin: auto;
  max-width: 760px;
  text-align: center;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.welcome-badge {
  display: inline-block;
  background: rgba(255, 102, 0, 0.1);
  color: var(--gps-orange);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  border: 1px solid rgba(255, 102, 0, 0.2);
}

.welcome-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--gps-navy);
}

.text-gradient {
  background: linear-gradient(135deg, var(--gps-blue) 0%, var(--gps-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-desc {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin-bottom: 32px;
  max-width: 580px;
}

.suggestion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  width: 100%;
  text-align: left;
}

.suggestion-card {
  background: var(--gps-cards);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.suggestion-card:hover {
  transform: translateY(-2px);
  border-color: var(--gps-blue);
  box-shadow: var(--shadow-md);
}

.card-icon {
  font-size: 18px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon.blue {
  background: rgba(91, 123, 251, 0.1);
}

.card-icon.orange {
  background: rgba(255, 102, 0, 0.1);
}

.card-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-text strong {
  color: var(--gps-navy);
  font-size: 13px;
  font-weight: 600;
}

.card-text span {
  color: var(--text-muted);
  font-size: 12px;
}

/* Message Rows */
.message-row {
  display: flex;
  gap: 14px;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}

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

.message-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.message-row.user .message-avatar {
  display: none;
}

.message-row.assistant .message-avatar {
  background: var(--gps-navy);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(22, 35, 65, 0.15);
}

.message-bubble {
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  position: relative;
  max-width: calc(100% - 48px);
  line-height: 1.65;
}

.message-row.user .message-bubble {
  background: var(--gps-navy);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
  box-shadow: 0 3px 12px rgba(22, 35, 65, 0.15);
  font-size: 14px;
}

.message-row.assistant .message-bubble {
  background-color: var(--gps-cards);
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: 4px;
  flex: 1;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Thinking / Reasoning Accordion
   ========================================================================== */
.thinking-container {
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  background: rgba(91, 123, 251, 0.04);
  border: 1px solid rgba(91, 123, 251, 0.15);
  overflow: hidden;
}

.thinking-header {
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  background: rgba(91, 123, 251, 0.08);
  font-size: 12px;
  font-weight: 600;
  color: var(--gps-navy);
  transition: background 0.15s ease;
}

.thinking-header:hover {
  background: rgba(91, 123, 251, 0.12);
}

.thinking-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--gps-orange);
  animation: pulse-orange 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-orange {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(255, 102, 0, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(255, 102, 0, 0); }
}

.thinking-chevron {
  transition: transform 0.2s ease;
  color: var(--text-muted);
}

.thinking-container.open .thinking-chevron {
  transform: rotate(180deg);
}

.thinking-body {
  display: none;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-wrap;
  border-top: 1px solid rgba(91, 123, 251, 0.1);
  max-height: 320px;
  overflow-y: auto;
  background: #FFFFFF;
}

.thinking-container.open .thinking-body {
  display: block;
}

/* ==========================================================================
   Markdown Formatting
   ========================================================================== */
.markdown-body {
  color: var(--text-primary);
  font-size: 14px;
}

.markdown-body p {
  margin-bottom: 12px;
}

.markdown-body p:last-child {
  margin-bottom: 0;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3 {
  font-family: var(--font-display);
  margin-top: 16px;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--gps-navy);
}

.markdown-body ul, .markdown-body ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.markdown-body li {
  margin-bottom: 4px;
}

.markdown-body blockquote {
  border-left: 3px solid var(--gps-blue);
  padding: 8px 14px;
  margin-bottom: 12px;
  background: rgba(91, 123, 251, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
}

.markdown-body code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: #EEF2F6;
  padding: 2px 6px;
  border-radius: 4px;
  color: #D9480F;
}

.code-block-wrapper {
  margin: 14px 0;
  border-radius: var(--radius-md);
  background: #162341;
  border: 1px solid var(--navy-dark);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(22, 35, 65, 0.12);
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #0D1629;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  color: #94A3B8;
}

.btn-copy-code {
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: var(--font-sans);
  padding: 3px 8px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.btn-copy-code:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.code-block-wrapper pre {
  margin: 0;
  padding: 14px;
  overflow-x: auto;
}

.code-block-wrapper pre code {
  background: transparent;
  padding: 0;
  color: #F8FAFC;
  font-size: 13px;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 13px;
}

.markdown-body th, .markdown-body td {
  padding: 8px 12px;
  border: 1px solid var(--border-subtle);
  text-align: left;
}

.markdown-body th {
  background: #F8FAFC;
  color: var(--gps-navy);
  font-weight: 600;
}

/* Message Footer */
.message-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.message-metrics {
  display: flex;
  gap: 12px;
}

.message-actions {
  display: flex;
  gap: 6px;
}

.btn-msg-action {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.btn-msg-action:hover {
  color: var(--gps-navy);
  background: #EEF2F6;
}

/* ==========================================================================
   Chat Input Area
   ========================================================================== */
.chat-input-wrapper {
  padding: 0 24px 20px 24px;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}

.chat-input-form {
  position: relative;
}

.input-container {
  display: flex;
  align-items: flex-end;
  background: var(--gps-cards);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  box-shadow: 0 4px 18px rgba(22, 35, 65, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-container:focus-within {
  border-color: var(--gps-blue);
  box-shadow: 0 0 0 3px rgba(91, 123, 251, 0.15), 0 6px 22px rgba(22, 35, 65, 0.08);
}

.user-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  resize: none;
  max-height: 180px;
  padding: 4px 6px;
}

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

.input-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.btn-send {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gps-blue);
  border: none;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-blue);
}

.btn-send:hover:not(:disabled) {
  background: var(--blue-hover);
  transform: scale(1.04);
}

.btn-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-stop {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--error-color);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-stop:hover {
  background: rgba(239, 68, 68, 0.18);
}

.input-hint {
  text-align: center;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   Settings Drawer
   ========================================================================== */
.settings-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  height: 100%;
  background: #FFFFFF;
  border-left: 1px solid var(--border-subtle);
  z-index: 50;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -6px 0 25px rgba(22, 35, 65, 0.08);
}

.settings-drawer.open {
  transform: translateX(0);
}

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

.drawer-header h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--gps-navy);
}

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

.setting-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setting-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gps-navy);
}

.setting-header-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.setting-val-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  background: #EEF2F6;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--gps-blue);
  font-weight: 600;
}

.form-control {
  width: 100%;
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-control:focus {
  border-color: var(--gps-blue);
  background: #FFFFFF;
}

.form-help {
  font-size: 11px;
  color: var(--text-muted);
}

.slider {
  width: 100%;
  accent-color: var(--gps-blue);
  cursor: pointer;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
}

.toggle-group {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.toggle-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #CBD5E1;
  border-radius: 24px;
  transition: 0.2s;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #FFFFFF;
  border-radius: 50%;
  transition: 0.2s;
}

input:checked + .switch-slider {
  background-color: var(--gps-blue);
}

input:checked + .switch-slider:before {
  transform: translateX(18px);
}

/* Common Buttons */
.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-icon:hover {
  background: #EEF2F6;
  color: var(--gps-navy);
}

.btn-action {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  color: var(--gps-navy);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.btn-action:hover {
  background: #F8FAFC;
  border-color: var(--gps-blue);
  color: var(--gps-blue);
}

.btn-secondary {
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  color: var(--gps-navy);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background: #EEF2F6;
}

/* Overlays */
.sidebar-overlay, .drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(22, 35, 65, 0.4);
  backdrop-filter: blur(2px);
  z-index: 35;
  display: none;
}

.sidebar-overlay.active, .drawer-overlay.active {
  display: block;
}

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

.toast {
  background: var(--gps-navy);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  animation: slide-in 0.25s ease forwards;
}

@keyframes slide-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
.mobile-menu-btn, .sidebar-close-btn {
  display: none;
}

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
  }

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

  .mobile-menu-btn, .sidebar-close-btn {
    display: flex;
  }

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

  .performance-hud {
    display: none;
  }
}

/* ===========================================================================
   GPS IT Premium Interface
   =========================================================================== */
:root {
  --gps-bg: #07111f;
  --gps-surface: #0d1a2b;
  --gps-surface-2: #122238;
  --gps-card: rgba(17, 32, 53, 0.82);
  --gps-border: rgba(164, 188, 224, 0.14);
  --gps-border-strong: rgba(164, 188, 224, 0.24);
  --gps-navy: #f3f7ff;
  --gps-text: #f3f7ff;
  --gps-muted: #8fa4c2;
  --gps-blue: #6d8cff;
  --gps-blue-deep: #4568ef;
  --gps-orange: #ff6a00;
  --gps-orange-soft: #ff9b4a;
  --sidebar-width: 288px;
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.34);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.24);
  --radius-lg: 22px;
  --radius-md: 14px;
}

html,
body {
  background: var(--gps-bg);
  color: var(--gps-text);
}

body {
  overflow: hidden;
  background:
    radial-gradient(circle at 78% -10%, rgba(80, 112, 255, 0.15), transparent 35%),
    radial-gradient(circle at 10% 110%, rgba(255, 106, 0, 0.08), transparent 30%),
    var(--gps-bg);
}

button,
textarea,
input,
select {
  font-family: inherit;
}

::selection {
  color: #fff;
  background: rgba(255, 106, 0, 0.55);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(143, 164, 194, 0.24);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(143, 164, 194, 0.42);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.app-layout {
  position: relative;
  isolation: isolate;
  background: transparent;
}

.sidebar {
  position: relative;
  z-index: 40;
  flex: 0 0 var(--sidebar-width);
  width: var(--sidebar-width);
  min-width: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(17, 34, 57, 0.98), rgba(8, 19, 33, 0.98)),
    var(--gps-surface);
  border-right: 1px solid var(--gps-border);
  box-shadow: 18px 0 55px rgba(0, 0, 0, 0.14);
  transition: flex-basis 240ms ease, width 240ms ease, transform 240ms ease;
}

.sidebar::after {
  position: absolute;
  top: -110px;
  left: -125px;
  width: 260px;
  height: 260px;
  content: '';
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.14), transparent 68%);
}

.sidebar.collapsed {
  flex-basis: 84px;
  width: 84px;
}

.sidebar-header {
  position: relative;
  z-index: 1;
  min-height: 132px;
  height: auto;
  padding: 18px 18px 14px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(164, 188, 224, 0.1);
}

.brand {
  width: 100%;
  min-width: 0;
  align-items: flex-start;
  gap: 6px;
}

.brand-logo-lockup {
  display: flex;
  width: 220px;
  height: 90px;
  align-items: center;
  justify-content: flex-start;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.2));
}

.brand-mark {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: Outfit, Inter, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -1px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  background: linear-gradient(145deg, #ff812b, #d84b00 68%, #365ee7);
  box-shadow: 0 10px 28px rgba(255, 106, 0, 0.22);
}

.brand-mark span {
  color: #ffd8bc;
}

.brand-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  padding-left: 2px;
}

.brand-title-wrap {
  gap: 8px;
}

.brand-title {
  color: #fff;
  font-family: Outfit, Inter, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-tag {
  color: #ffd2b3;
  border-color: rgba(255, 154, 84, 0.34);
  background: rgba(255, 106, 0, 0.12);
}

.brand-subtitle {
  color: var(--gps-muted);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sidebar-close-btn {
  display: none;
}

.sidebar-actions {
  position: relative;
  z-index: 1;
  padding: 18px 16px 14px;
}

.btn-new-chat {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 177, 121, 0.34);
  border-radius: 14px;
  background: linear-gradient(135deg, #ff7a1a, #e94f00 68%, #bd3d00);
  box-shadow: 0 12px 25px rgba(233, 79, 0, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.btn-new-chat:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(233, 79, 0, 0.3);
}

.sidebar-section-title {
  padding: 8px 20px 10px;
  color: #7188a8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chat-list {
  position: relative;
  z-index: 1;
  padding: 0 10px;
}

.chat-item {
  min-height: 44px;
  margin-bottom: 4px;
  padding: 10px 11px;
  color: #a9b9cf;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.chat-item:hover {
  color: #fff;
  background: rgba(125, 153, 204, 0.1);
  border-color: rgba(164, 188, 224, 0.12);
  transform: translateX(2px);
}

.chat-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(87, 119, 239, 0.22), rgba(87, 119, 239, 0.06));
  border-color: rgba(111, 140, 255, 0.25);
  box-shadow: inset 3px 0 0 var(--gps-blue);
}

.chat-item-title {
  color: inherit;
}

.chat-item-delete {
  color: #7084a2;
}

.chat-item-delete:hover {
  color: #ff9b78;
}

.sidebar-footer {
  position: relative;
  z-index: 1;
  margin: auto 12px 14px;
  padding: 12px;
  border: 1px solid rgba(164, 188, 224, 0.13);
  border-radius: 16px;
  background: rgba(4, 12, 23, 0.3);
}

.server-status-card {
  margin-bottom: 10px;
  padding: 4px 2px;
}

.status-info {
  color: #dfe8f7;
}

.status-label {
  font-size: 12px;
  font-weight: 700;
}

.status-sub {
  color: #7188a8;
  font-size: 10px;
}

.status-indicator-dot.online {
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.1), 0 0 18px rgba(52, 211, 153, 0.75);
}

.sidebar-footer > .btn-icon {
  width: 100%;
  min-height: 36px;
  justify-content: center;
  color: #94a9c8;
  border: 1px solid rgba(164, 188, 224, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.sidebar-footer > .btn-icon:hover {
  color: #fff;
  border-color: rgba(111, 140, 255, 0.36);
  background: rgba(111, 140, 255, 0.12);
}

.sidebar.collapsed .sidebar-header {
  min-height: 82px;
  padding: 16px 18px;
  align-items: center;
}

.sidebar.collapsed .brand {
  align-items: center;
}

.sidebar.collapsed .brand-logo-lockup,
.sidebar.collapsed .brand-text,
.sidebar.collapsed .sidebar-section-title,
.sidebar.collapsed .chat-item-title,
.sidebar.collapsed .chat-item-delete,
.sidebar.collapsed .status-info {
  display: none;
}

.sidebar.collapsed .brand-mark {
  display: flex;
}

.sidebar.collapsed .sidebar-actions {
  padding: 18px 16px 14px;
}

.sidebar.collapsed .btn-new-chat {
  width: 50px;
  min-height: 50px;
  padding: 0;
  margin: 0 auto;
}

.sidebar.collapsed .chat-list {
  padding: 0 12px;
}

.sidebar.collapsed .chat-item {
  justify-content: center;
  min-height: 44px;
  padding: 10px 0;
}

.sidebar.collapsed .chat-item::before {
  width: 7px;
  height: 7px;
  content: '';
  border-radius: 50%;
  background: #7389ad;
}

.sidebar.collapsed .chat-item.active::before {
  background: var(--gps-orange-soft);
  box-shadow: 0 0 12px rgba(255, 155, 74, 0.75);
}

.sidebar.collapsed .sidebar-footer {
  margin-right: 10px;
  margin-left: 10px;
  padding: 8px;
}

.sidebar.collapsed .server-status-card {
  justify-content: center;
  margin: 0 0 8px;
  padding: 8px 0;
}

.sidebar.collapsed .sidebar-footer > .btn-icon {
  min-height: 38px;
}

.chat-main {
  min-width: 0;
  background:
    radial-gradient(circle at 72% 9%, rgba(86, 112, 239, 0.12), transparent 34%),
    radial-gradient(circle at 26% 96%, rgba(255, 106, 0, 0.07), transparent 30%),
    #091525;
}

.chat-header {
  position: relative;
  z-index: 5;
  min-height: 76px;
  padding: 0 30px;
  border-bottom: 1px solid rgba(164, 188, 224, 0.1);
  background: rgba(8, 18, 32, 0.64);
  backdrop-filter: blur(20px);
}

.header-left {
  gap: 12px;
}

.header-title-container {
  gap: 5px;
}

.header-model-name {
  color: #f7faff;
  font-family: Outfit, Inter, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.model-badge,
.header-badge {
  border-color: rgba(111, 140, 255, 0.25);
  background: rgba(111, 140, 255, 0.1);
}

.model-badge {
  color: #afc0ff;
}

.header-badge {
  color: #8499ba;
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.performance-hud {
  padding: 8px 14px;
  color: #90a6c6;
  border: 1px solid rgba(164, 188, 224, 0.14);
  border-radius: 999px;
  background: rgba(17, 34, 57, 0.66);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.14);
}

.hud-value {
  color: #dfe8f8;
}

.hud-value.highlight {
  color: #ffb27e;
}

.hud-divider {
  background: rgba(164, 188, 224, 0.18);
}

.header-right {
  gap: 8px;
}

.btn-icon,
.btn-action {
  color: #9bb0cc;
  border-color: rgba(164, 188, 224, 0.14);
  background: rgba(255, 255, 255, 0.035);
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.btn-icon:hover,
.btn-action:hover {
  color: #fff;
  border-color: rgba(111, 140, 255, 0.4);
  background: rgba(111, 140, 255, 0.12);
  transform: translateY(-1px);
}

.sidebar-toggle-btn {
  display: flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.sidebar-toggle-icon {
  transition: transform 220ms ease;
}

.sidebar.collapsed ~ .sidebar-overlay + .chat-main .sidebar-toggle-icon {
  transform: rotate(180deg);
}

.chat-messages {
  position: relative;
  padding: 34px clamp(18px, 4vw, 70px) 28px;
}

.welcome-screen {
  position: relative;
  max-width: 930px;
  padding: clamp(32px, 7vh, 82px) 0 24px;
}

.welcome-screen::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 500px;
  height: 260px;
  content: '';
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(92, 120, 255, 0.16), transparent 68%);
  transform: translateX(-50%);
  filter: blur(8px);
}

.welcome-badge {
  position: relative;
  color: #ffb27e;
  border-color: rgba(255, 132, 55, 0.3);
  background: rgba(255, 106, 0, 0.09);
  box-shadow: 0 8px 24px rgba(255, 106, 0, 0.08);
}

.welcome-title,
.welcome-desc,
.welcome-meta,
.suggestion-grid {
  position: relative;
}

.welcome-title {
  max-width: 760px;
  margin-top: 22px;
  color: #f7faff;
  font-family: Outfit, Inter, sans-serif;
  font-size: clamp(34px, 4.8vw, 58px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.welcome-title .text-gradient,
.welcome-title .gradient-text {
  background: linear-gradient(110deg, #fff 4%, #b9c7ff 45%, #ff9a57 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-desc {
  max-width: 650px;
  margin-bottom: 0;
  margin-top: 18px;
  color: #8fa4c2;
  font-size: 15px;
  line-height: 1.75;
}

.welcome-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: #a9b9d0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(164, 188, 224, 0.14);
  border-radius: 999px;
  background: rgba(17, 34, 57, 0.58);
}

.meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #42d59e;
  box-shadow: 0 0 10px rgba(66, 213, 158, 0.8);
}

.suggestion-grid {
  gap: 14px;
  margin-top: 34px;
}

.suggestion-card {
  position: relative;
  min-height: 144px;
  overflow: hidden;
  padding: 19px;
  border: 1px solid rgba(164, 188, 224, 0.14);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(20, 40, 67, 0.82), rgba(11, 25, 43, 0.82));
  align-items: flex-start;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.suggestion-card::before {
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 2px;
  content: '';
  opacity: 0.8;
  background: linear-gradient(90deg, transparent, var(--gps-blue), transparent);
}

.suggestion-card::after {
  position: absolute;
  right: -35px;
  bottom: -55px;
  width: 130px;
  height: 130px;
  content: '';
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 132, 255, 0.16), transparent 70%);
}

.suggestion-card:hover {
  border-color: rgba(111, 140, 255, 0.42);
  transform: translateY(-5px);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(111, 140, 255, 0.06);
}

.card-icon {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.suggestion-card h3 {
  position: relative;
  z-index: 1;
  margin-top: 15px;
  color: #eff4ff;
  font-family: Outfit, Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.card-text {
  position: relative;
  z-index: 1;
  min-width: 0;
  gap: 7px;
}

.card-text strong {
  color: #eff4ff;
  font-family: Outfit, Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.card-text span {
  color: #879bb8;
  font-size: 12px;
  line-height: 1.5;
}

.suggestion-card p {
  position: relative;
  z-index: 1;
  margin-top: 7px;
  color: #879bb8;
  line-height: 1.5;
}

.message-row {
  max-width: 930px;
  margin-right: auto;
  margin-left: auto;
}

.message-bubble {
  border-color: rgba(164, 188, 224, 0.14);
  background: rgba(17, 34, 57, 0.72);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.message-row.user .message-bubble {
  color: #fff;
  border-color: rgba(255, 145, 77, 0.23);
  background: linear-gradient(135deg, rgba(199, 72, 0, 0.78), rgba(132, 51, 7, 0.82));
}

.message-meta {
  color: #7188a8;
}

.message-content {
  color: #dce6f5;
}

.message-content code {
  color: #ffc19d;
  background: rgba(255, 106, 0, 0.1);
}

.message-content pre {
  border-color: rgba(164, 188, 224, 0.16);
  background: #07111f;
}

.chat-input-wrapper {
  padding: 14px clamp(18px, 4vw, 70px) 22px;
  background: linear-gradient(180deg, transparent, rgba(7, 17, 31, 0.92) 32%);
}

.chat-input-form {
  max-width: 930px;
}

.input-container {
  min-height: 62px;
  border: 1px solid rgba(164, 188, 224, 0.2);
  border-radius: 19px;
  background: rgba(16, 32, 53, 0.86);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.input-container:focus-within {
  border-color: rgba(111, 140, 255, 0.62);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(111, 140, 255, 0.08);
}

#user-input {
  color: #f3f7ff;
}

#user-input::placeholder {
  color: #7085a4;
}

.btn-send {
  color: #fff;
  border: 1px solid rgba(255, 188, 145, 0.38);
  border-radius: 14px;
  background: linear-gradient(135deg, #ff7a1a, #df4e00);
  box-shadow: 0 8px 22px rgba(223, 78, 0, 0.23);
}

.btn-send:hover {
  filter: brightness(1.08);
  box-shadow: 0 11px 26px rgba(223, 78, 0, 0.34);
}

.chat-input-hint {
  color: #607797;
}

.settings-drawer {
  color: var(--gps-text);
  border-left-color: rgba(164, 188, 224, 0.15);
  background: linear-gradient(180deg, #102139, #0a1728);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.28);
}

.settings-header {
  border-bottom-color: rgba(164, 188, 224, 0.12);
}

.settings-header h2,
.setting-group label {
  color: #f3f7ff;
}

.settings-header p,
.setting-description,
.range-labels,
.settings-footer {
  color: #8196b5;
}

.setting-group select,
.setting-group textarea,
.setting-group input[type="text"] {
  color: #e9f0fc;
  border-color: rgba(164, 188, 224, 0.18);
  background: rgba(4, 13, 25, 0.42);
}

.setting-group select:focus,
.setting-group textarea:focus,
.setting-group input[type="text"]:focus {
  border-color: rgba(111, 140, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(111, 140, 255, 0.1);
}

.settings-footer {
  border-top-color: rgba(164, 188, 224, 0.12);
}

.btn-secondary,
.btn-reset {
  color: #b9c8de;
  border-color: rgba(164, 188, 224, 0.18);
  background: rgba(255, 255, 255, 0.045);
}

.btn-secondary:hover,
.btn-reset:hover {
  color: #fff;
  border-color: rgba(111, 140, 255, 0.4);
  background: rgba(111, 140, 255, 0.12);
}

.sidebar-overlay,
.drawer-overlay {
  background: rgba(2, 8, 17, 0.7);
  backdrop-filter: blur(8px);
}

.toast {
  color: #f7faff;
  border-color: rgba(164, 188, 224, 0.18);
  background: #142640;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 1200px) {
  .header-center {
    display: none;
  }
}

@media (max-width: 900px) {
  body {
    overflow: hidden;
  }

  .sidebar {
    width: min(88vw, 310px);
    flex-basis: auto;
    box-shadow: 25px 0 60px rgba(0, 0, 0, 0.42);
  }

  .sidebar.collapsed {
    width: min(88vw, 310px);
    flex-basis: auto;
  }

  .sidebar.collapsed .brand-logo-lockup,
  .sidebar.collapsed .brand-text,
  .sidebar.collapsed .sidebar-section-title,
  .sidebar.collapsed .chat-item-title,
  .sidebar.collapsed .chat-item-delete,
  .sidebar.collapsed .status-info {
    display: initial;
  }

  .sidebar.collapsed .brand-mark {
    display: none;
  }

  .sidebar.collapsed .btn-new-chat {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
  }

  .sidebar.collapsed .chat-item {
    justify-content: flex-start;
    min-height: 44px;
    padding: 10px 11px;
  }

  .sidebar.collapsed .chat-item::before {
    display: none;
  }

  .sidebar.collapsed .sidebar-footer {
    margin: auto 12px 14px;
    padding: 12px;
  }

  .sidebar.collapsed .server-status-card {
    justify-content: flex-start;
    margin-bottom: 10px;
    padding: 4px 2px;
  }

  .sidebar-toggle-btn {
    display: none;
  }

  .mobile-menu-btn,
  .sidebar-close-btn {
    display: flex;
  }

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

  .header-right .btn-action span {
    display: none;
  }

  .welcome-screen {
    padding-top: 34px;
  }

  .welcome-title {
    font-size: clamp(34px, 10vw, 48px);
  }

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

  .chat-input-wrapper {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
