:root {
  --bg-main: #0b141a;
  --bg-sidebar: #111b21;
  --bg-header: #202c33;
  --bg-input-bar: #202c33;
  --bg-input-field: #2a3942;
  --bg-user-bubble: #005c4b;
  --bg-bot-bubble: #202c33;
  --bg-card: #182229;
  
  --primary: #00a884;
  --primary-hover: #06cf9c;
  --accent-blue: #53bdeb;
  --text-primary: #e9edef;
  --text-secondary: #8696a0;
  --text-muted: #667781;
  --border-color: #222e35;
  --danger: #f15c6d;
  --success: #00a884;
  --warning: #ffbc00;
  
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  height: 100dvh;
  overflow: hidden;
}

/* Auth Screen */
.auth-screen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, #111b21 0%, #0b141a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.auth-card {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  width: 100%;
  max-width: 440px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  animation: fadeIn 0.3s ease;
}

.auth-logo {
  margin-bottom: 24px;
}

.logo-badge {
  font-size: 2.8rem;
  margin-bottom: 8px;
}

.auth-logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tagline {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.auth-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.auth-box h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.auth-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 20px;
}

.google-button-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  margin-bottom: 12px;
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.btn-google-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  padding: 12px 16px;
  border-radius: 24px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.1s, box-shadow 0.2s, background 0.2s;
}

.btn-google-login:hover {
  background: #f8f9fa;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.btn-google-login:active {
  transform: scale(0.98);
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
  padding: 0 10px;
}

.btn-sso-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 16px;
  border-radius: 24px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: transform 0.1s, box-shadow 0.2s, filter 0.2s;
}

.btn-sso-login:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.btn-sso-login:active {
  transform: scale(0.98);
}

.auth-security-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.4;
}

.app-container {
  display: flex;
  height: 100dvh;
  width: 100vw;
  position: relative;
}

/* Sidebar Styles */
.sidebar {
  width: 340px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 20;
  transition: transform 0.3s ease;
}

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

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

.avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #374248;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.user-meta h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.status-online {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
}

.sidebar-section {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sidebar-section label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  font-weight: 600;
  display: block;
}

.btn-sm-primary {
  background: rgba(0, 168, 132, 0.15);
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sm-primary:hover {
  background: var(--primary);
  color: #111b21;
}

.projects-list, .ssh-list, .cert-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ssh-card, .cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.ssh-card:hover, .cert-card:hover {
  border-color: rgba(0, 168, 132, 0.4);
  background: #202c33;
}

.ssh-info, .cert-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ssh-host-tag, .cert-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Action Menu / Dropdown (3-Dots ...) */
.menu-container {
  position: relative;
  display: inline-block;
}

.btn-menu-trigger {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.15rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-menu-trigger:hover, .btn-menu-trigger.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: #202c33;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  min-width: 130px;
  z-index: 1000;
  display: none;
  flex-direction: column;
  padding: 4px 0;
  animation: fadeIn 0.15s ease;
}

.dropdown-menu.show {
  display: flex;
}

.dropdown-item {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-family: inherit;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
  width: 100%;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dropdown-item.item-danger {
  color: #f87171;
}

.dropdown-item.item-danger:hover {
  background: rgba(239, 68, 68, 0.15);
}

.pvc-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 500;
}

/* Dropzone Area */
.dropzone-area {
  border: 2px dashed rgba(0, 168, 132, 0.4);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  background: rgba(17, 27, 33, 0.6);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.dropzone-area:hover, .dropzone-area.drag-over {
  border-color: var(--primary);
  background: rgba(0, 168, 132, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 168, 132, 0.15);
}

.dropzone-icon {
  font-size: 2.2rem;
  background: rgba(255, 255, 255, 0.05);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-color);
}

.dropzone-area h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.dropzone-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.4;
  margin: 0;
}

.btn-browse-cert {
  margin-top: 6px;
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* Success Feedback Card */
.cert-import-feedback {
  margin-top: 16px;
  animation: fadeIn 0.3s ease;
}

.feedback-success-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  color: #34d399;
}

.feedback-icon {
  font-size: 1.4rem;
}

.feedback-success-card p {
  margin: 4px 0 0 0;
  font-size: 0.8rem;
  color: var(--text-primary);
}

.feedback-success-card code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  color: #6ee7b7;
  font-family: var(--font-mono);
}

/* Inline Quick Import Area in Connection Modal */
.inline-cert-dropzone {
  margin-top: -6px;
  margin-bottom: 12px;
}

