@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* THEME VARIABLES - THE LINEAR (PROFESSIONAL MINIMALIST) */
:root {
  --bg-app: #000000;
  --bg-panel: #0A0A0A;
  --bg-card: #121212;
  --bg-hover: #1A1A1A;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 255, 255, 0.2);
  
  --text-primary: #EDEDED;
  --text-secondary: #8A8F98;
  --text-tertiary: #60646C;
  
  --accent: #E2E2E2; /* Monochrome accent */
  --accent-blue: #5E6AD2; /* Subtle professional blue/purple for active states */
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; width: 100%; overflow: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* TOPBAR */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  height: 56px;
  position: relative;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.header-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
}
.brand-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.logo-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.logo-divider {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
}
.logo-sub {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 400;
}

/* Header Navigation (Central Tabs) */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-tab {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.15s ease;
}
.nav-tab:hover, .nav-tab.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.tasks-pill-btn {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: all 0.2s ease;
}
.tasks-pill-btn:hover {
  border-color: var(--border-focus);
  background: var(--bg-hover);
}
#theme-toggle { display: none; }
.mobile-controls { display: none; }

/* Pulse Online Dot */
.status-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  position: relative;
  display: inline-block;
}
.status-dot::after {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 50%;
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  animation: status-pulse 2s infinite;
}
@keyframes status-pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Badge Count inside Pill Button */
.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 10px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 100px;
  margin-left: 6px;
  padding: 0 4px;
  border: 1px solid rgba(255,255,255,0.05);
}

.suggestions { display: flex; gap: 8px; margin-right: 16px; }
.suggestion-chip {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.suggestion-chip:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-focus);
}
.icon {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 18px;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
.icon:hover { 
  color: var(--text-primary); 
  background: var(--bg-hover);
}

/* LAYOUT */
.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  height: calc(100vh - 60px);
  transition: grid-template-columns 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.app-shell.sidebar-collapsed {
  grid-template-columns: 0px 1fr 300px;
}
.app-shell.panel-collapsed {
  grid-template-columns: 260px 1fr 0px;
}
.app-shell.sidebar-collapsed.panel-collapsed {
  grid-template-columns: 0px 1fr 0px;
}

/* SIDEBARS */
.sidebar, .panel { 
  display: flex; 
  flex-direction: column; 
  background: var(--bg-panel);
  border-right: 1px solid var(--border-subtle);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sidebar {
  overflow-y: auto !important;
  scrollbar-width: none; /* Firefox */
}
.sidebar::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}
.panel {
  overflow: hidden;
}
.app-shell.sidebar-collapsed .sidebar {
  width: 0;
  padding: 0;
  border-right: none;
  opacity: 0;
  pointer-events: none;
}
.app-shell.panel-collapsed .panel {
  width: 0;
  padding: 0;
  border-left: none;
  opacity: 0;
  pointer-events: none;
}
.panel {
  border-right: none;
  border-left: 1px solid var(--border-subtle);
}

/* CARDS / SECTIONS */
.card, .panel-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}
.card:last-child { border-bottom: none; }

h3, h4 {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* BUTTONS */
.action, .add-btn, .send {
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 100%);
  color: var(--text-primary);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.send, .add-btn { 
  width: auto; 
  text-align: center; 
  background: var(--text-primary);
  color: var(--bg-app);
  border: none;
  box-shadow: none;
}
.action:hover { 
  background: var(--bg-hover);
  border-color: var(--border-focus);
}
.send:hover, .add-btn:hover {
  opacity: 0.9;
}
.action-row { display: flex; flex-direction: column; gap: 8px; }

/* WEATHER & STATS */
.weather-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
#live-clock {
  font-family: 'Inter', sans-serif;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
#mini-calendar {
  font-size: 13px;
  color: var(--text-secondary);
}

/* MAIN CHAT AREA */
.main {
  display: flex;
  flex-direction: column;
  background: var(--bg-app);
  position: relative;
  min-height: 0;
}
.chat-area {
  padding: 32px 48px;
  overflow-y: auto;
  flex: 1;
  scroll-behavior: smooth;
}
.chat-area::-webkit-scrollbar { width: 6px; }
.chat-area::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 4px; }

/* CHAT MESSAGES */
.msg {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  max-width: 85%;
  opacity: 0;
  transform: translateY(8px);
  animation: messageFade 0.3s ease forwards;
}
@keyframes messageFade {
  to { opacity: 1; transform: translateY(0); }
}
.msg.bot { align-self: flex-start; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  background-size: 55% 55%;
  background-position: center;
  background-repeat: no-repeat;
  transition: all 0.2s ease;
}
.msg.bot .avatar {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"><path d="M12 2L2 22L12 17L22 22L12 2Z" fill="white"/></svg>');
  background-color: #8b5cf6;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"><path d="M12 2L2 22L12 17L22 22L12 2Z" fill="white"/></svg>'), linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}
.msg.user .avatar {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>');
  background-color: #475569;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>'), linear-gradient(135deg, #475569 0%, #1e293b 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bubble {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 14px;
  font-weight: 400;
  border: 1px solid var(--border-subtle);
}
.msg.bot .bubble { border-top-left-radius: 4px; }
.msg.user .bubble {
  background: var(--bg-hover);
  border-top-right-radius: 4px;
}

/* TYPING INDICATOR */
.typing { display: flex; align-items: center; gap: 12px; padding: 0 48px; margin-bottom: 24px;}
.typing-avatar {
  width: 28px; height: 28px;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}
.typing-dots span {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--text-tertiary);
  border-radius: 50%; margin-right: 4px;
  animation: dotPulse 1.4s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* COMPOSER */
.composer {
  display: flex; gap: 12px; padding: 24px 48px;
  align-items: center;
  background: var(--bg-app);
}
.input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  transition: border-color 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.input:focus {
  outline: none;
  border-color: var(--border-focus);
}
.input::placeholder { color: var(--text-tertiary); }
.mic {
  padding: 10px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--text-tertiary);
  transition: all 0.2s;
}
.mic:hover { color: var(--text-primary); background: var(--bg-hover); }
.mic.recording {
  color: var(--accent-blue);
  background: rgba(94, 106, 210, 0.1);
}

