/* WhatsApps Bulk Frontend Styles */
:root {
  --wab-bg: #25D366;
  --wab-text: #ffffff;
  --wab-hover-bg: #1EBE57;
  --wab-hover-text: #ffffff;
}

/* Floating Button */
.wab-floating-wrap { position: fixed; right: 24px; bottom: 24px; z-index: 99999; display: flex; align-items: center; gap: 10px; }
.wab-floating-bubble { background: #eef3f7; color: #222; padding: 8px 12px; border-radius: 10px; box-shadow: 0 4px 18px rgba(0,0,0,.08); font-size: 14px; font-weight: 500; }
.wab-floating-circle { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--wab-bg); color: var(--wab-text); box-shadow: 0 6px 20px rgba(0,0,0,.15); transition: transform .2s ease, background .2s ease; }
.wab-floating-link { display: flex; align-items: center; text-decoration: none; }
.wab-floating-link:hover .wab-floating-circle { background: var(--wab-hover-bg); transform: translateY(-2px); }
@media (max-width: 480px) { .wab-floating-bubble { display: none; } .wab-floating-circle { width: 56px; height: 56px; } }

/* Modal */
.wab-modal { position: fixed; inset: 0; display: none; z-index: 99998; }
.wab-modal.is-open { display: block; }
.wab-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.wab-panel { position: fixed; right: 24px; bottom: 90px; width: 380px; max-width: 92vw; background: #fff; border-radius: 12px; box-shadow: 0 12px 36px rgba(0,0,0,.2); overflow: hidden; }
.wab-panel-header { background: var(--wab-bg); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px; }
.wab-panel-header-left { display: grid; grid-template-columns: 24px 1fr; column-gap: 10px; align-items: start; }
.wab-panel-header-left > svg { grid-row: 1 / span 2; flex-shrink: 0; }
.wab-panel-title { font-size: 16px; font-weight: 700; }
.wab-panel-sub { font-size: 13px; opacity: .95; }
.wab-close { background: transparent; border: none; cursor: pointer; padding: 6px; display: flex; align-items: center; justify-content: center; color: #fff; }
.wab-panel-body { padding: 12px; max-height: 60vh; overflow: auto; background: #fff; }
.wab-panel-note { color: #6b7280; font-size: 13px; margin: 4px 0 12px; }
@media (max-width: 480px) { .wab-panel { right: 12px; left: 12px; bottom: 88px; width: auto; } }

/* Agent list and cards */
.wab-agent-list { margin-top: 0; display: flex; flex-direction: column; gap: 8px; }
.wab-agent-card { display: flex; gap: 10px; align-items: center; background: var(--wab-bg); color: var(--wab-text); border-radius: 10px; padding: 10px 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); text-decoration: none; margin: 4px 0; width: 100%; }
.wab-agent-card:hover { background: var(--wab-hover-bg); color: var(--wab-hover-text); opacity: .98; }
.wab-agent-avatar { position: relative; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.1); flex: 0 0 44px; }
.wab-agent-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wab-wa-badge { position: absolute; right: -2px; bottom: -2px; background: #fff; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.wab-wa-badge .wa { display: block; width: 14px; height: 14px; line-height: 14px; text-align: center; font-weight: 700; font-size: 10px; color: #25D366; }
.wab-avatar-fallback { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; border: 2px solid #fff; }
.wab-agent-content { display: flex; flex-direction: column; gap: 3px; }
.wab-agent-title { font-weight: 700; font-size: clamp(12px, 3.4vw, 15px); line-height: 1.3; }
.wab-agent-sub { font-weight: 600; font-size: clamp(11px, 3.0vw, 14px); }
.wab-badge { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 999px; font-size: 10px; background: #D9D9D9; color: #333; }
.wab-badge-online { background: #1EBE57; color: #fff; }

/* Minimal list item for modal */
.wab-item { display: flex; gap: 10px; align-items: center; background: #fff; color: #0f172a; border-radius: 10px; padding: 10px 12px; text-decoration: none; margin: 0; width: 100%; border: 1px solid #e5e7eb; border-left: 4px solid transparent; box-sizing: border-box; }
.wab-item:hover { background: #f9fafb; border-color: #d1d5db; }
.wab-item.is-online { border-left-color: #22c55e; }
.wab-item.is-offline { border-left-color: #9ca3af; }
.wab-avatar { position: relative; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; border: 1px solid #e5e7eb; flex: 0 0 36px; background: #f3f4f6; }
.wab-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wab-wa { display: none; }
.wab-info { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.wab-name { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: clamp(13px, 3.4vw, 15px); line-height: 1.25; color: #0f172a; }
.wab-state { display: inline-block; padding: 2px 6px; border-radius: 999px; font-size: 10px; background: #eef2ff; color: #1e293b; }
.wab-state.online { background: #dcfce7; color: #166534; }
.wab-role { font-weight: 500; font-size: 11px; color: #6b7280; }
.wab-note { font-weight: 500; font-size: 11px; color: #6b7280; }
.wab-tail { color: currentColor; }