:root {
  --navy: #0f1b3d;
  --navy-light: #16234f;
  --blue: #2563eb;
  --blue-light: #eff6ff;
  --blue-dark: #1d4ed8;
  
  --green: #16a34a;
  --green-bg: #f0fdf4;
  --green-border: #bbf7d0;
  
  --amber: #ea580c;
  --amber-bg: #fff7ed;
  --amber-border: #ffedd5;
  
  --purple: #7c3aed;
  --purple-bg: #faf5ff;
  --purple-border: #f3e8ff;
  
  --indigo: #4f46e5;
  --indigo-bg: #eef2ff;
  --indigo-border: #e0e7ff;
  
  --gray: #475569;
  --gray-bg: #f8fafc;
  --gray-border: #e2e8f0;
  
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg: #f8fafc;
  --white: #ffffff;
  
  --wa-green: #00a884;
  --wa-green-dark: #008069;
  --wa-bg: #efeae2;
  --wa-bubble-out: #d9fdd3;
  --wa-bubble-in: #ffffff;
  
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
}

input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background-color: var(--white);
  transition: all 0.15s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.field {
  margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn:hover {
  border-color: #cbd5e1;
  background-color: #fafbfc;
}

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

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

.btn-danger {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
}

.btn-danger:hover {
  background: #fee2e2;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 8px;
  color: var(--text-muted);
}

.btn-icon:hover {
  color: var(--text);
  background-color: #f1f5f9;
}

/* App Shell Layout */
.app-shell {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 250px;
  height: 100vh;
  flex-shrink: 0;
  /* Was min-height on .app-shell with no scroll container of its own, so a
     tall page (Settings, with its stacked cards) made the whole document
     scroll — dragging the sidebar's brand header off-screen along with it.
     Now the sidebar is pinned at a fixed viewport height and only .main
     scrolls internally. */
  background: var(--navy);
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-shadow: 2px 0 8px rgba(15, 23, 42, 0.05);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand .logo-badge {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 16px;
}

.sidebar-brand span {
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 14px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 13px;
  transition: all 0.15s ease;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.sidebar-nav a.active {
  /* Was the WhatsApp-brand green (#00a884) — fine on the login page, but
     every primary action inside the actual app (Filter, Save preferences,
     Start Session, Restart...) already uses --blue via .btn-primary. Two
     competing "primary" colors in the same app read as inconsistent, so
     the in-app sidebar now matches that same blue instead. */
  background: var(--blue);
  color: #ffffff;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-account {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sidebar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.sidebar-account-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.sidebar-account-name {
  font-weight: 600;
  color: #f1f5f9;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-account-role {
  font-size: 11px;
  color: #64748b;
}

.sidebar-footer form {
  margin: 0;
  flex-shrink: 0;
}

.sidebar-footer button {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.sidebar-footer button:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.main {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  padding: 32px 40px;
  min-width: 0;
}

/* Header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-header h1 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.page-header p {
  color: var(--text-muted);
  margin: 0;
  font-size: 14px;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Filter Form */
.filter-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-input-wrapper {
  position: relative;
  width: 240px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.search-input-wrapper input {
  padding-left: 36px;
}

.select-input-wrapper {
  position: relative;
  width: 140px;
}

.calendar-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

.select-input-wrapper select {
  padding-left: 34px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
}

.btn-filter {
  padding: 10px 18px;
}

.btn-refresh-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  background-color: var(--white);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn-refresh-round svg {
  width: 16px;
  height: 16px;
}

.btn-refresh-round:hover {
  background-color: #f8fafc;
  color: var(--text);
}

/* Stats Cards Grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

@media (max-width: 1150px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}

a.stat-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card.card-total { border-top: 4px solid #2563eb; }
.stat-card.card-pending { border-top: 4px solid #ea580c; }
.stat-card.card-completed { border-top: 4px solid #16a34a; }
.stat-card.card-reply-given { border-top: 4px solid #4f46e5; }
.stat-card.card-reply-pending { border-top: 4px solid #7c3aed; }

/* Active States */
.stat-card.active {
  background-color: #f8fafc;
}
.stat-card.card-total.active { box-shadow: 0 0 0 2px #2563eb; }
.stat-card.card-pending.active { box-shadow: 0 0 0 2px #ea580c; }
.stat-card.card-completed.active { box-shadow: 0 0 0 2px #16a34a; }
.stat-card.card-reply-given.active { box-shadow: 0 0 0 2px #4f46e5; }
.stat-card.card-reply-pending.active { box-shadow: 0 0 0 2px #7c3aed; }

.stat-card .stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.stat-card .stat-icon svg {
  width: 18px;
  height: 18px;
}

.stat-card .value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: #0f172a;
  margin-bottom: 4px;
}

.stat-card .label {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 2px;
}

.stat-card .sub-label {
  font-size: 11px;
  font-weight: 500;
}

/* Stat card colors matching mockup */
.icon-blue { background: #eff6ff; color: #2563eb; }
.text-blue { color: #2563eb; }

.icon-amber { background: #fff7ed; color: #ea580c; }
.text-amber { color: #ea580c; }

.icon-green { background: #f0fdf4; color: #16a34a; }
.text-green { color: #16a34a; }

.icon-indigo { background: #eef2ff; color: #4f46e5; }
.text-indigo { color: #4f46e5; }

.icon-purple { background: #faf5ff; color: #7c3aed; }
.text-purple { color: #7c3aed; }

/* Table Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.card-header h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

/* Recent Inquiries shows every matching row (no pagination) — rather than
   a fixed max-height, it flexes to fill whatever room is left below the
   header + stat cards (see .dashboard-page) and scrolls internally past
   that, with the column header pinned in place. The dashboard page itself
   never needs its own outer scrollbar — only this table does. */
.recent-inquiries-table-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.recent-inquiries-table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.dashboard-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.dashboard-page .recent-inquiries-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  text-align: left;
  padding: 12px 24px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  background-color: #fafbfc;
}

td {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: #334155;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: #fafbfc;
}

/* Custom column adjustments */
.col-title { font-weight: 600; color: #0f172a; }
.col-source { width: 110px; }
.col-client { font-weight: 500; }
.col-phone { white-space: nowrap; }

/* Table Elements Styling */
.table-image-container {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: #f8fafc;
  /* Now a <button> (clickable, opens the lightbox) rather than a <div> —
     reset the default button chrome so it looks identical to before. */
  padding: 0;
  cursor: pointer;
  display: block;
}

.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 11px;
  border: 1px solid var(--border);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
  border: 1px solid transparent;
}

.badge-sm {
  padding: 2px 8px;
  font-size: 10px;
}

.badge-amber {
  background: var(--amber-bg);
  color: var(--amber);
  border-color: var(--amber-border);
}

.badge-purple {
  background: var(--purple-bg);
  color: var(--purple);
  border-color: var(--purple-border);
}

.badge-blue {
  background: var(--blue-light);
  color: var(--blue);
  border-color: #dbeafe;
}

.badge-green {
  background: var(--green-bg);
  color: var(--green);
  border-color: var(--green-border);
}

.badge-gray {
  background: var(--gray-bg);
  color: var(--gray);
  border-color: var(--gray-border);
}

.badge-red {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

/* Source badge tags */
.source-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.tag-icon {
  width: 12px;
  height: 12px;
}

.source-individual {
  background: #e6f7ed;
  color: #15803d;
}

.source-group {
  background: #e0f2fe;
  color: #0369a1;
}

/* Phone and WhatsApp Link */
.wa-chat-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #25d366;
  margin-left: 6px;
  vertical-align: middle;
  transition: transform 0.15s ease;
}

.wa-chat-link:hover {
  transform: scale(1.15);
}

.wa-icon-svg {
  width: 14px;
  height: 14px;
}

.phone-num {
  font-size: 12px;
  color: var(--text-muted);
}

/* Date and Time split formatting */
.date-cell-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.date-part {
  font-weight: 500;
  color: #1e293b;
}

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

/* Action button wrappers */
.action-buttons-wrapper {
  display: flex;
  gap: 6px;
}

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.action-btn svg {
  width: 14px;
  height: 14px;
}

.action-btn:hover {
  background-color: #f1f5f9;
  color: var(--text);
  border-color: #cbd5e1;
}

.btn-chat-trigger:hover {
  background-color: #eff6ff;
  color: var(--blue);
  border-color: #bfdbfe;
}

.quick-action-form {
  margin: 0;
  display: inline-flex;
}

.btn-cancel:hover {
  background-color: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.btn-complete:hover {
  background-color: #f0fdf4;
  color: var(--green);
  border-color: var(--green-border);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

/* Chat Drawer Layout */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 40;
  backdrop-filter: blur(2px);
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.chat-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 440px;
  max-width: 100vw;
  background: #efeae2;
  box-shadow: -10px 0 30px rgba(15, 23, 42, 0.15);
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 41;
  display: flex;
  flex-direction: column;
}

#chat-drawer-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.chat-drawer.open {
  transform: translateX(0);
}

.chat-header {
  background: var(--navy);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-header .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}

.chat-header .who {
  flex: 1;
  min-width: 0;
}

.chat-header .who .name {
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
}

.chat-group-badge {
  font-size: 11px;
  opacity: 0.8;
  font-weight: 400;
}

.chat-header .who .phone {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 1px;
}

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

.header-icon-btn {
  background: none;
  border: none;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.header-icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.header-icon-btn svg {
  width: 16px;
  height: 16px;
}

.chat-header button.close {
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 20px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s ease;
}

.chat-header button.close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Drawer Management Bar */
.chat-manage-bar {
  background: #f8fafc;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.manage-bar-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.manage-grid {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.manage-field {
  flex: 1;
  min-width: 0;
}

.manage-field label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
}

.manage-field select, .manage-field input {
  font-size: 12px;
  padding: 6px 8px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

.field-status { flex: 1.4; }
.field-rate { flex: 1.1; }
.field-currency { flex: 0.7; }
.field-qty { flex: 0.7; }
.field-unit { flex: 0.9; }

.btn-save-manage {
  height: 30px;
  padding: 0 14px;
  font-size: 12px;
  border-radius: 6px;
  font-weight: 600;
}

/* Reply Given toggle */
.reply-given-bar {
  background: #fff;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  margin: 0;
}

.reply-given-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.reply-given-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
}

.reply-given-toggle input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Chat History Body */
.chat-body-wrapper {
  flex: 1;
  overflow-y: auto;
  background-color: #efeae2;
  background-image: radial-gradient(#dfdcd6 1.1px, transparent 1.1px);
  background-size: 14px 14px;
}

.chat-body {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-date-separator {
  text-align: center;
  margin: 10px 0;
}

.chat-date-separator span {
  background: #ffffff;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bubble-wrapper {
  display: flex;
  width: 100%;
}

.bubble-wrapper.in {
  justify-content: flex-start;
}

.bubble-wrapper.out {
  justify-content: flex-end;
}

.bubble {
  max-width: 82%;
  /* Enough to fit the absolutely-positioned timestamp without it
     overlapping short text (e.g. "Hii") — .time-meta doesn't force the
     bubble to widen on its own since it's taken out of normal flow. */
  min-width: 84px;
  padding: 8px 12px 24px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
  position: relative;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
  word-wrap: break-word;
}

.bubble-wrapper.in .bubble {
  background: var(--wa-bubble-in);
  color: #1e293b;
  border-top-left-radius: 2px;
}

.bubble-wrapper.out .bubble {
  background: var(--wa-bubble-out);
  color: #1e293b;
  border-top-right-radius: 2px;
}

/* Bubble attachments */
.bubble-attachment-box {
  margin-bottom: 6px;
  max-width: 100%;
}

.attachment-media-link {
  display: block;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.attachment-media-link img.msg-img {
  max-width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
}

.attachment-media-link {
  cursor: pointer;
  padding: 0;
  background: none;
  width: 100%;
  transition: opacity 0.15s ease;
}

.attachment-media-link:hover {
  opacity: 0.9;
}

/* ── Lightbox (full-image viewer) ─────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
}

.lightbox-overlay.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.attachment-status {
  padding: 10px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 6px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.attachment-status.expired { color: #dc2626; background: #fef2f2; }
.attachment-status.failed { color: #dc2626; background: #fef2f2; }
.attachment-status.pending { color: #d97706; background: #fffbeb; }

.attachment-file-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 6px;
  font-size: 12px;
  color: var(--blue);
  text-decoration: none;
  word-break: break-all;
}

.attachment-file-link:hover {
  background: rgba(0, 0, 0, 0.06);
}

.spinner {
  width: 14px;
  height: 14px;
  animation: spin 1s linear infinite;
  color: var(--text-muted);
}

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

.rate-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 11px;
  color: #ea580c;
  font-weight: 700;
  background: #fff7ed;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #ffedd5;
}

.time-meta {
  position: absolute;
  right: 8px;
  bottom: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.bubble .time {
  font-size: 9px;
  color: #8b96a5;
}

.bubble .check-marks {
  width: 15px;
  height: 15px;
  color: #53bdeb;
  flex-shrink: 0;
}

.chat-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* WhatsApp-style "reply to" quote — the small colored-bar preview shown
   above a message's own content when it quotes an earlier one */
.quoted-preview {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  margin-bottom: 6px;
  border-left: 3px solid var(--wa-green);
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.quoted-preview .quoted-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}

/* Reply icon — hidden until the message is hovered, matching WhatsApp's
   own reveal-on-hover behavior instead of cluttering every bubble */
.bubble-reply-btn {
  display: none;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin: 0 6px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-muted);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.bubble-reply-btn svg {
  width: 14px;
  height: 14px;
}

.bubble-wrapper:hover .bubble-reply-btn {
  display: flex;
}

/* Outbound bubbles sit against the right edge — the reply icon needs to
   appear on their left (toward the center) instead of off past the edge */
.bubble-wrapper.out .bubble-reply-btn {
  order: -1;
}

/* The "replying to X" bar shown above the compose input once a message's
   reply icon is clicked */
.reply-context-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  background: #f0f2f5;
  border-top: 1px solid var(--border);
  border-left: 3px solid var(--wa-green);
}

.reply-context-bar.open {
  display: flex;
}

.reply-context-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-muted);
}

.reply-context-cancel {
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
}

.empty-chat-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

/* Chat Footer Input */
.chat-footer-input-bar {
  background: #f0f2f5;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
}

.footer-action-btn {
  background: none;
  border: none;
  color: #54656f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.footer-action-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.footer-action-btn svg {
  width: 20px;
  height: 20px;
}

.chat-footer-input-bar input {
  flex: 1;
  border: none;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  background-color: var(--white);
}

.chat-footer-input-bar input:focus {
  outline: none;
}

.chat-footer-input-bar .send-btn {
  background: var(--wa-green);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: background-color 0.15s ease;
}

.chat-footer-input-bar .send-btn:hover {
  background-color: var(--wa-green-dark);
}

.chat-footer-input-bar .send-btn svg {
  width: 16px;
  height: 16px;
  margin-left: 2px;
}

/* Settings Cards */
.settings-card {
  margin-bottom: 20px;
}

.card-footer-note {
  padding: 12px 20px;
  background: #f8fafc;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-footer-note.align-center {
  justify-content: center;
}

.card-footer-note .info-icon {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

/* Connected Numbers List */
.connected-numbers-list {
  padding: 16px;
}

.connection-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  transition: all 0.15s ease;
}

.connection-item:hover {
  box-shadow: var(--shadow);
  border-color: #cbd5e1;
}

.connection-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eef2ff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid #dbeafe;
}

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

.connection-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.connection-name {
  font-weight: 600;
  font-size: 13px;
  color: #0f172a;
}

.connection-phone {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

.connection-sync-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.connection-actions {
  display: flex;
  gap: 4px;
}

/* Toggle Preferences List */
.settings-form {
  display: flex;
  flex-direction: column;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.toggle-row:last-of-type {
  border-bottom: none;
}

.toggle-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 16px;
}

.t-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: #f1f5f9;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.t-icon-box svg {
  width: 15px;
  height: 15px;
}

.t-label {
  font-weight: 600;
  font-size: 13px;
  color: #0f172a;
}

.t-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.settings-form-submit-panel {
  padding: 16px 20px;
  background-color: #f8fafc;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auto-save-hint {
  font-size: 11px;
  color: var(--text-muted);
}

/* Slider Switches */
.switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.switch .slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}

.switch input:checked + .slider {
  background: var(--blue);
}

.switch input:checked + .slider::before {
  transform: translateX(18px);
}

.switch input:disabled + .slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* QR Scanner Section */
.qr-scanner-section {
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

@media (max-width: 500px) {
  .qr-scanner-section {
    flex-direction: column;
  }
}

.qr-steps {
  /* Was flex: 1.2, which stretched this column across half of a very wide
     settings card — leaving a big empty gap before the QR frame, since the
     3 short lines of step text never actually filled that width. Fixed
     width lets the steps box and the QR frame sit close together instead. */
  flex: 0 0 auto;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  background: var(--gray-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.qr-step {
  display: flex;
  gap: 12px;
}

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid #dbeafe;
}

.step-details strong {
  font-size: 12px;
  color: #0f172a;
  display: block;
}

.step-details p {
  font-size: 11px;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}

.qr-code-display-wrapper {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-phone-frame {
  width: 180px;
  height: 180px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.qr-code-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.qr-code-box img {
  width: 140px;
  height: 140px;
  display: block;
}

.qr-caption {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

.qr-success-display {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* One consistent icon treatment for every connection state (WORKING,
   STARTING, STOPPED, FAILED, unreachable) — was a bare emoji character
   floating with no background for every state except WORKING, which alone
   got a proper colored circle badge. Inconsistent and looked unfinished. */
.state-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 14px;
}

.state-icon-circle.tone-green { background: var(--green-bg); color: var(--green); }
.state-icon-circle.tone-amber { background: var(--amber-bg); color: var(--amber); }
.state-icon-circle.tone-gray  { background: var(--gray-bg); color: var(--gray); }
.state-icon-circle.tone-red   { background: #fef2f2; color: #b91c1c; }

/* The connection card is full card-width, but its status content (icon,
   heading, button) is only ever a narrow centered block — leaving a huge
   empty gap on both sides for every state except SCAN_QR_CODE. Splitting
   the space with a security-reassurance aside puts it to use instead of
   just centering a small block inside a lot of dead white space. */
.connection-panel-row {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.connection-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
  flex-shrink: 0;
}

.connection-security-aside {
  /* No max-width — was capping this at 320px while the row had far more
     room to give it, so every line wrapped early and left a big unused
     gap on the right. Let it actually claim the rest of the row's width. */
  flex: 1;
  text-align: left;
}

.connection-security-aside .checkpoint-item p {
  max-width: 480px;
}

/* .security-checkpoints-list's own padding assumes it's the sole content
   of its own bordered .card — here it's reused nested inside
   .qr-scanner-section, which already has its own padding. */
.qr-scanner-section .connection-security-aside.security-checkpoints-list {
  padding: 0;
}

.connection-security-aside h4 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.connection-state-panel {
  text-align: center;
  flex: 1 1 340px;
  max-width: 340px;
}

.connection-state-panel h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #0f172a;
}

.connection-state-panel p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 16px;
}

.qr-success-display h3 {
  font-size: 14px;
  margin: 0 0 4px 0;
  font-weight: 700;
  color: #0f172a;
}

.qr-success-display p {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
}

/* Security Checkpoints */
.security-checkpoints-list {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkpoint-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.checkpoint-icon {
  color: #16a34a;
  font-weight: bold;
  font-size: 12px;
}

.checkpoint-item p {
  font-size: 12px;
  color: #334155;
  margin: 0;
}

.checkpoint-link-row {
  margin-top: 8px;
}

.security-learn-more-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.external-link-icon {
  width: 12px;
  height: 12px;
}

/* Login Split Layout (Image 4 reference) */
.login-split-container {
  display: flex;
  min-height: 100vh;
}

.login-brand-pane {
  flex: 1.1;
  background: radial-gradient(circle at 10% 20%, #075e54 0%, #054c44 100%);
  color: #ffffff;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.login-brand-pane::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.login-brand-pane::after {
  content: "";
  position: absolute;
  bottom: -5%;
  left: -5%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .login-split-container {
    flex-direction: column;
  }
  .login-brand-pane {
    padding: 36px;
    min-height: auto;
  }
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  width: fit-content;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.brand-logo-container {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00a884 0%, #054c44 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.brand-logo-svg {
  width: 24px;
  height: 24px;
}

.brand-title {
  display: block;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.1;
}

.brand-subtitle {
  display: block;
  font-size: 11px;
  color: #a3c9c4;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Floating Chat Container & Bubbles (Reference Image 3 style) */
.floating-chat-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 440px;
  width: 100%;
  margin: auto;
  padding: 24px 0;
}

.floating-bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #ffffff;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.floating-bubble.in {
  background: #00a884;
  align-self: flex-start;
  border-top-left-radius: 2px;
}

.floating-bubble.out {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  align-self: flex-end;
  border-top-right-radius: 2px;
}

.floating-bubble .bubble-time {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  text-align: right;
  margin-top: 5px;
  display: block;
}

.brand-footer-text h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.brand-footer-text p {
  color: #cbd5e1;
  font-size: 13.5px;
  margin: 0;
  line-height: 1.55;
}

/* Right pane form */
.login-form-pane {
  flex: 1.0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.login-form-box {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(15, 27, 61, 0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.login-form-box:hover {
  box-shadow: 0 10px 32px rgba(15, 27, 61, 0.14);
  transform: translateY(-2px);
}

.secure-access-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #00a884;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  display: inline-block;
  text-transform: uppercase;
}

.login-form-box h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 6px 0;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.login-form-box p.sub {
  color: var(--text-muted);
  margin: 0 0 24px 0;
  font-size: 13.5px;
}

/* Password Input Toggles */
.password-input-wrapper {
  position: relative;
  display: flex;
  width: 100%;
}

.password-input-wrapper input {
  padding-right: 44px;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle-btn:hover {
  color: var(--text);
}

.password-toggle-btn svg.eye-icon {
  width: 16px;
  height: 16px;
}

.password-toggle-btn.active svg.eye-icon {
  color: #00a884;
}

.login-form-box label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.login-form-box .field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
  color: #0f172a;
  background-color: #f8fafc;
}

.login-form-box .field input:focus {
  border-color: #00a884;
  background-color: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.15);
}

.btn-login-submit {
  background-color: #00a884;
  border-color: #00a884;
  font-size: 14px;
  padding: 12px;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  border-radius: 8px;
  width: 100%;
  transition: all 0.2s ease;
}

.btn-login-submit:hover {
  background-color: #008069;
  border-color: #008069;
  transform: translateY(-1px);
}

.btn-arrow-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}

.btn-login-submit:hover .btn-arrow-icon {
  transform: translateX(3px);
}

.forgot-credentials {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--wa-green-dark);
  margin-top: 28px;
}

/* Alerts */
.alert {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.alert-icon {
  font-weight: bold;
}

/* Toasts */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  z-index: 60;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideIn 0.2s ease-out;
}

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

.empty-state {
  padding: 64px 24px;
  text-align: center;
}

.empty-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.empty-icon-circle svg {
  width: 28px;
  height: 28px;
}

.empty-icon-circle.tone-blue {
  background: var(--blue-light);
  color: var(--blue);
}

.empty-icon-circle.tone-gray {
  background: var(--gray-bg);
  color: var(--gray);
}

.empty-state h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

.empty-state p {
  margin: 0 auto 20px;
  max-width: 420px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}
