/* WA Command Center — Main Stylesheet */
/* Font: Syne (headings) + DM Sans (body) */

:root {
  --bg-base:       #0a0e1a;
  --bg-surface:    #111827;
  --bg-elevated:   #1a2235;
  --bg-card:       #152030;
  --border:        rgba(255,255,255,0.08);
  --border-accent: rgba(37,211,102,0.3);

  --green:         #25d366;
  --green-light:   #34eb7a;
  --green-glow:    rgba(37,211,102,0.15);
  --green-dark:    #1aa34a;

  --blue:          #4f8ef7;
  --orange:        #ff8c42;
  --red:           #ff4d6d;
  --yellow:        #ffd60a;
  --purple:        #9b5de5;

  --text-primary:  #f0f6fc;
  --text-secondary:#94a3b8;
  --text-muted:    #4a5568;

  --sidebar-w:     260px;
  --topbar-h:      64px;
  --radius:        12px;
  --radius-lg:     16px;
  --radius-sm:     8px;

  --shadow:        0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:     0 8px 48px rgba(0,0,0,0.6);
  --transition:    all 0.2s cubic-bezier(0.4,0,0.2,1);
}

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

html { font-size: 14px; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Scrollbar ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* ── Sidebar ───────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: var(--transition);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar.collapsed { width: 68px; }
.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-section-label,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .user-info { display: none; }
.sidebar.collapsed .nav-item { justify-content: center; }
.sidebar.collapsed .badge { display: none; }

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px;
  border-bottom: 1px solid var(--border);
  min-height: var(--topbar-h);
}

.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 0 20px var(--green-glow);
}

.logo-name {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1;
}
.logo-tag {
  display: block;
  font-size: 10px;
  color: var(--green);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-section-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 12px 10px 6px;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 450;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}
.nav-item i { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }
.nav-item:hover { background: var(--bg-elevated); color: var(--text-primary); }
.nav-item.active {
  background: var(--green-glow);
  color: var(--green);
  border: 1px solid var(--border-accent);
}
.nav-item.active i { color: var(--green); }

.badge {
  margin-left: auto;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  min-width: 18px;
  text-align: center;
}

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 12px 10px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}
.user-avatar {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: white;
  flex-shrink: 0;
}
.user-name { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-primary); }
.user-role { display: block; font-size: 10px; color: var(--green); }
.logout-btn { margin-left: auto; color: var(--text-muted); transition: var(--transition); }
.logout-btn:hover { color: var(--red); }

/* ── Main Wrapper ──────────────────────────────────────────────────────── */
.main-wrapper {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: var(--transition);
}
.main-wrapper.expanded { margin-left: 68px; }