/* TASKS PANEL */
.task-list { padding: 16px 24px; overflow: auto; flex: 1; }
.task-list::-webkit-scrollbar { width: 4px; }
.task-list::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 4px; }

.task-item {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  margin-bottom: 8px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
  color: var(--text-primary);
  transition: all 0.2s ease;
}
.task-item:hover {
  border-color: var(--border-focus);
}
.task-item button {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.task-item button:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.panel-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex; gap: 8px;
}
#new-task {
  flex: 1; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-app); color: var(--text-primary);
  font-family: 'Inter', sans-serif; font-size: 13px;
}
#new-task:focus { outline: none; border-color: var(--border-focus); }

/* FAB (Hidden in Professional Desktop Views, kept for mobile) */
.fab { display: none; }

/* WELCOME DASHBOARD */
.welcome-dashboard {
  max-width: 680px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  animation: fadeIn 0.4s ease-out forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.welcome-header h2 {
  font-size: 32px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.6px;
  margin-bottom: 8px;
}
.welcome-sub {
  font-size: 14px;
  color: var(--text-secondary);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
}
.dash-card:hover {
  border-color: var(--border-focus);
}
.dash-card-icon {
  font-size: 24px;
}
.dash-card-info h5 {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.dash-card-info p {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-primary);
}

.welcome-prompts-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: -16px;
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.prompt-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.prompt-item:hover {
  border-color: var(--border-focus);
  background: var(--bg-hover);
}
.prompt-emoji {
  font-size: 20px;
}
.prompt-text h6 {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.prompt-text p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* SETTINGS MODAL */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.2s ease-out forwards;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 400px;
  max-width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes modalSlideUp {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.setting-row label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.setting-select {
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.setting-select:focus {
  border-color: var(--border-focus);
}

/* CHATGPT / GEMINI INTERACTION STYLES */
.streaming-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--text-primary);
  margin-left: 3px;
  vertical-align: middle;
  animation: cursor-blink 0.8s infinite step-end;
}
@keyframes cursor-blink {
  50% { opacity: 0; }
}

/* Fenced Code Blocks */
.code-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: none;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-tertiary);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  margin-top: 12px;
}
.copy-code-btn {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease;
}
.copy-code-btn:hover {
  color: var(--text-primary);
}

pre {
  background: #090909;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  padding: 14px;
  margin-top: 0;
  margin-bottom: 12px;
  overflow-x: auto;
}
pre code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 12px;
  color: #e5e7eb;
  line-height: 1.6;
}

/* Message Hover Actions (Copy, Speak) */
.msg-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  margin-left: 12px;
  opacity: 0.4;
  transition: opacity 0.20s ease;
}
.msg:hover .msg-actions {
  opacity: 1;
}
.action-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.action-icon-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

/* TYPING INDICATOR */
.typing {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 24px;
  animation: typingFadeIn 0.2s ease;
}
@keyframes typingFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.typing.hidden {
  display: none !important;
}
.typing-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  background-image: url('/static/logo2.png');
  background-size: cover;
  flex-shrink: 0;
}
.typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 10px 14px;
  border-radius: 16px;
  border-top-left-radius: 4px;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--text-tertiary);
  border-radius: 50%;
  display: inline-block;
  animation: dot-pulse 1.4s infinite ease-in-out both;
}
.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes dot-pulse {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 1fr; }
  .mobile-controls, #task-toggle-btn { display: block; }
  
  .sidebar, .panel {
    position: fixed; top: 60px; bottom: 0;
    width: 300px; z-index: 1000;
    border: none;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    transform: translateX(-100%); transition: transform 0.3s ease;
  }
  .panel { 
    right: 0; left: auto; 
    transform: translateX(100%); 
  }
  .sidebar.open { transform: translateX(0); }
  .panel.open { transform: translateX(0); }
  
  .chat-area { padding: 24px; }
  .composer { padding: 16px 24px; }
}

@media (max-width: 600px) {
  .msg { max-width: 95%; flex-direction: column; align-items: flex-start; gap: 8px;}
  .msg.user { align-items: flex-end; }
  .avatar { display: none; }
  .suggestions { display: none; }
  .dash-grid, .prompt-grid { grid-template-columns: 1fr; }
  .welcome-dashboard { margin: 20px auto; gap: 20px; }
  .welcome-header h2 { font-size: 26px; }
  .chat-area { padding: 16px; }
  .composer { padding: 12px 16px; flex-direction: column; gap: 8px; }
  .composer .input, .composer .send, .composer .mic { width: 100%; }
}
