/* Dedicated Full-Screen ChatGPT-Style Application Stylesheet
   PM SHRI KV Chhatrapati Sambhajinagar Cantt (SambhajiCanttBot) */

:root {
  --app-bg: #091322;
  --sidebar-bg: #050b14;
  --sidebar-border: #16263d;
  --chat-bg: #0a1728;
  --card-bg: #102035;
  --card-hover: #152b47;
  --input-bg: #0e1d31;
  --border-color: #1a304e;
  --border-active: #3b82f6;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --gold: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.25);
  --blue: #3b82f6;
  --emerald: #10b981;
  --rose: #f43f5e;

  --sidebar-width: 290px;
}

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

html, body {
  height: 100%;
  width: 100%;
  background-color: var(--app-bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
}

/* App Wrapper */
.app-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  position: relative;
}

/* =========================================
   1. COLLAPSIBLE APP SIDEBAR & BACKDROP
   ========================================= */
.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 45;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sidebar-backdrop.active {
  display: block;
  opacity: 1;
}

.app-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: 100%;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), min-width 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  z-index: 50;
}

.sidebar-inner-content {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: opacity 0.2s ease;
  overflow: hidden;
}

.app-sidebar.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  border-right: 1px solid transparent !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.app-sidebar.collapsed .sidebar-inner-content {
  opacity: 0 !important;
  pointer-events: none !important;
}

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

.sidebar-close-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.sidebar-close-btn:hover {
  background: var(--card-hover);
  color: #fff;
  border-color: var(--gold);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.sidebar-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.sidebar-brand-title {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}

.sidebar-brand-sub {
  font-size: 0.68rem;
  color: var(--gold);
  font-weight: 600;
}

.new-chat-btn {
  margin: 14px 16px 10px;
  padding: 11px 16px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.18s ease;
}

.new-chat-btn:hover {
  background: var(--card-hover);
  border-color: var(--gold);
  box-shadow: 0 0 14px var(--gold-glow);
}

.new-chat-shortcut {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
}

/* Conversation List Scroll View */
.conversation-section {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.conversation-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 10px 8px 4px;
}

.conversation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  position: relative;
}

.conversation-item:hover {
  background: var(--card-bg);
  color: #fff;
}

.conversation-item.active {
  background: var(--card-bg);
  color: #fff;
  font-weight: 600;
  border-left: 3px solid var(--gold);
}

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

.conversation-delete-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  opacity: 0;
  padding: 2px 4px;
  border-radius: 4px;
  transition: opacity 0.15s, color 0.15s;
}

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

.conversation-delete-btn:hover {
  color: var(--rose);
}

.empty-conversations-notice {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 24px 12px;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--sidebar-border);
  background: #040810;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-avatar-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #fff;
}

.user-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1e3a8a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid #3b82f6;
}

.lang-select-dropdown {
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--gold);
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
}

.sidebar-nav-links {
  display: flex;
  gap: 8px;
  font-size: 0.78rem;
}

.sidebar-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.sidebar-nav-link:hover {
  color: var(--gold);
}

/* =========================================
   2. MAIN CHAT VIEWPORT
   ========================================= */
.main-chat-viewport {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--chat-bg);
  position: relative;
  overflow: hidden;
}

/* Top App Header */
.chat-app-header {
  height: 58px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 23, 40, 0.8);
  backdrop-filter: blur(12px);
  z-index: 20;
}

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

.sidebar-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-toggle-btn:hover {
  background: var(--card-bg);
  color: #fff;
  border-color: var(--gold);
}

.current-chat-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.model-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.storage-toast-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #34d399;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
}

/* Chat Scroll Messages View */
.chat-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 30px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chat-content-width {
  width: 100%;
  max-width: 820px;
}

/* Welcome Screen (When conversation is empty) */
.welcome-screen {
  text-align: center;
  padding: 40px 10px 20px;
  animation: fadeIn 0.3s ease;
}

