/* ==========================================================
   MONGAI — STYLESHEET
   Professional AI Assistant
   Made By Lorin Mongbijam
   ========================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-app: #0d1117;
  --bg-sidebar: #0a0e14;
  --bg-card: #161b22;
  --bg-hover: #1c2430;
  --bg-input: #1a2029;
  --bg-user-bubble: #1e3a5f;

  --border-subtle: #1f2733;
  --border-default: #2a3544;
  --border-focus: #3b82f6;

  --text-primary: #e6edf3;
  --text-secondary: #8b98a8;
  --text-tertiary: #5c6b7d;

  --blue-primary: #2563eb;
  --blue-hover: #3b82f6;
  --blue-bright: #60a5fa;
  --blue-glow: rgba(37, 99, 235, 0.35);
  --blue-soft: rgba(37, 99, 235, 0.12);
  --blue-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  --card-teal: linear-gradient(135deg, #0e7490 0%, #0891b2 100%);
  --card-blue: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-app);
  color: var(--text-primary);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}

::selection { background: var(--blue-glow); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a4a5e; }

/* ============ TOP CREDIT BAR ============ */
.top-credit {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 26px;
  background: linear-gradient(90deg, #0a0e14 0%, #101720 50%, #0a0e14 100%);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.4px;
  z-index: 500;
  font-weight: 400;
}
.top-credit strong {
  color: var(--blue-bright);
  font-weight: 600;
  margin-left: 4px;
}

/* ============ LAYOUT ============ */
.app {
  display: flex;
  height: 100vh;
  width: 100%;
  padding-top: 26px;
  position: relative;
}

/* ============ SIDEBAR ============ */
.sidebar {
  width: 260px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
  z-index: 100;
  flex-shrink: 0;
}

.sidebar-top {
  padding: 14px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 9px; padding: 4px; }

.logo-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--blue-gradient);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  box-shadow: 0 2px 12px var(--blue-glow);
}

.logo-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.logo-text span {
  background: var(--blue-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.collapse-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 13px;
  transition: all 0.15s;
}
.collapse-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav {
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 450;
  cursor: pointer;
  transition: all 0.12s;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.nav-item i {
  font-size: 14px;
  width: 16px;
  color: var(--text-tertiary);
  transition: color 0.12s;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item:hover i { color: var(--blue-bright); }
.nav-item.active { background: var(--blue-soft); color: var(--text-primary); }
.nav-item.active i { color: var(--blue-bright); }

.nav-section {
  padding: 16px 20px 6px;
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-section i { font-size: 10px; cursor: pointer; }

.nav-empty {
  padding: 4px 20px 10px;
  font-size: 12.5px;
  color: var(--text-tertiary);
  font-style: italic;
}

.projects-list, .chat-history {
  overflow-y: auto;
  padding: 0 8px 8px;
  max-height: 200px;
}

.projects-list:empty { display: none; }

.project-item, .history-item {
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.12s;
  margin-bottom: 1px;
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: space-between;
}
.project-item i, .history-item i {
  font-size: 11px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}
.project-item .p-name, .history-item .h-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-item:hover, .history-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.project-item.active, .history-item.active {
  background: var(--blue-soft);
  color: var(--text-primary);
}
.project-item .del-proj {
  opacity: 0;
  color: #ef4444;
  font-size: 11px;
  transition: opacity 0.15s;
}
.project-item:hover .del-proj { opacity: 1; }

.sidebar-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 10px 12px;
  margin-top: auto;
}

.user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
}
.user-row:hover { background: var(--bg-hover); }
.user-row img {
  width: 30px; height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-default);
}
.user-row .user-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-row .chev { font-size: 10px; color: var(--text-tertiary); }

.signin-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.signin-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.signin-btn i { font-size: 15px; color: var(--text-tertiary); }

/* ============ MAIN ============ */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  background: var(--bg-app);
}

.top-right {
  position: absolute;
  top: 14px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 20;
}

.top-icon-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 13px;
  transition: all 0.15s;
}
.top-icon-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-focus);
}
.menu-toggle { display: none; }

