/* WACaller WhatsApp Agent Dashboard Stylesheet */

:root {
  --wa-teal-dark: #075e54;
  --wa-teal-primary: #008069;
  --wa-teal-light: #00a884;
  --wa-teal-badge: #25d366;
  --wa-bg-panel: #f0f2f5;
  --wa-bg-chat: #efeae2;
  --wa-bg-chat-bubble-out: #d9fdd3;
  --wa-bg-chat-bubble-in: #ffffff;
  --wa-border: #e9edef;
  --wa-text-primary: #111b21;
  --wa-text-secondary: #667781;
  --wa-text-muted: #8696a0;
  --wa-shadow-sm: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  --wa-shadow-modal: 0 17px 50px 0 rgba(11, 20, 26, 0.19);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.whatsapp-mode {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #dadbd4;
  color: var(--wa-text-primary);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Top App Bar */
.wa-app-bar {
  background: var(--wa-teal-dark);
  color: #ffffff;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  user-select: none;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.wa-app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.2px;
}

.wa-app-brand-icon {
  width: 26px;
  height: 26px;
  background: var(--wa-teal-badge);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #ffffff;
}

.wa-app-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.wa-badge-pill {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.wa-badge-available { background: #25d366; color: #ffffff; }
.wa-badge-on_call { background: #3b82f6; color: #ffffff; }
.wa-badge-wrap_up { background: #f59e0b; color: #ffffff; }
.wa-badge-break { background: #6b7280; color: #ffffff; }

.wa-apk-download-btn {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.15s ease;
}
.wa-apk-download-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.wa-agent-select {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  outline: none;
}
.wa-agent-select option {
  background: #ffffff;
  color: #111b21;
}

/* Main Split Viewport */
.wa-main-container {
  flex: 1;
  display: flex;
  height: calc(100vh - 48px);
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(11,20,26,.05);
}

/* Left Sidebar (Contacts / Conversations) */
.wa-sidebar {
  width: 380px;
  min-width: 320px;
  max-width: 440px;
  border-right: 1px solid var(--wa-border);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  height: 100%;
}

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

.wa-agent-profile-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-agent-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--wa-teal-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.wa-agent-details {
  display: flex;
  flex-direction: column;
}

.wa-agent-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--wa-text-primary);
}

.wa-agent-headset-tag {
  font-size: 11px;
  color: var(--wa-text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Mic Preflight Bar */
.wa-mic-status-bar {
  background: #fdf8e2;
  border-bottom: 1px solid #fae8a4;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #855f00;
}
.wa-mic-status-bar.passed {
  background: #edf7ed;
  border-bottom: 1px solid #c8e6c9;
  color: #1e4620;
}

.wa-btn-mic-test {
  background: #111b21;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}
.wa-mic-status-bar.passed .wa-btn-mic-test {
  background: #2e7d32;
}

/* Search & Filters */
.wa-search-section {
  padding: 8px 12px;
  border-bottom: 1px solid var(--wa-border);
  background: #ffffff;
}

.wa-search-box {
  background: var(--wa-bg-panel);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 6px 12px;
  gap: 8px;
}

.wa-search-input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  width: 100%;
  color: var(--wa-text-primary);
}
.wa-search-input::placeholder {
  color: var(--wa-text-muted);
}

.wa-filter-tabs {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.wa-filter-tab {
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--wa-bg-panel);
  font-size: 11px;
  font-weight: 600;
  color: var(--wa-text-secondary);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.wa-filter-tab:hover {
  background: #e2e5e9;
}
.wa-filter-tab.active {
  background: #008069;
  color: #ffffff;
}

/* Quick Direct Dial Action Strip */
.wa-direct-dial-strip {
  padding: 8px 12px;
  background: #fcfcfc;
  border-bottom: 1px solid var(--wa-border);
  display: flex;
  gap: 6px;
  align-items: center;
}

.wa-direct-dial-input {
  flex: 1;
  border: 1px solid var(--wa-border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-family: monospace;
  outline: none;
}
.wa-direct-dial-input:focus {
  border-color: var(--wa-teal-primary);
}

.wa-direct-dial-btn {
  background: var(--wa-teal-light);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.wa-direct-dial-btn:hover {
  background: var(--wa-teal-primary);
}

/* Contact / Chat List */
.wa-chat-list {
  flex: 1;
  overflow-y: auto;
  background: #ffffff;
}

.wa-chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f2f4f5;
  cursor: pointer;
  transition: background 0.12s ease;
  position: relative;
}
.wa-chat-item:hover {
  background: #f5f6f6;
}
.wa-chat-item.active {
  background: #eaecef;
}

.wa-chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #dfe5e7;
  color: #54656f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.wa-chat-item.active .wa-chat-avatar {
  background: var(--wa-teal-primary);
  color: #ffffff;
}

.wa-chat-info {
  flex: 1;
  min-width: 0;
}

.wa-chat-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.wa-chat-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--wa-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-chat-time {
  font-size: 11px;
  color: var(--wa-text-muted);
}

.wa-chat-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wa-chat-snippet {
  font-size: 12px;
  color: var(--wa-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  margin-right: 6px;
}

.wa-chat-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  text-transform: capitalize;
}
.wa-chat-badge-sale { background: #dcfce7; color: #15803d; }
.wa-chat-badge-callback { background: #fef3c7; color: #b45309; }
.wa-chat-badge-no_answer { background: #fee2e2; color: #b91c1c; }
.wa-chat-badge-new { background: #e0f2fe; color: #0369a1; }

.wa-chat-quick-call {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.wa-chat-quick-call:hover {
  background: #16a34a;
  color: #ffffff;
}

/* Right Chat Area */
.wa-chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--wa-bg-chat);
  position: relative;
  height: 100%;
}

/* WhatsApp Pattern Background */
.wa-chat-area::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image: radial-gradient(#000 1px, transparent 1px);
  background-size: 16px 16px;
}

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

.wa-chat-header-contact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-chat-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--wa-teal-light);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

.wa-chat-header-info h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--wa-text-primary);
  margin-bottom: 1px;
}

.wa-chat-header-info p {
  font-size: 12px;
  color: var(--wa-text-secondary);
  font-family: monospace;
}

.wa-chat-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-btn-call-whatsapp {
  background: #25d366;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(37,211,102,0.25);
  transition: all 0.15s ease;
}
.wa-btn-call-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-1px);
}

.wa-btn-view-notes {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}
.wa-btn-view-notes:hover {
  background: #dcfce7;
  border-color: #4ade80;
}

.wa-btn-log-outcome {
  background: #ffffff;
  border: 1px solid var(--wa-border);
  color: var(--wa-text-primary);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.wa-btn-log-outcome:hover {
  background: #f9fafb;
}

/* In-Call Active HUD Banner */
.wa-incall-banner {
  background: #111b21;
  color: #ffffff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #25d366;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 20;
  animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.wa-incall-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wa-pulsing-call-dot {
  width: 12px;
  height: 12px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.wa-incall-status-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.wa-incall-timer {
  font-size: 18px;
  font-weight: 700;
  font-family: monospace;
  color: #25d366;
}

.wa-incall-line-tag {
  font-size: 11px;
  color: #8696a0;
  font-family: monospace;
}

.wa-incall-waveforms {
  display: flex;
  gap: 12px;
  align-items: center;
}

.wa-wave-box {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  width: 130px;
}

.wa-wave-label {
  font-size: 9px;
  color: #8696a0;
  margin-bottom: 2px;
}

.wa-incall-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-btn-hud-mute {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.wa-btn-hud-mute.muted {
  background: #dc2626;
  border-color: #dc2626;
}

.wa-btn-hud-end {
  background: #ea0038;
  color: #ffffff;
  border: none;
  padding: 6px 18px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.wa-btn-hud-end:hover {
  background: #c80030;
}

/* Chat History Stream */
.wa-chat-stream {
  flex: 1;
  overflow-y: auto;
  padding: 20px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.wa-date-divider {
  align-self: center;
  background: #ffffff;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--wa-text-secondary);
  box-shadow: var(--wa-shadow-sm);
  margin: 6px 0;
  text-transform: uppercase;
}

/* Message Bubbles */
.wa-message-bubble {
  max-width: 65%;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: var(--wa-shadow-sm);
  position: relative;
  font-size: 13.5px;
  line-height: 1.45;
  word-wrap: break-word;
}

.wa-message-out {
  align-self: flex-end;
  background: var(--wa-bg-chat-bubble-out);
  border-top-right-radius: 0;
  color: var(--wa-text-primary);
}

.wa-message-in {
  align-self: flex-start;
  background: var(--wa-bg-chat-bubble-in);
  border-top-left-radius: 0;
  color: var(--wa-text-primary);
}

.wa-message-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--wa-text-muted);
}

.wa-checkmarks {
  color: #53bdeb;
  font-weight: 700;
  font-size: 12px;
}

/* Call Event Cards in Stream */
.wa-call-event-card {
  align-self: center;
  background: #ffffff;
  border: 1px solid #d1d7db;
  border-radius: 8px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--wa-text-primary);
  box-shadow: var(--wa-shadow-sm);
  margin: 4px 0;
}

.wa-call-event-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8f5e9;
  color: #2e7d32;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* Quick Sales Templates Strip */
.wa-templates-strip {
  background: var(--wa-bg-panel);
  border-top: 1px solid var(--wa-border);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  z-index: 10;
}

.wa-template-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--wa-text-muted);
  white-space: nowrap;
}

.wa-template-chip {
  background: #ffffff;
  border: 1px solid var(--wa-border);
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 500;
  color: var(--wa-text-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.wa-template-chip:hover {
  background: #e9edef;
  border-color: #d1d7db;
}

/* Bottom Chat Input Bar */
.wa-chat-footer {
  background: var(--wa-bg-panel);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--wa-border);
  z-index: 10;
}

.wa-footer-icon-btn {
  background: transparent;
  border: none;
  color: #54656f;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

.wa-chat-input-wrapper {
  flex: 1;
  background: #ffffff;
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
}

.wa-chat-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--wa-text-primary);
  background: transparent;
}
.wa-chat-input::placeholder {
  color: var(--wa-text-muted);
}

.wa-btn-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--wa-teal-light);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.15s ease;
  flex-shrink: 0;
}
.wa-btn-send:hover {
  background: var(--wa-teal-primary);
}

/* Empty Conversation Splash */
.wa-empty-chat-splash {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  color: var(--wa-text-secondary);
  z-index: 2;
}

.wa-splash-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e2f0d9;
  color: #25d366;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.wa-splash-title {
  font-size: 24px;
  font-weight: 300;
  color: var(--wa-text-primary);
  margin-bottom: 10px;
}

.wa-splash-desc {
  font-size: 14px;
  color: var(--wa-text-secondary);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ============================================================= */
/* Mobile Responsiveness & Navigation (≤ 768px)                  */
/* ============================================================= */

.wa-back-btn {
  display: none;
}

@media (max-width: 768px) {
  body.whatsapp-mode {
    height: 100vh;
    height: 100dvh;
  }

  /* Top App Bar */
  .wa-app-bar {
    height: 48px;
    padding: 0 8px;
    gap: 6px;
  }

  .wa-app-brand span.wa-app-title-text {
    font-size: 13px;
    white-space: nowrap;
  }

  .wa-app-brand span#waActiveLineBadge {
    display: none;
  }

  .wa-app-brand {
    font-size: 13px;
    gap: 6px;
  }

  .wa-app-brand-icon {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }

  .wa-app-controls {
    gap: 4px;
    display: flex;
    align-items: center;
  }

  .wa-apk-download-btn {
    padding: 3px 6px;
    font-size: 10px;
  }
  .wa-apk-download-btn .apk-btn-text {
    display: none;
  }

  #currentStatusBadge {
    display: none;
  }

  #agentStatusQuickSelect {
    max-width: 86px;
    font-size: 10.5px;
    padding: 2px 4px;
  }

  #agentSelector {
    max-width: 76px;
    font-size: 10.5px;
    padding: 2px 4px;
  }

  .wa-btn-log-outcome .btn-text {
    display: none;
  }

  /* Viewport Split -> Mobile Single Screen Flow */
  .wa-main-container {
    height: calc(100vh - 44px);
    height: calc(100dvh - 44px);
    position: relative;
    width: 100vw;
  }

  /* When NOT viewing active chat: show sidebar, hide chat area */
  .wa-main-container:not(.mobile-show-chat) .wa-sidebar {
    display: flex;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    border-right: none;
  }

  .wa-main-container:not(.mobile-show-chat) .wa-chat-area {
    display: none;
  }

  /* When viewing active chat: hide sidebar, show chat area */
  .wa-main-container.mobile-show-chat .wa-sidebar {
    display: none;
  }

  .wa-main-container.mobile-show-chat .wa-chat-area {
    display: flex;
    width: 100%;
    height: 100%;
  }

  /* Back Button on Mobile */
  .wa-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--wa-text-primary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 4px;
    padding: 0;
  }
  .wa-back-btn:active {
    background: rgba(0, 0, 0, 0.08);
  }

  /* Chat Header */
  .wa-chat-header {
    height: 54px;
    padding: 6px 10px;
  }

  .wa-chat-header-avatar {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .wa-chat-header-info h2 {
    font-size: 13.5px;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .wa-chat-header-info p {
    font-size: 10.5px;
  }

  .wa-chat-badge {
    display: none;
  }

  .wa-chat-header-actions {
    gap: 6px;
  }

  .wa-btn-call-whatsapp {
    padding: 6px 10px;
    font-size: 11px;
    border-radius: 16px;
  }

  .wa-btn-log-outcome {
    padding: 6px 8px;
    font-size: 11px;
  }

  /* In-Call HUD Banner on Mobile */
  .wa-incall-banner {
    padding: 8px 10px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .wa-incall-left {
    gap: 8px;
    flex: 1;
    min-width: 140px;
  }

  .wa-incall-status-title {
    font-size: 11px;
  }

  .wa-incall-timer {
    font-size: 15px;
  }

  .wa-incall-line-tag {
    font-size: 10px;
  }

  .wa-incall-waveforms {
    gap: 6px;
  }

  .wa-wave-box {
    width: 80px;
    padding: 2px 4px;
  }

  .wa-wave-label {
    font-size: 8px;
  }

  .wa-incall-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 2px;
  }

  .wa-btn-hud-mute, .wa-btn-hud-end {
    padding: 5px 12px;
    font-size: 11px;
  }

  /* Chat Stream */
  .wa-chat-stream {
    padding: 12px 10px;
    gap: 8px;
  }

  .wa-message-bubble {
    max-width: 84%;
    font-size: 13px;
    padding: 6px 10px;
  }

  .wa-call-event-card {
    padding: 6px 10px;
    font-size: 11px;
    max-width: 95%;
  }

  /* Quick Templates Strip */
  .wa-templates-strip {
    padding: 4px 8px;
    gap: 6px;
  }

  .wa-template-label {
    display: none;
  }

  .wa-template-chip {
    padding: 3px 8px;
    font-size: 10.5px;
  }

  /* Bottom Input Footer */
  .wa-chat-footer {
    padding: 6px 8px;
    gap: 6px;
  }

  .wa-chat-input-wrapper {
    padding: 6px 10px;
  }

  .wa-chat-input {
    font-size: 14px;
  }

  .wa-btn-send {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  /* Empty Chat Splash */
  .wa-empty-chat-splash {
    padding: 24px 16px;
  }

  .wa-splash-icon {
    width: 56px;
    height: 56px;
    font-size: 28px;
  }

  .wa-splash-title {
    font-size: 18px;
  }

  .wa-splash-desc {
    font-size: 12px;
    line-height: 1.5;
  }

  /* Modals on Mobile */
  .modal-overlay {
    padding: 12px;
    align-items: center;
    justify-content: center;
  }

  .modal-content {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 90vh;
    overflow-y: auto;
    padding: 16px !important;
  }
}