.welcome-crest {
  width: 84px;
  height: 84px;
  margin-bottom: 16px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
}

.welcome-title {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 34px;
  line-height: 1.5;
}

/* Welcome Suggestion Cards Grid */
.welcome-prompts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  text-align: left;
}

.prompt-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.prompt-card:hover {
  background: var(--card-hover);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.prompt-card-header {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prompt-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Chat Message Bubbles */
.messages-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.message-row {
  display: flex;
  gap: 16px;
  width: 100%;
  animation: fadeIn 0.2s ease;
}

.message-row-user {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.avatar-user {
  background: #1e3a8a;
  border: 1px solid #3b82f6;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.avatar-bot {
  background: linear-gradient(135deg, #1e3a8a, #d97706);
  border: 1.5px solid var(--gold);
}

.message-bubble-wrapper {
  max-width: 82%;
  display: flex;
  flex-direction: column;
}

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

.message-bubble {
  padding: 16px 20px;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
}

.message-bubble-user {
  background: #1e3a8a;
  border: 1px solid #2563eb;
  color: #ffffff;
  border-top-right-radius: 4px;
}

.message-bubble-bot {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-top-left-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Bubble Actions Toolbar */
.message-actions-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.message-bubble-wrapper:hover .message-actions-toolbar {
  opacity: 1;
}

.action-tool-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  transition: all 0.15s;
}

.action-tool-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Floating Bottom Input Area */
.chat-input-wrapper {
  padding: 14px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(to top, var(--chat-bg) 70%, transparent);
}

.input-box-container {
  width: 100%;
  max-width: 820px;
  background: var(--input-bg);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-box-container:focus-within {
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 16px var(--gold-glow);
}

.attachment-chip-bar {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border-active);
  color: #60a5fa;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  width: fit-content;
}

.attachment-chip-bar button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.input-controls-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.attach-clip-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.attach-clip-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
}

.chat-textarea-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  resize: none;
  min-height: 26px;
  max-height: 150px;
  outline: none;
  line-height: 1.5;
  padding: 4px 0;
}

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

.chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gold);
  border: none;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.chat-send-btn:hover:not(:disabled) {
  background: #fbbf24;
  transform: scale(1.05);
}

.chat-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.app-disclaimer-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

/* =========================================
   3. FLOATING TOAST NOTIFICATIONS
   ========================================= */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #1e293b;
  border: 1px solid #334155;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-success { border-color: var(--emerald); color: #a7f3d0; }
.toast-info { border-color: var(--blue); color: #bfdbfe; }

@keyframes toastSlide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .app-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    box-shadow: 10px 0 30px rgba(0,0,0,0.8);
  }
  .app-sidebar:not(.collapsed) {
    width: 280px;
  }
  .current-chat-title { max-width: 160px; }
  .message-bubble-wrapper { max-width: 92%; }
}

/* =========================================
   4. PREMIUM ROBOT MARKDOWN & CARD DESIGN
   ========================================= */