.inline-drop-content {
  border: 1.5px dashed var(--primary);
  background: rgba(0, 168, 132, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.inline-drop-content:hover {
  background: rgba(0, 168, 132, 0.15);
}

.repo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.repo-card:hover {
  background: #202c33;
}

.repo-card.active {
  border-color: var(--primary);
  background: rgba(0, 168, 132, 0.08);
}

.scope-select {
  width: 100%;
  background: var(--bg-input-field);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.repo-info h4 {
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.branch-tag {
  font-size: 0.72rem;
  background: #2a3942;
  color: var(--accent-blue);
  padding: 2px 6px;
  border-radius: 10px;
  font-family: var(--font-mono);
}

.toggle-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

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

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

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

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

input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(20px); }

.recent-branches {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recent-branches li {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
}

.badge {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
}
.badge.success { background: rgba(0, 168, 132, 0.2); color: var(--primary); }

.sidebar-footer {
  margin-top: auto;
  padding: 16px;
}

.btn-secondary {
  width: 100%;
  padding: 10px;
  background: var(--bg-input-field);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.85rem;
}

/* Chat Area */
.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-main);
  position: relative;
  background-image: radial-gradient(#182229 1px, transparent 1px);
  background-size: 24px 24px;
}

/* WhatsApp Header */
.chat-header {
  height: 60px;
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 10;
}

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

.mobile-menu-btn {
  display: none;
  font-size: 1.25rem;
}

.bot-avatar-container {
  position: relative;
}

.online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background-color: var(--primary);
  border-radius: 50%;
  border: 2px solid var(--bg-header);
}

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

.header-title-row h2 {
  font-size: 1rem;
  font-weight: 600;
}

.pwa-badge {
  font-size: 0.65rem;
  background: rgba(83, 189, 235, 0.15);
  color: var(--accent-blue);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.bot-substatus {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.active-branch-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #111b21;
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--accent-blue);
}

/* Messages Container */
.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  position: relative;
  font-size: 0.92rem;
  line-height: 1.45;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
  animation: fadeIn 0.2s ease;
}

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

.bot-message {
  align-self: flex-start;
  background-color: var(--bg-bot-bubble);
  border-top-left-radius: 2px;
  color: var(--text-primary);
}

.user-message {
  align-self: flex-end;
  background-color: var(--bg-user-bubble);
  border-top-right-radius: 2px;
  color: #ffffff;
}

.message-bubble ul {
  margin: 6px 0 6px 18px;
}

.message-bubble code {
  font-family: var(--font-mono);
  background: rgba(0,0,0,0.25);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.85em;
}

.message-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  float: right;
  margin-top: 4px;
  margin-left: 10px;
}

.user-message .message-time {
  color: rgba(255,255,255,0.7);
}

/* Audio Player Pill in User Bubble */
.audio-player-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.2);
  padding: 6px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

/* File Attachment & Download Cards */
.file-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  margin-top: 8px;
  margin-bottom: 4px;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.file-icon {
  font-size: 1.5rem;
}

.file-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.file-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.file-download-btn {
  background: var(--primary);
  color: #111b21;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s;
  white-space: nowrap;
}

.file-download-btn:hover {
  background: var(--primary-hover);
}

/* Activity Bar */
.agent-activity-bar {
  background: #182229;
  border-top: 1px solid var(--border-color);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--accent-blue);
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(83, 189, 235, 0.2);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Action Chips */
.action-chips-container {
  background: #111b21;
  border-top: 1px solid var(--border-color);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chips-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.chips-group {
  display: flex;
  gap: 10px;
}

.chip-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: 20px;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.2s;
}

.chip-btn:active { transform: scale(0.98); }
.review-btn { background: #2a3942; color: var(--accent-blue); }
.deploy-btn { background: var(--primary); color: #111b21; }

/* Voice Recording Overlay */
.voice-recording-overlay {
  background: #111b21;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  animation: slideUp 0.2s ease;
}

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

.recording-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--danger);
  font-weight: 600;
  font-size: 0.85rem;
}

.red-dot {
  width: 10px;
  height: 10px;
  background-color: var(--danger);
  border-radius: 50%;
  animation: pulse 1s infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.waveform-anim {
  display: flex;
  align-items: center;
  gap: 3px;
}

.waveform-anim span {
  width: 3px;
  height: 12px;
  background: var(--primary);
  border-radius: 3px;
  animation: wave 0.8s infinite ease-in-out alternate;
}
.waveform-anim span:nth-child(2) { animation-delay: 0.1s; }
.waveform-anim span:nth-child(3) { animation-delay: 0.2s; }
.waveform-anim span:nth-child(4) { animation-delay: 0.3s; }
.waveform-anim span:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave { 0% { height: 6px; } 100% { height: 22px; } }

.voice-transcription-live {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  max-width: 40%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-cancel-voice {
  background: transparent;
  border: none;
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

/* Chat Input Bar */
.chat-input-bar {
  background-color: var(--bg-input-bar);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border-color);
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.icon-btn:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }

.input-field-wrapper {
  flex: 1;
  background-color: var(--bg-input-field);
  border-radius: 24px;
  padding: 8px 16px;
}

.input-field-wrapper textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  resize: none;
  max-height: 100px;
  line-height: 1.4;
}

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

.send-btn {
  background: var(--primary);
  color: #111b21;
}

.send-btn:hover {
  background: var(--primary-hover);
  color: #111b21;
}

.mic-btn.active {
  background: var(--danger);
  color: white;
  animation: pulse 1s infinite;
}

/* Modal Styles */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  overflow: hidden;
}

.modal-header {
  padding: 16px 20px;
  background: var(--bg-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

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

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

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input {
  background: var(--bg-input-field);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
}

.form-group input:focus {
  border-color: var(--primary);
}

.form-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

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

.btn-primary {
  background: var(--primary);
  color: #111b21;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .sidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: 4px 0 16px rgba(0,0,0,0.5);
  }

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

  .mobile-menu-btn {
    display: flex;
  }

  .message-bubble {
    max-width: 90%;
  }
}
