/* Design System & Variables */
:root {
  --color-bg-base: hsl(210, 20%, 97%);
  --color-bg-surface: hsl(0, 0%, 100%);
  --color-bg-card: rgba(255, 255, 255, 0.85);
  
  --color-primary: hsl(217, 91%, 55%);
  --color-primary-hover: hsl(217, 91%, 48%);
  
  --color-success: hsl(142, 72%, 35%);
  --color-success-hover: hsl(142, 72%, 29%);
  --color-whatsapp: hsl(142, 60%, 30%);
  --color-whatsapp-hover: hsl(142, 60%, 25%);
  
  --color-error: hsl(358, 75%, 45%);
  --color-error-bg: rgba(239, 68, 68, 0.08);
  --color-error-border: rgba(239, 68, 68, 0.18);
  
  --color-text-primary: hsl(222, 47%, 12%);
  --color-text-secondary: hsl(215, 16%, 35%);
  --color-text-muted: hsl(215, 16%, 55%);
  
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  --border-light: 1px solid rgba(15, 23, 42, 0.08);
  --border-focus: 1px solid hsl(217, 91%, 55%);
  
  --shadow-premium: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

/* App Container (Mobile Wrapper) */
.app-container {
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height to prevent iOS address bar layout offset */
  background-color: var(--color-bg-base);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-premium);
  border-left: var(--border-light);
  border-right: var(--border-light);
}

@media (min-width: 481px) {
  .app-container {
    height: 850px;
    border-radius: var(--border-radius-lg);
    border: var(--border-light);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  }
  
  body {
    background: radial-gradient(circle at top right, hsl(210, 20%, 94%), hsl(210, 20%, 86%) 80%);
  }
}

/* App Header */
.app-header {
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: var(--border-light);
  z-index: 10;
}

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

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

