/* ═══════════════════════════════════════════════════════════════════════════
   W-Sender — Premium WhatsApp Marketing Platform
   Dark Green Theme — Built with Love by Vivek, Krishna Infotech
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── CSS Variables ─────────────────────────────────────────────────────────── */
:root {
  --wa-green:       #25D366;
  --wa-dark:        #075E54;
  --wa-teal:        #128C7E;
  --bg-primary:     #0a0f0d;
  --bg-secondary:   #0d1710;
  --bg-card:        rgba(15, 35, 22, 0.85);
  --bg-card-hover:  rgba(20, 45, 28, 0.95);
  --bg-input:       #0d2018;
  --sidebar-bg:     #060e09;
  --sidebar-w:      260px;
  --border:         rgba(37, 211, 102, 0.12);
  --border-strong:  rgba(37, 211, 102, 0.25);
  --text-primary:   #e8f5ea;
  --text-secondary: #6b9f7a;
  --text-muted:     #405a47;
  --accent:         #25D366;
  --accent-glow:    0 0 20px rgba(37, 211, 102, 0.3);
  --radius:         12px;
  --radius-lg:      18px;
  --shadow:         0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:      0 8px 48px rgba(0,0,0,0.6);
  --transition:     all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font:           'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { opacity: 0.85; }
img { max-width: 100%; height: auto; }
input, textarea, select, button { font-family: var(--font); }

/* ─── Scrollbar ──────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--wa-dark); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--wa-teal); }

/* ─── Page Layout ────────────────────────────────────────────────────────────── */
.app-wrapper { display: flex; min-height: 100vh; }

/* ─── Sidebar ────────────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.sidebar-brand {
  padding: 1.5rem 1.2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--wa-dark), var(--wa-green));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: var(--accent-glow);
  flex-shrink: 0;
}
.brand-text h2 { font-size: 1.1rem; font-weight: 800; color: var(--wa-green); line-height: 1.1; }
.brand-text span { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.5px; }

.sidebar-menu {
  padding: 1rem 0;
  flex: 1;
  overflow-y: auto;
}
.menu-section {
  padding: 0.4rem 1.2rem 0.2rem;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 1.4rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  border-radius: 0;
}
.nav-item:hover, .nav-item.active {
  color: var(--wa-green);
  background: rgba(37, 211, 102, 0.07);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 60%;
  background: var(--wa-green);
  border-radius: 0 3px 3px 0;
  box-shadow: var(--accent-glow);
}
.nav-item i { width: 20px; text-align: center; font-size: 0.95rem; }
.nav-badge {
  margin-left: auto;
  background: var(--wa-green);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  min-width: 20px;
  text-align: center;
}

.sidebar-footer {
  padding: 1rem 1.2rem;
  border-top: 1px solid var(--border);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(37,211,102,0.06);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wa-dark), var(--wa-teal));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-plan { font-size: 0.68rem; color: var(--wa-green); font-weight: 500; }
.logout-btn {
  color: var(--text-muted) !important;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}
.logout-btn:hover { color: #ff5050 !important; }

.sidebar-made-by {
  text-align: center;
  padding: 0.8rem 1.2rem;
  font-size: 0.68rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.sidebar-made-by span { color: var(--wa-green); }

/* ─── Main Content ───────────────────────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Topbar ─────────────────────────────────────────────────────────────────── */
.topbar {
  height: 64px;
  background: rgba(10, 15, 13, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-title { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 0.8rem; }
.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--text-secondary); font-size: 1.3rem;
  padding: 6px;
}

/* Auto-logout timer */
.logout-timer {
  background: rgba(37,211,102,0.1);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.75rem;
  color: var(--wa-green);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ─── Page Content ───────────────────────────────────────────────────────────── */
.page-content { padding: 1.5rem; flex: 1; }
.section-header { margin-bottom: 1.5rem; }
.section-header h1 { font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.section-header p { color: var(--text-secondary); font-size: 0.9rem; margin-top: 4px; }

/* ─── Cards ──────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: var(--transition);
}
.card:hover { border-color: var(--border-strong); }
.card-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h3 { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-body { padding: 1.5rem; }

/* ─── Stat Cards ─────────────────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(37,211,102,0.08) 0%, transparent 70%);
}
.stat-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-icon.green { background: rgba(37,211,102,0.12); }
.stat-icon.blue  { background: rgba(74,144,217,0.12); }
.stat-icon.purple{ background: rgba(147,51,234,0.12); }
.stat-icon.orange{ background: rgba(249,132,74,0.12); }
.stat-icon.red   { background: rgba(255,80,80,0.12); }
.stat-info h3 { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat-info p { font-size: 0.8rem; color: var(--text-secondary); margin-top: 4px; }
.stat-info .stat-delta { font-size: 0.75rem; color: var(--wa-green); font-weight: 600; margin-top: 2px; }

/* ─── Table ──────────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
thead th {
  padding: 12px 16px;
  background: rgba(37,211,102,0.05);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tbody tr:hover td { background: rgba(37,211,102,0.03); }
tbody tr:last-child td { border-bottom: none; }

/* ─── Forms ──────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; letter-spacing: 0.3px; }
.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--wa-green);
  box-shadow: 0 0 0 3px rgba(37,211,102,0.1);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }

.input-group { display: flex; gap: 0; }
.input-group .form-control { border-radius: var(--radius) 0 0 var(--radius); }
.input-group .btn { border-radius: 0 var(--radius) var(--radius) 0; }

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}
.btn:hover::after { background: rgba(255,255,255,0.05); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--wa-dark), var(--wa-green));
  color: white;
  box-shadow: 0 4px 15px rgba(37,211,102,0.25);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(37,211,102,0.4); color: white; }

.btn-secondary {
  background: rgba(37,211,102,0.08);
  color: var(--wa-green);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: rgba(37,211,102,0.14); color: var(--wa-green); }

.btn-danger {
  background: rgba(255,80,80,0.12);
  color: #ff6b6b;
  border: 1px solid rgba(255,80,80,0.2);
}
.btn-danger:hover { background: rgba(255,80,80,0.2); color: #ff6b6b; }

.btn-warning {
  background: rgba(240,180,41,0.12);
  color: #f0b429;
  border: 1px solid rgba(240,180,41,0.2);
}

.btn-sm { padding: 5px 12px; font-size: 0.78rem; }
.btn-lg { padding: 12px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-icon { width: 34px; height: 34px; padding: 0; border-radius: 8px; }

/* ─── Grid ───────────────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }

/* ─── Badges ─────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.badge-green  { background: rgba(37,211,102,0.12); color: var(--wa-green); border: 1px solid rgba(37,211,102,0.2); }
.badge-red    { background: rgba(255,80,80,0.12);  color: #ff6b6b;         border: 1px solid rgba(255,80,80,0.2); }
.badge-yellow { background: rgba(240,180,41,0.12); color: #f0b429;         border: 1px solid rgba(240,180,41,0.2); }
.badge-blue   { background: rgba(74,144,217,0.12); color: #4a90d9;         border: 1px solid rgba(74,144,217,0.2); }
.badge-gray   { background: rgba(255,255,255,0.05); color: #888;           border: 1px solid rgba(255,255,255,0.08); }

/* ─── Alerts ─────────────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1rem;
}
.alert-success { background: rgba(37,211,102,0.1); border: 1px solid rgba(37,211,102,0.2); color: #b7f5c9; }
.alert-error   { background: rgba(255,80,80,0.1); border: 1px solid rgba(255,80,80,0.2); color: #ffb3b3; }
.alert-warning { background: rgba(240,180,41,0.1); border: 1px solid rgba(240,180,41,0.2); color: #fce38a; }
.alert-info    { background: rgba(74,144,217,0.1); border: 1px solid rgba(74,144,217,0.2); color: #b3d4ff; }

/* ─── Progress bars ──────────────────────────────────────────────────────────── */
.progress-bar-wrap {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--wa-dark), var(--wa-green));
  border-radius: 100px;
  transition: width 0.4s ease;
}

/* ─── Chart Container ────────────────────────────────────────────────────────── */
.chart-container { position: relative; }

/* ─── Login Page ─────────────────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 20% 50%, rgba(7,94,84,0.2) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(37,211,102,0.08) 0%, transparent 40%),
              var(--bg-primary);
  padding: 2rem;
}
.login-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}
.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}
.login-logo-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--wa-dark), var(--wa-green));
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 30px rgba(37,211,102,0.3);
  animation: pulse-green 3s ease-in-out infinite;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 8px 30px rgba(37,211,102,0.3); }
  50% { box-shadow: 0 8px 40px rgba(37,211,102,0.6); }
}
.login-logo h1 { font-size: 1.8rem; font-weight: 800; color: var(--wa-green); }
.login-logo p { color: var(--text-secondary); font-size: 0.85rem; }

/* ─── Quick Action Buttons ───────────────────────────────────────────────────── */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.quick-action-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.quick-action-btn:hover {
  border-color: var(--wa-green);
  background: rgba(37,211,102,0.06);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--text-primary);
}
.quick-action-btn i { font-size: 1.6rem; color: var(--wa-green); }
.quick-action-btn span { font-size: 0.8rem; font-weight: 600; }