/* Underlined & Glowing Headers */
.message-bubble-bot .md-h1,
.message-bubble-bot .md-h2,
.message-bubble-bot .md-h3 {
  color: var(--gold);
  border-bottom: 2px solid rgba(245, 158, 11, 0.4);
  padding-bottom: 6px;
  margin-top: 18px;
  margin-bottom: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.message-bubble-bot .md-h1:first-child,
.message-bubble-bot .md-h2:first-child,
.message-bubble-bot .md-h3:first-child {
  margin-top: 0;
}

/* Boxed Points / Card-Style Bullet Points */
.message-bubble-bot .md-ul {
  list-style: none;
  padding-left: 0;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.message-bubble-bot .md-li {
  background: rgba(16, 32, 53, 0.8);
  border: 1px solid rgba(33, 63, 104, 0.85);
  border-left: 3.5px solid var(--gold);
  border-radius: 9px;
  padding: 10px 14px;
  line-height: 1.55;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.message-bubble-bot .md-li:hover {
  background: rgba(22, 45, 75, 0.95);
  border-color: rgba(245, 158, 11, 0.6);
  border-left-color: #fbbf24;
  transform: translateX(4px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.message-bubble-bot .md-p {
  margin-bottom: 12px;
  line-height: 1.65;
}

/* Premium Blockquotes */
.message-bubble-bot .md-quote {
  background: rgba(59, 130, 246, 0.08);
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  padding: 10px 16px;
  margin: 14px 0;
  color: #bfdbfe;
  font-size: 0.92rem;
}

/* Glassmorphic Tables */
.message-bubble-bot .table-responsive {
  margin: 16px 0;
  border: 1px solid #1e3a5f;
  border-radius: 10px;
  overflow-x: auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  background: #070f1e;
}

.message-bubble-bot .md-table {
  width: 100%;
  border-collapse: collapse;
}

.message-bubble-bot .md-table th {
  background: #0d1e35;
  color: var(--gold);
  padding: 12px 16px;
  font-weight: 800;
  border-bottom: 2px solid var(--gold);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-align: left;
}

.message-bubble-bot .md-table td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
  color: #f1f5f9;
}

.message-bubble-bot .md-table tr:hover td {
  background: rgba(245, 158, 11, 0.06);
}

/* Live Streaming Word Cursor */
.streaming-cursor {
  display: inline-block;
  width: 7px;
  height: 16px;
  background: var(--gold);
  margin-left: 4px;
  vertical-align: middle;
  border-radius: 2px;
  box-shadow: 0 0 8px var(--gold);
  animation: blinkCursor 0.75s infinite ease-in-out;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0; transform: scaleY(0.7); }
}

/* =========================================
   RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS
   ========================================= */

@media (max-width: 768px) {
  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    min-width: 280px;
    max-width: 85vw;
    z-index: 100;
    box-shadow: 4px 0 35px rgba(0, 0, 0, 0.75);
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease;
    visibility: hidden;
    overflow: hidden;
  }

  .sidebar-inner-content {
    width: 100%;
    min-width: 100%;
  }

  .app-sidebar.open-mobile {
    transform: translateX(0) !important;
    visibility: visible !important;
  }

  .app-sidebar.collapsed {
    transform: translateX(-100%) !important;
    width: 280px !important;
    min-width: 280px !important;
    visibility: hidden !important;
  }

  .chat-app-header {
    padding: 8px 14px;
    height: 52px;
  }

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

  .current-chat-title {
    max-width: 160px;
    font-size: 0.88rem;
  }

  .model-pill-badge {
    padding: 3px 8px;
    font-size: 0.7rem;
  }

  .storage-toast-pill {
    display: none;
  }

  .chat-scroll-area {
    padding: 16px 12px 12px;
  }

  .message-row {
    margin-bottom: 16px;
    gap: 10px;
  }

  .message-bubble {
    max-width: 88%;
    padding: 12px 14px;
    font-size: 0.92rem;
  }

  .message-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .welcome-screen {
    padding: 24px 8px 16px;
  }

  .welcome-crest {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
  }

  .welcome-title {
    font-size: 1.45rem;
  }

  .welcome-subtitle {
    font-size: 0.88rem;
    margin-bottom: 22px;
  }

  .welcome-prompts-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .prompt-card {
    padding: 12px 14px;
  }

  .chat-input-wrapper {
    padding: 8px 12px 12px;
  }

  .chat-input-box {
    padding: 8px 12px;
    border-radius: 14px;
  }

  .chat-textarea {
    font-size: 0.92rem;
  }

  .chat-send-btn {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .chat-disclaimer {
    font-size: 0.65rem;
    margin-top: 6px;
  }
}

@media (max-width: 480px) {
  .current-chat-title {
    max-width: 110px;
    font-size: 0.82rem;
  }

  .model-pill-badge {
    display: none;
  }

  .message-bubble {
    max-width: 92%;
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .message-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
}