/* ============ CONTENT ============ */
.content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* ============ WELCOME ============ */
.welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 120px;
  text-align: center;
  min-height: 100%;
}
.welcome-inner { width: 100%; max-width: 660px; }

.welcome-label {
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 500;
}

.welcome h1 {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: 32px;
  line-height: 1.2;
}

/* Search Box */
.search-box {
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 14px 16px 12px;
  transition: all 0.2s ease;
  text-align: left;
}
.search-box:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px var(--blue-soft), 0 8px 32px rgba(0,0,0,0.4);
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  resize: none;
  line-height: 1.5;
  max-height: 200px;
  min-height: 24px;
}
.search-input::placeholder { color: var(--text-tertiary); }

.search-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 8px;
}

.toolbar-left { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.tool-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  font-weight: 500;
}
.tool-pill:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-focus);
}
.tool-pill i { font-size: 12px; }

.toolbar-right { display: flex; align-items: center; gap: 6px; }
.toolbar-right .tool-pill { border: none; }

.send-circle {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blue-gradient);
  color: white;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 13px;
  transition: all 0.15s;
  box-shadow: 0 3px 12px var(--blue-glow);
  flex-shrink: 0;
}
.send-circle:hover:not(:disabled) {
  transform: scale(1.06);
  box-shadow: 0 4px 18px var(--blue-glow);
}
.send-circle:disabled {
  background: var(--bg-hover);
  color: var(--text-tertiary);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* Feature Cards */
.feature-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
  width: 100%;
}

.feature-card {
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  color: white;
  border: none;
  font-family: inherit;
  transition: all 0.2s ease;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.feature-card.teal { background: var(--card-teal); }
.feature-card.blue { background: var(--card-blue); }
.feature-card .fc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card .fc-head i { font-size: 14px; opacity: 0.9; }
.feature-card .fc-badge {
  font-size: 9px;
  font-weight: 700;
  background: rgba(255,255,255,0.2);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  margin-left: auto;
}
.feature-card .fc-desc { font-size: 12px; line-height: 1.5; opacity: 0.9; }

/* ============ CHAT VIEW ============ */
.chat-view {
  display: none;
  flex-direction: column;
  min-height: 100%;
  padding-bottom: 130px;
}
.chat-view.active { display: flex; }

.chat-messages {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.msg {
  display: flex;
  gap: 14px;
  animation: fadeUp 0.3s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg.user { flex-direction: row-reverse; }

.msg-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
}
.msg.user .msg-avatar {
  background: var(--blue-gradient);
  color: white;
}
.msg.ai .msg-avatar {
  background: var(--bg-card);
  color: var(--blue-bright);
  border: 1px solid var(--border-default);
}

.msg-body { flex: 1; min-width: 0; max-width: 88%; }
.msg.user .msg-body { display: flex; justify-content: flex-end; }

.msg-content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-primary);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.msg.user .msg-content {
  background: var(--bg-user-bubble);
  padding: 10px 16px;
  border-radius: 18px 18px 4px 18px;
  color: #dbeafe;
  border: 1px solid rgba(59, 130, 246, 0.2);
}
.msg.ai .msg-content { padding: 2px 0; }
.msg-content p { margin-bottom: 12px; }
.msg-content p:last-child { margin-bottom: 0; }
.msg-content strong { color: #fff; font-weight: 600; }
.msg-content code {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--blue-bright);
}
.msg-content pre {
  background: #0a0e14;
  border: 1px solid var(--border-default);
  padding: 14px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 10px 0;
}
.msg-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: #dbeafe;
}
.msg-content ul { margin: 10px 0 10px 20px; }
.msg-content li { margin-bottom: 6px; }

.typing { display: flex; gap: 4px; padding: 8px 0; }
.typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue-bright);
  animation: blink 1.4s infinite both;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1); }
}

/* ============ PROJECTS VIEW ============ */
.projects-view, .customize-view {
  display: none;
  min-height: 100%;
  padding: 60px 24px 120px;
}
.projects-view.active, .customize-view.active { display: block; }

.projects-inner {
  max-width: 900px;
  margin: 0 auto;
}