.header-logo h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-sim-header {
  background: rgba(15, 23, 42, 0.05);
  border: var(--border-light);
  color: var(--color-text-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-sim-header:hover {
  background: rgba(15, 23, 42, 0.1);
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.05);
  padding: 4px 10px;
  border-radius: 20px;
  border: var(--border-light);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.online {
  background-color: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
}

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

/* App Content Area */
.app-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* Habilita momentum scroll no iOS */
  padding: 20px;
  padding-bottom: 120px; /* Safe padding for browser bottom bars and to force scroll initialization on iOS */
}

/* Tab Content Visibility */
.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.badge {
  background: var(--color-primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Cards List */
.cards-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.loading-spinner {
  text-align: center;
  padding: 40px;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

/* Premium Glass Cards */
.session-card {
  background: var(--color-bg-card);
  border: var(--border-light);
  border-radius: var(--border-radius-md);
  padding: 16px;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.session-card:hover, .session-card:active {
  transform: translateY(-2px);
  border-color: rgba(15, 23, 42, 0.15);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card-time {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.card-code {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background: rgba(15, 23, 42, 0.05);
  padding: 2px 8px;
  border-radius: 6px;
}

.card-address {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text-primary);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: var(--border-light);
  padding-top: 10px;
  font-size: 0.85rem;
}

.card-owner {
  color: var(--color-text-secondary);
}

.card-owner strong {
  color: var(--color-text-primary);
}

.card-arrow {
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
}

.session-card:hover .card-arrow {
  transform: translateX(4px);
  color: var(--color-primary);
}

/* Card Waiting Links Extras */
.card-actions-links {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: var(--border-light);
  padding-top: 15px;
}

.input-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.text-input {
  background: rgba(255, 255, 255, 0.8);
  border: var(--border-light);
  border-radius: var(--border-radius-sm);
  padding: 10px 12px;
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  width: 100%;
}

.text-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #ffffff;
}

/* Card History Extras */
.card-drive-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  margin-top: 8px;
  font-size: 0.85rem;
}

.card-drive-link:hover {
  text-decoration: underline;
}

.badge-status {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-status.finalizado {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
}

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

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: #fff;
}

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

.btn-success {
  background-color: var(--color-success);
  color: #fff;
}

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

.btn-large {
  padding: 16px 24px;
  font-size: 1.05rem;
  border-radius: var(--border-radius-md);
}

.btn-block {
  width: 100%;
}

.flex-1 {
  flex: 1;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* Bottom Navigation Bar */
nav.app-nav {
  display: none !important;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-icon {
  width: 22px;
  height: 22px;
  transition: var(--transition-smooth);
}

.nav-item span {
  font-size: 0.75rem;
  font-weight: 500;
}

.nav-item.active {
  color: var(--color-primary);
}

.nav-item.active .nav-icon {
  transform: translateY(-2px);
  stroke: var(--color-primary);
}

/* Fullscreen Details Overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.overlay-sheet {
  width: 100%;
  height: 100%;
  background-color: var(--color-bg-base);
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  border-top: none;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
}

.overlay.active .overlay-sheet {
  transform: translateY(0);
}

.overlay-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--border-light);
  position: relative;
}

.btn-close {
  background: rgba(15, 23, 42, 0.05);
  border: var(--border-light);
  color: var(--color-text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-close:hover {
  background: rgba(15, 23, 42, 0.1);
}

.btn-close svg {
  width: 18px;
  height: 18px;
}

.overlay-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  position: static;
  transform: none;
  left: auto;
  margin: 0 auto 0 12px;
}

.overlay-status-tag {
  background: rgba(245, 158, 11, 0.1);
  color: hsl(38, 92%, 50%);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: auto;
}

.overlay-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 0;
}

/* Detail Blocks */
.detail-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

/* Owner Details Card */
.owner-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(15, 23, 42, 0.02);
  border: var(--border-light);
  border-radius: var(--border-radius-md);
  padding: 14px;
}

.owner-avatar {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.owner-info h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.owner-info p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.action-buttons-row {
  display: flex;
  gap: 12px;
}

/* Property Info Card */
.property-info-card {
  background: rgba(15, 23, 42, 0.02);
  border: var(--border-light);
  border-radius: var(--border-radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-title {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.info-value {
  font-size: 1rem;
  font-weight: 600;
}

.info-full {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: var(--border-light);
  padding-top: 12px;
}

.address-value {
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text-primary);
}

/* Alerta Block (Observações Críticas) */
.alert-block {
  display: block;
}

.alert-box {
  background-color: var(--color-error-bg);
  border: 1px solid var(--color-error-border);
  border-radius: var(--border-radius-md);
  padding: 16px;
  display: flex;
  gap: 12px;
}

.alert-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.alert-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-primary);
}

/* Mapa Placeholder Block */
.map-placeholder {
  background: linear-gradient(135deg, hsl(210, 20%, 96%) 0%, hsl(210, 20%, 92%) 100%);
  border: var(--border-light);
  border-radius: var(--border-radius-md);
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 140px;
  position: relative;
  overflow: hidden;
}

/* Abstract design in background of map placeholder */
.map-placeholder::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background-image: 
    radial-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center;
  opacity: 0.7;
}

.map-icon {
  font-size: 2rem;
  z-index: 1;
  filter: drop-shadow(0 4px 8px rgba(15,23,42,0.12));
  animation: bounce 2s infinite;
}

.map-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  z-index: 1;
  color: var(--color-primary);
}

.map-address {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  z-index: 1;
  max-width: 80%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-coordinates {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  z-index: 1;
}

/* Overlay Footer */
.overlay-footer {
  padding: 20px;
  border-top: var(--border-light);
  background-color: rgba(255, 255, 255, 0.85);
}

/* Toast Notification System */
#toast-container {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 90%;
  max-width: 400px;
  pointer-events: none;
}

.toast {
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(15,23,42,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(-20px);
  animation: slideInToast 0.3s forwards, fadeOut 0.3s 2.7s forwards;
  pointer-events: auto;
}

.toast.success {
  border-left-color: var(--color-success);
}

.toast.error {
  border-left-color: var(--color-error);
}

/* Utility classes */
.hidden {
  display: none !important;
}

/* Keyframes & Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInToast {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-10px); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Spinner */
.btn-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s ease-in-out infinite;
}

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

/* Mobile Column Selector Tab Bar */
.mobile-column-selector {
  position: sticky;
  top: -20px;
  z-index: 20;
  display: flex;
  gap: 10px;
  padding: 12px 20px;
  overflow-x: auto;
  white-space: nowrap;
  background-color: var(--color-bg-surface);
  border-bottom: var(--border-light);
  margin: -20px -20px 20px -20px; /* Bleed to app-content edges */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}


.mobile-column-selector::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.col-selector-btn {
  background: var(--color-bg-base);
  border: var(--border-light);
  color: var(--color-text-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.col-selector-btn:active {
  transform: scale(0.95);
}

.col-selector-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: hsl(0, 0%, 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

/* Styling for cards with active reminders (Shared between Desktop and Mobile) */
.session-card.reminder-active,
.kanban-card.reminder-active {
  background-color: hsl(38, 92%, 97%) !important; /* Soft warm yellowish/amber */
  border: 1.5px solid hsl(38, 92%, 60%) !important; /* Standout amber border */
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15) !important;
}

.session-card.reminder-active:hover,
.kanban-card.reminder-active:hover {
  background-color: hsl(38, 92%, 95%) !important;
  border-color: hsl(38, 92%, 50%) !important;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.25) !important;
}

/* Reminder badge styling */
.kcard-reminder-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.kcard-reminder-badge.active {
  background-color: hsl(38, 92%, 90%);
  color: hsl(38, 92%, 25%);
  border: 1px solid hsl(38, 92%, 75%);
}

.kcard-reminder-badge.pending {
  background-color: hsl(210, 20%, 92%);
  color: var(--color-text-secondary);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

/* Pulsing dot for active reminder */
.reminder-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: hsl(38, 92%, 45%);
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: pulse-orange 1.5s infinite;
}

@keyframes pulse-orange {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

/* Fix mobile alignment to prevent vertical flex-centering gaps on phones */
@media (max-width: 480px) {
  body {
    min-height: 100dvh;
    height: 100dvh;
    align-items: stretch;
  }
  
  .app-container {
    height: 100%;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }
}

.kcard-followup-detail-badge {
  font-size: 0.72rem;
  color: var(--color-primary);
  background-color: hsl(217, 91%, 95%);
  border: 1px solid hsl(217, 91%, 90%);
  padding: 6px 10px;
  border-radius: 6px;
  margin-top: 6px;
  line-height: 1.4;
  word-break: break-word;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Mobile Chat Simulator and Sub-tabs */
.modal-tabs-header .modal-tab-btn {
  flex: 1;
  padding: 14px;
  border: none;
  background: transparent;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.modal-tabs-header .modal-tab-btn.active {
  color: var(--color-primary) !important;
  border-bottom: 3px solid var(--color-primary) !important;
}

/* Chat bubble styling for mobile */
.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  font-size: 0.8rem;
  line-height: 1.45;
  border-radius: 12px;
  position: relative;
  word-break: break-word;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.chat-bubble.owner {
  align-self: flex-end;
  background-color: var(--color-whatsapp);
  color: #fff;
  border-bottom-right-radius: 2px;
}
.chat-bubble.bot {
  align-self: flex-start;
  background-color: var(--color-bg-surface);
  color: var(--color-text-primary);
  border-bottom-left-radius: 2px;
  border: var(--border-light);
}
.chat-bubble.system {
  align-self: center;
  background-color: hsl(0, 50%, 98%);
  color: hsl(0, 70%, 45%);
  border-radius: 8px;
  font-size: 0.75rem;
  border: 1px solid hsl(0, 50%, 93%);
  max-width: 90%;
  text-align: center;
  margin: 6px 0;
  box-shadow: none;
}
.chat-bubble.system .chat-bubble-time {
  color: hsl(0, 30%, 65%);
}
.chat-bubble-time {
  display: block;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: right;
  margin-top: 4px;
}
.chat-bubble.bot .chat-bubble-time {
  color: var(--color-text-muted);
}

/* Bot Status Banner on Mobile */
.bot-status-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  font-size: 0.75rem;
  background-color: rgba(34, 197, 94, 0.08);
  border-bottom: var(--border-light);
  color: #22c55e;
}
.bot-status-banner.inactive {
  background-color: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}
.bot-status-banner.active .btn-toggle-bot,
.bot-status-banner.active #mobile-btn-toggle-bot,
.bot-status-banner.active #mobile-btn-toggle-bot-manual {
  background-color: #ef4444;
  color: #fff;
  border: none;
}
.bot-status-banner.inactive .btn-toggle-bot,
.bot-status-banner.inactive #mobile-btn-toggle-bot,
.bot-status-banner.inactive #mobile-btn-toggle-bot-manual {
  background-color: #22c55e;
  color: #fff;
  border: none;
}
.bot-status-banner.active .bot-status-dot {
  background-color: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}
.bot-status-banner.inactive .bot-status-dot {
  background-color: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