/* ─── Queue Control Bar ───────────────────────────────────────────────────────── */
.queue-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(37,211,102,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}
.speed-display {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--wa-green);
  min-width: 60px;
  text-align: center;
}
input[type="range"] {
  -webkit-appearance: none;
  width: 180px;
  height: 4px;
  background: var(--border);
  border-radius: 100px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--wa-green);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(37,211,102,0.5);
}

/* ─── Subscription Banner ─────────────────────────────────────────────────────── */
.sub-banner {
  background: linear-gradient(135deg, rgba(7,94,84,0.4), rgba(37,211,102,0.1));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.sub-banner.expired {
  background: linear-gradient(135deg, rgba(255,80,80,0.15), rgba(255,80,80,0.05));
  border-color: rgba(255,80,80,0.3);
}
.sub-banner-icon { font-size: 2rem; }
.sub-banner-info h3 { font-size: 0.95rem; font-weight: 700; }
.sub-banner-info p { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }
.sub-banner-action { margin-left: auto; }

/* ─── Empty State ─────────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
}
.empty-state-icon { font-size: 3.5rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-state h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-secondary); }
.empty-state p { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }
.empty-state .btn { margin-top: 1.2rem; }

/* ─── Pagination ─────────────────────────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin-top: 1rem; }
.page-btn {
  min-width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  padding: 0 8px;
}
.page-btn:hover, .page-btn.active {
  border-color: var(--wa-green);
  color: var(--wa-green);
  background: rgba(37,211,102,0.06);
}

/* ─── Modal ──────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-header {
  padding: 1.3rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: 1rem; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.2rem; transition: var(--transition); }
.modal-close:hover { color: #ff5050; }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; gap: 0.8rem; justify-content: flex-end; }

/* ─── Toast notifications ────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 12px 18px;
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease;
}
.toast.success { border-color: rgba(37,211,102,0.4); }
.toast.error   { border-color: rgba(255,80,80,0.4); }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ─── Skeleton loader ────────────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ─── Utilities ──────────────────────────────────────────────────────────────── */
.text-green  { color: var(--wa-green) !important; }
.text-muted  { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-danger { color: #ff6b6b !important; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-sm { font-size: 0.82rem; }
.text-xs { font-size: 0.72rem; }
.fw-bold { font-weight: 700; }
.fw-600  { font-weight: 600; }
.d-flex  { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.p-0 { padding: 0 !important; }
.flex-1 { flex: 1; }
.w-100 { width: 100%; }

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 200;
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .menu-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page-content { padding: 1rem; }
  .topbar { padding: 0 1rem; }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 150;
  }
  .sidebar-overlay.open { display: block; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Dark green glow animations ─────────────────────────────────────────────── */
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.float-animate { animation: float-card 4s ease-in-out infinite; }

/* ─── WhatsApp message preview ───────────────────────────────────────────────── */
.wa-preview {
  background: #0b1f16;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem;
}
.wa-bubble {
  background: #1a3a25;
  border-radius: 0 12px 12px 12px;
  padding: 10px 14px;
  max-width: 85%;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #d4edd9;
  position: relative;
}
.wa-bubble-time {
  text-align: right;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.wa-bubble-ticks { color: var(--wa-green); font-size: 0.75rem; }