/* ── Topbar ────────────────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.sidebar-toggle {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.sidebar-toggle:hover { color: var(--text-primary); border-color: var(--green); }

.topbar-title { flex: 1; }
.topbar-title h1 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.breadcrumb {
  display: flex;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }

.wa-status {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12px;
  color: var(--text-secondary);
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.status-dot.connected { background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s infinite; }
.status-dot.disconnected { background: var(--red); }

@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ── Flash ─────────────────────────────────────────────────────────────── */
.flash-message {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  margin: 20px 24px -8px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 450;
  animation: slideDown 0.4s ease;
}
.flash-success { background: rgba(37,211,102,0.12); border: 1px solid rgba(37,211,102,0.3); color: var(--green-light); }
.flash-error   { background: rgba(255,77,109,0.12); border: 1px solid rgba(255,77,109,0.3); color: #ff8fa3; }
.flash-info    { background: rgba(79,142,247,0.12); border: 1px solid rgba(79,142,247,0.3); color: #93b4fb; }
.flash-message button { margin-left: auto; background: none; border: none; color: inherit; cursor: pointer; opacity: 0.6; }
.flash-message button:hover { opacity: 1; }

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

/* ── Page Content ──────────────────────────────────────────────────────── */
.page-content { padding: 24px; flex: 1; }

/* ── Stat Cards ────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--card-color, var(--green-glow));
  opacity: 0.3;
  transform: translate(30px, -30px);
}
.stat-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card-color, var(--green-glow));
  font-size: 18px;
  color: var(--card-icon-color, var(--green));
  margin-bottom: 14px;
}
.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-change { font-size: 11px; margin-top: 8px; color: var(--green); }
.stat-change.down { color: var(--red); }

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-title {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title i { color: var(--green); }
.card-body { padding: 20px; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
  box-shadow: 0 2px 12px var(--green-glow);
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-elevated); color: var(--text-primary); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--green); color: var(--green); }
.btn-danger { background: rgba(255,77,109,0.1); color: #ff4d6d; border-color: rgba(255,77,109,0.3); }
.btn-danger:hover { background: rgba(255,77,109,0.2); }
.btn-warning { background: rgba(255,140,66,0.1); color: var(--orange); border-color: rgba(255,140,66,0.3); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-icon { padding: 8px; width: 34px; height: 34px; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Tables ────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead tr { border-bottom: 1px solid var(--border); }
thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  white-space: nowrap;
}
tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: var(--transition);
}
tbody tr:hover { background: var(--bg-elevated); }
tbody td { padding: 13px 16px; color: var(--text-secondary); vertical-align: middle; }
tbody td strong { color: var(--text-primary); }

/* ── Status Badges ─────────────────────────────────────────────────────── */
.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status-badge.success, .status-badge.delivered, .status-badge.completed { background: rgba(37,211,102,0.12); color: var(--green); border: 1px solid rgba(37,211,102,0.2); }
.status-badge.sent { background: rgba(79,142,247,0.12); color: var(--blue); border: 1px solid rgba(79,142,247,0.2); }
.status-badge.read  { background: rgba(155,93,229,0.12); color: var(--purple); border: 1px solid rgba(155,93,229,0.2); }
.status-badge.failed { background: rgba(255,77,109,0.12); color: var(--red); border: 1px solid rgba(255,77,109,0.2); }
.status-badge.pending { background: rgba(255,214,10,0.12); color: var(--yellow); border: 1px solid rgba(255,214,10,0.2); }
.status-badge.running { background: rgba(255,140,66,0.12); color: var(--orange); border: 1px solid rgba(255,140,66,0.2); }
.status-badge.draft  { background: rgba(148,163,184,0.1); color: var(--text-muted); border: 1px solid var(--border); }
.status-badge.scheduled { background: rgba(79,142,247,0.12); color: var(--blue); border: 1px solid rgba(79,142,247,0.2); }
.status-badge.paused { background: rgba(255,140,66,0.12); color: var(--orange); border: 1px solid rgba(255,140,66,0.2); }

/* ── Progress Bar ──────────────────────────────────────────────────────── */
.progress-bar {
  background: var(--bg-elevated);
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  transition: width 0.6s ease;
}
.progress-fill.blue { background: linear-gradient(90deg, var(--blue), #93b4fb); }
.progress-fill.red  { background: linear-gradient(90deg, var(--red), #ff8fa3); }
.progress-fill.orange { background: linear-gradient(90deg, var(--orange), #ffa970); }

/* ── Forms ─────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-control, .form-select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}
.form-control:focus, .form-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-select option { background: var(--bg-surface); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }

.form-hint { font-size: 11.5px; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: 11.5px; color: var(--red); margin-top: 5px; }

/* File Upload Zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--green);
  background: var(--green-glow);
}
.upload-zone i { font-size: 32px; color: var(--text-muted); margin-bottom: 12px; }
.upload-zone p { color: var(--text-secondary); font-size: 13.5px; }
.upload-zone small { color: var(--text-muted); }

/* ── Modal ─────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.96);
  transition: var(--transition);
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 18px; }
.modal-close:hover { color: var(--red); }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex; gap: 10px; justify-content: flex-end;
}

/* ── Tabs ──────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab-btn {
  padding: 10px 18px;
  background: none; border: none;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px; font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  position: relative; top: 1px;
}
.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active { color: var(--green); border-bottom-color: var(--green); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── Inbox / Chat ──────────────────────────────────────────────────────── */
.inbox-layout { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 64px - 48px); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.conversation-list { border-right: 1px solid var(--border); overflow-y: auto; }
.conversation-search { padding: 14px; border-bottom: 1px solid var(--border); }
.conversation-item {
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: var(--transition);
  display: flex; gap: 12px; align-items: flex-start;
}
.conversation-item:hover, .conversation-item.active { background: var(--bg-elevated); }
.conversation-item.active { border-left: 3px solid var(--green); }
.conv-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-dark), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: white;
  flex-shrink: 0;
}
.conv-name { font-weight: 600; font-size: 13.5px; color: var(--text-primary); }
.conv-preview { font-size: 12px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.conv-time { font-size: 10px; color: var(--text-muted); margin-left: auto; white-space: nowrap; }
.unread-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; margin-top: 4px; }

.chat-panel { display: flex; flex-direction: column; }
.chat-header { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.message-bubble { max-width: 70%; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; }
.message-bubble.inbound { background: var(--bg-elevated); align-self: flex-start; border-bottom-left-radius: 4px; }
.message-bubble.outbound { background: linear-gradient(135deg, var(--green-dark), var(--green)); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.message-time { font-size: 10px; color: var(--text-muted); margin-top: 4px; }
.message-bubble.outbound .message-time { color: rgba(255,255,255,0.6); }

.chat-input-area { border-top: 1px solid var(--border); padding: 14px 20px; display: flex; gap: 10px; align-items: flex-end; }
.chat-input { flex: 1; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; color: var(--text-primary); font-family: 'DM Sans', sans-serif; font-size: 14px; outline: none; resize: none; max-height: 120px; }
.chat-input:focus { border-color: var(--green); }

/* ── Stage Builder ─────────────────────────────────────────────────────── */
.stage-list { display: flex; flex-direction: column; gap: 12px; }
.stage-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  position: relative;
}
.stage-card::before {
  content: '';
  position: absolute;
  left: -1px; top: 0; bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
  background: var(--stage-color, var(--green));
}
.stage-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.stage-number {
  width: 28px; height: 28px;
  background: var(--stage-color, var(--green));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: white;
}
.stage-connector {
  width: 2px;
  height: 20px;
  background: linear-gradient(to bottom, var(--border), transparent);
  margin: -4px auto;
  display: block;
}

/* ── Campaign Detail ───────────────────────────────────────────────────── */
.delivery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.delivery-stat { background: var(--bg-elevated); border-radius: var(--radius); padding: 16px; text-align: center; }
.delivery-num { font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 800; }
.delivery-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }

/* ── Misc ──────────────────────────────────────────────────────────────── */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; gap: 16px;
}
.page-header-left h2 { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; }
.page-header-left p { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

.search-bar {
  display: flex; gap: 8px;
}
.search-input {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  outline: none; width: 220px;
}
.search-input:focus { border-color: var(--green); }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state i { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }
.empty-state p { font-size: 14px; }

.tooltip { position: relative; }
.tooltip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: var(--transition);
}
.tooltip:hover::after { opacity: 1; }

/* Login page */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-base); padding: 20px; }
.login-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 400px; }
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo .logo-mark { width: 60px; height: 60px; font-size: 28px; margin: 0 auto 16px; border-radius: 16px; }
.login-logo h1 { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; }
.login-logo p { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

/* Checkbox */
.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; }
.form-check input[type=checkbox] { accent-color: var(--green); width: 15px; height: 15px; cursor: pointer; }

/* Select Filter */
.filters-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 768px) {
  :root { --sidebar-w: 68px; }
  .sidebar .logo-text, .sidebar .nav-section-label, .sidebar .nav-item span, .sidebar .user-info { display: none; }
  .sidebar .nav-item { justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row, .form-row.three { grid-template-columns: 1fr; }
  .delivery-grid { grid-template-columns: 1fr 1fr; }
  .inbox-layout { grid-template-columns: 1fr; }
  .conversation-list { display: none; }
}
