body {
  background: #f4f7fb;
}

.app-shell {
  min-height: 100vh;
}

.auth-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, #eef4ff 0%, #f8fafc 100%);
}

.auth-card,
.dashboard-card {
  border: 0;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.auth-tabs .nav-link {
  border-radius: 999px;
  padding-inline: 18px;
}

.auth-tabs .nav-link.active {
  background: #0f172a;
}

.demo-user-list .demo-user-card {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fff;
}

.sidebar {
  width: 360px;
  background: #0f172a;
  color: #fff;
  min-height: 100vh;
  padding: 24px 18px;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.brand-subtitle {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.profile-box,
.location-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
}

.menu-btn {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.menu-btn:hover,
.menu-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  transform: translateY(-1px);
}

.voice-command-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 10px 6px 14px 6px;
  margin-top: 4px;
  transition: transform 0.2s ease;
}

.voice-command-btn:hover,
.voice-command-btn.active {
  transform: translateY(-1px);
}

.voice-command-btn.listening .voice-command-icon {
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.18);
  animation: pulseMic 1.3s infinite;
}

.voice-command-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #22c55e;
  color: #fff;
  font-size: 1.75rem;
  flex: 0 0 auto;
}

.voice-command-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.voice-command-title,
.voice-command-subtitle {
  color: #fff;
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: #ef4444;
  text-underline-offset: 2px;
}

.voice-command-title {
  font-size: 1rem;
  font-weight: 500;
}

.voice-command-subtitle {
  font-size: 1rem;
  font-weight: 500;
}

.menu-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.menu-desc {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
}

.mainbar {
  flex: 1;
  padding: 24px;
}

.prompt-box {
  background: #eef4ff;
  border: 1px dashed #90b4ff;
  border-radius: 16px;
  padding: 14px 16px;
  color: #1e3a8a;
  font-weight: 500;
  white-space: pre-wrap;
}

.result-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  min-height: 220px;
  white-space: pre-wrap;
}

.stat-card {
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 18px;
  height: 100%;
}

.muted-small {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.voice-meta-box {
  border: 1px solid #dbeafe;
  background: #f8fbff;
  border-radius: 18px;
  padding: 14px;
}

.voice-meta-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  padding: 14px 16px;
  height: 100%;
}

.voice-meta-label {
  font-size: 0.85rem;
  color: #6b7280;
}

.voice-meta-value {
  margin-top: 8px;
  font-weight: 600;
  white-space: pre-wrap;
}

.sentiment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.sentiment-card {
  border-radius: 16px;
  padding: 16px;
  color: #111827;
}

.sentiment-card .label {
  font-size: 0.85rem;
  opacity: 0.85;
}

.sentiment-card .value {
  font-size: 1.7rem;
  font-weight: 700;
  margin-top: 6px;
}

.sentiment-card.positive {
  background: #dcfce7;
}

.sentiment-card.neutral {
  background: #f3f4f6;
}

.sentiment-card.negative {
  background: #fee2e2;
}

.source-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  background: #fff;
}

.source-card .meta {
  font-size: 0.85rem;
  color: #6b7280;
}

.source-card .title {
  font-weight: 700;
  margin-top: 6px;
  margin-bottom: 8px;
}

@keyframes pulseMic {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@media (max-width: 991.98px) {
  .sidebar {
    width: 100%;
    min-height: auto;
  }

  .app-shell {
    flex-direction: column;
  }

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