/* Rentersaathi Operational PoC Stylesheet - Modern Light Mode */
:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --bg-main: #f8fafc;
  --surface-card: #ffffff;
  --border-light: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent-amber: #d97706;
  --accent-emerald: #059669;
  --accent-sky: #0284c7;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

/* Custom Clean Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Active tab button */
.tab-btn.active {
  color: #4f46e5;
  border-bottom-color: #4f46e5;
  background-color: rgba(238, 242, 255, 0.6);
}

/* Badge & Pill Wrapping Prevention */
.rounded-full,
.badge-auto,
.badge-human,
.badge-bot {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center;
  flex-shrink: 0;
}

/* Pipeline Step Cards */
.pipeline-step-box {
  transition: all 0.2s ease-in-out;
}
.pipeline-step-box:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

/* Simulated Browser Viewport Chrome */
.browser-window-bar {
  user-select: none;
  background: #f1f5f9;
}

#simulated-browser-screen {
  background: #ffffff;
  border-radius: 0 0 1rem 1rem;
}

/* Developer Terminal Log Styling (High Contrast Inside Clean Frame) */
#bot-terminal-output {
  font-family: 'JetBrains Mono', monospace;
  background-color: #0f172a;
  color: #e2e8f0;
}

.log-entry {
  display: flex;
  gap: 0.5rem;
  line-height: 1.45;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.log-time {
  color: #94a3b8;
  flex-shrink: 0;
}
.log-tag-bot {
  color: #38bdf8;
  font-weight: 600;
}
.log-tag-igr {
  color: #fbbf24;
  font-weight: 600;
}
.log-tag-interakt {
  color: #34d399;
  font-weight: 600;
}
.log-tag-human {
  color: #f59e0b;
  font-weight: 600;
}
.log-msg {
  color: #cbd5e1;
}

/* WhatsApp Mobile Frame & Bubble Styling (Clean Authentic WhatsApp Theme) */
.whatsapp-phone-frame {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.08);
  background-color: #ffffff;
  border: 8px solid #1e293b;
  border-radius: 40px;
  overflow: hidden;
  height: 620px;
  max-height: 620px;
  display: flex;
  flex-direction: column;
}

#whatsapp-message-thread {
  background-color: #efeae2;
  background-image: radial-gradient(#d1d7db 0.8px, transparent 0.8px), radial-gradient(#d1d7db 0.8px, #efeae2 0.8px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wa-bubble-received {
  background-color: #ffffff;
  color: #111827;
  border-radius: 12px 12px 12px 2px;
  max-width: 88%;
  align-self: flex-start;
  padding: 8px 12px 6px 12px;
  box-shadow: 0 1px 1.5px rgba(11, 20, 26, 0.12);
  position: relative;
  font-size: 12px;
  line-height: 1.45;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.wa-bubble-sent {
  background-color: #d9fdd3;
  color: #111827;
  border-radius: 12px 12px 2px 12px;
  max-width: 88%;
  align-self: flex-end;
  padding: 8px 12px 6px 12px;
  box-shadow: 0 1px 1.5px rgba(11, 20, 26, 0.12);
  position: relative;
  font-size: 12px;
  line-height: 1.45;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.wa-card {
  background-color: #f8fafc;
  border-radius: 0.375rem;
  padding: 0.5rem;
  margin-top: 0.4rem;
  border: 1px solid #e2e8f0;
}

.wa-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  color: #00a884;
  font-weight: 700;
  font-size: 11.5px;
  padding: 9px 0 3px 0;
  margin-top: 8px;
  border-top: 1px solid #e9edef;
  transition: all 0.15s;
  cursor: pointer;
  background: transparent;
}
.wa-button:hover {
  color: #008069;
  background-color: rgba(0, 0, 0, 0.02);
}

/* Toast animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast-item {
  animation: slideInUp 0.25s ease-out forwards;
}