.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.view-header h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.primary-btn {
  background: var(--blue-gradient);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s;
  font-family: inherit;
  box-shadow: 0 3px 12px var(--blue-glow);
}
.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px var(--blue-glow);
}

.ghost-btn {
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.ghost-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  transition: all 0.18s;
  position: relative;
}
.project-card:hover {
  border-color: var(--blue-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.project-card .pc-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue-bright);
  display: grid;
  place-items: center;
  font-size: 15px;
  margin-bottom: 12px;
}
.project-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.project-card p {
  font-size: 12.5px;
  color: var(--text-tertiary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card .pc-date {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 12px;
}
.project-card .pc-delete {
  position: absolute;
  top: 12px; right: 12px;
  width: 24px; height: 24px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 11px;
  opacity: 0;
  transition: all 0.15s;
}
.project-card:hover .pc-delete { opacity: 1; }
.project-card .pc-delete:hover {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
}

.empty-projects {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-tertiary);
}
.empty-projects i {
  font-size: 40px;
  margin-bottom: 16px;
  color: var(--border-strong);
}
.empty-projects p { font-size: 14px; }

.customize-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.customize-card label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.customize-card textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
}
.customize-card textarea:focus { border-color: var(--border-focus); }

/* ============ FLOATING INPUT ============ */
.floating-input {
  position: fixed;
  bottom: 0;
  left: 260px;
  right: 0;
  padding: 16px 24px 20px;
  background: linear-gradient(to top, var(--bg-app) 55%, transparent);
  z-index: 30;
  pointer-events: none;
  transition: left 0.25s ease;
}
.floating-input-inner {
  max-width: 660px;
  margin: 0 auto;
  pointer-events: auto;
}

.chat-input-box {
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 12px 14px 10px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-input-box:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px var(--blue-soft);
}
.chat-input-box textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  resize: none;
  line-height: 1.5;
  max-height: 180px;
}
.chat-input-box textarea::placeholder { color: var(--text-tertiary); }

.chat-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-input-tools { display: flex; gap: 4px; }

.credit-line {
  text-align: center;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 8px;
}
.credit-line strong { color: var(--blue-bright); font-weight: 600; }

/* ============ LOGIN OVERLAY ============ */
.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 14, 0.88);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  transition: opacity 0.3s;
}
.login-overlay.hidden { opacity: 0; pointer-events: none; }

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  padding: 44px 36px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}
.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-primary), transparent);
}

.login-mark {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: var(--blue-gradient);
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 700;
  color: white;
  margin: 0 auto 22px;
  box-shadow: 0 10px 32px var(--blue-glow);
}
.login-card h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.login-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 28px;
}
.g-container { display: flex; justify-content: center; }
.login-footer {
  margin-top: 24px;
  font-size: 11.5px;
  color: var(--text-tertiary);
}

/* ============ MODAL ============ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 14, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 900;
  padding: 20px;
}
.modal.active { display: flex; }

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.modal-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 18px;
}
.modal-card input,
.modal-card textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  margin-bottom: 10px;
  transition: border-color 0.15s;
  resize: vertical;
}
.modal-card input:focus,
.modal-card textarea:focus { border-color: var(--border-focus); }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

/* ============ BACKDROP ============ */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99;
  display: none;
}
.backdrop.active { display: block; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    top: 26px; bottom: 0; left: 0;
    transform: translateX(-100%);
    box-shadow: 10px 0 40px rgba(0,0,0,0.5);
  }
  .sidebar.open { transform: translateX(0); }
  .menu-toggle { display: grid; }
  .floating-input { left: 0; }
  .feature-cards { grid-template-columns: 1fr; }
  .welcome h1 { font-size: 24px; }
}

@media (max-width: 600px) {
  .chat-messages { padding: 50px 16px 24px; }
  .floating-input { padding: 12px 12px 16px; }
  .msg-body { max-width: 92%; }
  .login-card { padding: 32px 24px; }
  .top-right { top: 10px; right: 10px; }
  .projects-view, .customize-view { padding: 50px 16px 120px; }
}