/* MsgBurst Master Design System */
/* Version 1.0 - Light Theme */

/* CSS VARIABLES - Light Theme */
:root {
  /* Backgrounds */
  --bg-base: #f5f7f5;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fdf9;
  --bg-input: #ffffff;
  --bg-overlay: #f0f7f2;

  /* Borders */
  --border-subtle: #e2ede5;
  --border-default: #c8dece;
  --border-strong: #25D366;

  /* Brand */
  --green-primary: #25D366;
  --green-dark: #075E54;
  --green-darker: #054d44;
  --green-light: #e8f8ef;
  --green-glow: rgba(37,211,102,0.12);

  /* Gold */
  --gold: #d4920a;
  --gold-bg: #fef9ec;
  --gold-border: #f0d070;

  /* Text */
  --text-primary: #1a2e22;
  --text-secondary: #4a7358;
  --text-muted: #7a9e88;
  --text-disabled: #b0c8b8;
  --text-inverse: #ffffff;

  /* Status */
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  --error: #dc2626;
  --error-bg: #fef2f2;
  --error-border: #fecaca;
  --info: #2563eb;
  --info-bg: #eff6ff;
  --info-border: #bfdbfe;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-green: 0 4px 14px rgba(37,211,102,0.20);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;

  /* Shared page layout */
  --page-max-width: 1760px;
  --page-gutter: clamp(18px, 3vw, 72px);
  --page-gutter-mobile: 14px;
  --page-section-y: 28px;

  /* Transition */
  --transition: all 0.2s ease;
}

/* TYPOGRAPHY SYSTEM */
* {
  box-sizing: border-box;
}

body {
  background: #f5f7f5;
  color: #1a2e22;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

/* Global icon/toolbar consistency */
button,
.btn,
.compose-tool,
.et-btn,
.topnav .dropdown-trigger > button,
.topnav .nav-links > a {
  font-family: 'Segoe UI', 'Segoe UI Symbol', 'Segoe UI Emoji', Roboto, Arial, sans-serif;
}

.tool-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-icon .tool-icon {
  width: 15px;
  height: 15px;
}

.compose-shell {
  border: 1px solid #d7dee7;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.compose-shell textarea,
.compose-shell [contenteditable='true'] {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.compose-bottom {
  border-top: 1px solid #e6ebf1;
  background: #f7f9fc;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.compose-tools {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  border: 1px solid #d9e1ea;
  border-radius: 18px;
  background: #fff;
  padding: 6px;
}

.compose-tool {
  min-width: 30px;
  height: 30px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.compose-tool:hover {
  background: #e8f0fe;
  color: #1a73e8;
}

/* Global direction + reading flow controls */
html[dir='rtl'] body {
  direction: rtl;
}

html[dir='rtl'] .topnav .brand {
  margin-left: auto;
  margin-right: 0;
}

html[dir='rtl'] .topnav .nav-links {
  direction: rtl;
}

html[dir='rtl'] .topnav .dropdown-menu {
  left: auto;
  right: 0;
}

html[dir='rtl'] th,
html[dir='rtl'] td,
html[dir='rtl'] .section-title,
html[dir='rtl'] .page-title,
html[dir='rtl'] .page-subtitle,
html[dir='rtl'] label {
  text-align: right;
}

html[data-flow='bottom-up'] .container {
  display: flex;
  flex-direction: column-reverse;
  gap: 16px;
}

html[data-flow='bottom-up'] main.container {
  display: flex;
  flex-direction: column-reverse;
  gap: 16px;
}

/* Headings */
.page-title {
  font-size: 26px;
  font-weight: 700;
  color: #1a2e22;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin: 0 0 8px 0;
}

.page-subtitle {
  font-size: 14px;
  color: #7a9e88;
  margin-top: 4px;
  margin-bottom: 24px;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a2e22;
  margin: 0 0 16px 0;
}

.label {
  font-size: 12px;
  font-weight: 500;
  color: #4a7358;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  display: block;
}

.hint-text {
  font-size: 12px;
  color: #7a9e88;
  margin-top: 4px;
}

/* NAVBAR */
.topnav {
  height: 60px;
  background: #0d6e5e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-gutter);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Logo Area - Single Line */
.topnav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.topnav .brand-logo {
  width: 36px;
  height: 36px;
  background: #25D366;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d6e5e;
  font-weight: 800;
  font-size: 17px;
  flex-shrink: 0;
}

.topnav .brand-text {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.topnav .brand-name {
  color: white;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* Nav Links */
.topnav .nav-links {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 28px;
}

.topnav .dropdown-trigger {
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
}

.topnav .nav-links > a,
.topnav .dropdown-trigger > button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  color: white;
  font-size: 14px;
  font-weight: 500;
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.18s;
  font-family: inherit;
  position: relative;
}

.topnav .nav-links > a:hover,
.topnav .dropdown-trigger > button:hover {
  opacity: 0.85;
}

.topnav .nav-links > a.active,
.topnav .dropdown-trigger > button.active {
  color: white;
  font-weight: 700;
}

.topnav .nav-links > a.active::after,
.topnav .dropdown-trigger > button.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: white;
  border-radius: 2px;
}

.topnav .dropdown-trigger .arrow {
  font-size: 10px;
  margin-left: 2px;
}

.topnav .dropdown-trigger.open .arrow {
  transform: rotate(180deg);
}

.topnav .dropdown-menu {
  display: none;
  position: absolute;
  top: 52px;
  left: 0;
  min-width: 200px;
  background: white;
  border: 1px solid #e2ede5;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 6px;
  z-index: 9999;
}

.topnav .dropdown-trigger.open .dropdown-menu {
  display: block;
}

.topnav .dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: #1a2e22;
  font-size: 13px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s;
}

.topnav .dropdown-menu a:hover {
  background: #f0f7f2;
  color: #075E54;
  font-weight: 500;
}

.topnav .dropdown-menu .divider {
  height: 1px;
  background: #e2ede5;
  margin: 4px 8px;
}

/* Right Side */
.topnav .nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Balance Badge - White pill */
.topnav .balance-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: white;
  color: #0d6e5e;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}

.topnav .balance-badge:hover {
  background: rgba(255,255,255,0.9);
}

/* Notification Bell */
.topnav .notification-bell {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.18s;
  position: relative;
}

.topnav .notification-bell:hover {
  opacity: 0.8;
}

.topnav .notification-bell .notification-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
}

.topnav .alerts-wrap {
  position: relative;
}

.topnav .alerts-dropdown {
  display: none;
  position: absolute;
  top: 34px;
  right: -8px;
  width: min(360px, 92vw);
  max-height: 360px;
  overflow: auto;
  background: #fff;
  border: 1px solid #e2ede5;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  z-index: 2000;
}

.topnav .alerts-wrap.open .alerts-dropdown {
  display: block;
}

.topnav .alerts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #e8f0e8;
}

.topnav .alerts-refresh {
  border: 1px solid #cde3d3;
  border-radius: 8px;
  background: #fff;
  color: #1f4a34;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  cursor: pointer;
}

.topnav .alerts-refresh:hover {
  background: #f4faf4;
}

.topnav .alerts-list {
  padding: 8px;
}

.topnav .alerts-empty {
  color: #5b7d68;
  font-size: 13px;
  padding: 8px 6px;
}

.topnav .alerts-item {
  font-size: 13px;
  line-height: 1.45;
  border-radius: 8px;
  border: 1px solid #e3ece6;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.topnav .alerts-item.level-critical {
  border-color: #fecaca;
  background: #fff1f1;
  color: #9f1239;
}

.topnav .alerts-item.level-warning {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

/* Logout Button */
.topnav .btn-logout {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: transparent;
  color: white;
  border: 1px solid white;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
  white-space: nowrap;
}

.topnav .btn-logout:hover {
  background: white;
  color: #0d6e5e;
}

/* Avatar */
.topnav .avatar-wrap {
  position: relative;
}

.topnav .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s;
  user-select: none;
}

.topnav .user-avatar:hover {
  transform: scale(1.05);
}

/* Avatar Dropdown */
.topnav .avatar-dropdown {
  display: none;
  position: absolute;
  top: 46px;
  right: 0;
  background: white;
  border: 1px solid #e2ede5;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.13);
  padding: 6px;
  min-width: 200px;
  z-index: 9999;
}

.topnav .avatar-wrap.open .avatar-dropdown {
  display: block;
}

.topnav .avatar-user-info {
  padding: 10px 12px 12px;
  border-bottom: 1px solid #e2ede5;
  margin-bottom: 4px;
}

.topnav .avatar-user-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a2e22;
}

.topnav .avatar-user-role {
  font-size: 12px;
  color: #7a9e88;
  margin-top: 2px;
}

.topnav .avatar-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: #1a2e22;
  font-size: 13px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  font-family: inherit;
}

.topnav .avatar-menu-item:hover {
  background: #f0f7f2;
  color: #075E54;
}

.topnav .avatar-menu-item.logout {
  color: #dc2626;
}

.topnav .avatar-menu-item.logout:hover {
  background: #fef2f2;
}

/* ============================================
   PAGE-BY-PAGE QA LOCK (UNIFIED SPACING/UI)
   ============================================ */
.container {
  width: min(var(--page-max-width), calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
  padding: var(--page-section-y) 0 40px;
}

.card,
.panel,
.bw-card,
.sms-phone,
.tg-preview-shell {
  border-radius: 16px !important;
}

input,
select {
  min-height: 42px;
}

textarea {
  min-height: 42px;
}

.btn,
button.btn,
.source-tab,
.tg-switch,
.sms-subnav a {
  min-height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.topnav .btn-logout {
  min-height: 38px;
}

.compose-shell {
  border-radius: 14px;
}

.compose-bottom {
  min-height: 52px;
}

.compose-tools {
  min-height: 40px;
}

.compose-tool,
.et-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
}

.compose-tool svg,
.et-btn svg,
.tool-icon {
  width: 16px;
  height: 16px;
}

.table-wrap,
.sms-table-wrap,
.tg-log-table-wrap {
  overflow-x: auto;
}

.topnav .dropdown-menu a {
  min-height: 36px;
}

@media (max-width: 768px) {
  .container {
    width: calc(100% - (var(--page-gutter-mobile) * 2));
    padding: 16px 0 24px;
  }

  .btn,
  button.btn,
  .source-tab,
  .tg-switch,
  .sms-subnav a {
    width: 100%;
  }

  .compose-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .compose-tools {
    width: 100%;
    justify-content: space-between;
  }
}

/* Mobile Toggle */
.topnav .nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
  .topnav .btn-logout {
    padding: 7px 12px;
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .topnav .brand-name {
    max-width: 100px;
  }
}

@media (max-width: 768px) {
  .topnav {
    padding: 0 16px;
    min-height: 60px;
  }
  
  .topnav .nav-toggle {
    display: block;
    color: white;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    margin-right: 16px;
  }
  
  .topnav .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #0d6e5e;
    flex-direction: column;
    padding: 16px;
    height: auto;
    gap: 16px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    z-index: 1200;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  
  .topnav .nav-links.active {
    display: flex;
  }
  
  .topnav .nav-links > a,
  .topnav .dropdown-trigger {
    width: 100%;
    height: auto;
  }
  
  .topnav .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: rgba(0,0,0,0.1);
    padding-left: 16px;
    margin-top: 8px;
  }
  
  .topnav .dropdown-trigger.open .dropdown-menu {
    display: block;
  }
  
  .topnav .btn-logout {
    display: none;
  }

  .topnav .nav-right {
    gap: 8px;
  }

  .topnav .balance-badge,
  .topnav .notification-bell {
    display: none;
  }
}

/* ============================================
   FINISHING PACK (GLOBAL PAGE POLISH)
   ============================================ */
body {
  background:
    radial-gradient(1100px 420px at -8% -14%, rgba(37, 211, 102, 0.08), transparent 60%),
    radial-gradient(1000px 380px at 108% -8%, rgba(7, 94, 84, 0.08), transparent 62%),
    linear-gradient(180deg, #f5f8f6 0%, #eff4f1 100%);
}

.container {
  padding: 28px 24px 40px;
}

.container > .card {
  margin-bottom: 16px;
}

.page-title {
  font-size: 28px;
  color: #1a2e22;
  letter-spacing: -0.4px;
}

.page-desc {
  color: #3f6751;
  max-width: 88ch;
}

.card {
  border: 1px solid #dbe8df;
  border-top: 3px solid #cde3d3;
  box-shadow: 0 10px 22px rgba(18, 44, 30, 0.08);
}

.card:hover {
  border-top-color: #8fcca1;
  box-shadow: 0 14px 26px rgba(18, 44, 30, 0.12);
}

.section-title {
  color: #173626;
  letter-spacing: 0.01em;
}

.section-title--gold {
  color: #8b5b05;
}

.field .hint,
.hint,
.sub-label {
  color: #5b7d68;
}

.alert {
  border-width: 1px;
  border-left-width: 4px;
  font-weight: 600;
}

.alert-success {
  border-left-color: #16a34a;
}

.alert-error {
  border-left-color: #dc2626;
}

.alert-warning {
  border-left-color: #d97706;
}

/* ============================================
   ENTERPRISE PREMIUM PACK (GLOBAL)
   ============================================ */
:root {
  --premium-ring: 0 0 0 3px rgba(37, 211, 102, 0.14);
  --premium-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
  --premium-shadow-soft: 0 6px 18px rgba(15, 23, 42, 0.07);
  --premium-border: #d6e6dd;
  --premium-border-strong: #bad8c5;
}

html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main.container > * + * {
  margin-top: 14px;
}

.card,
.panel,
.table-wrap,
.sms-table-wrap,
.tg-log-table-wrap,
.bw-card {
  border-color: var(--premium-border) !important;
  box-shadow: var(--premium-shadow-soft) !important;
  backdrop-filter: blur(4px);
}

.card:hover,
.panel:hover,
.bw-card:hover {
  box-shadow: var(--premium-shadow) !important;
  border-color: var(--premium-border-strong) !important;
}

input,
select,
textarea,
[contenteditable='true'] {
  border-radius: 10px !important;
  border-color: #cfe1d6 !important;
  background: #fff !important;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input:hover,
select:hover,
textarea:hover,
[contenteditable='true']:hover {
  border-color: #bdd4c6 !important;
}

input:focus,
select:focus,
textarea:focus,
[contenteditable='true']:focus {
  border-color: #25d366 !important;
  box-shadow: var(--premium-ring) !important;
}

.btn,
button.btn,
.topnav .btn-logout,
.topnav .dropdown-trigger > button,
.topnav .nav-links > a,
.source-tab,
.tg-switch,
.sms-subnav a {
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.btn:not(:disabled):active,
button.btn:not(:disabled):active,
.source-tab:active,
.tg-switch:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, #0b7d69 0%, #13a57f 55%, #25d366 100%) !important;
  border: 0 !important;
  box-shadow: 0 8px 20px rgba(18, 140, 126, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 12px 26px rgba(18, 140, 126, 0.34);
}

.btn-secondary,
.btn-outline {
  border-color: #c7dccc !important;
  background: linear-gradient(180deg, #ffffff, #f8fbf9) !important;
}

.btn-secondary:hover,
.btn-outline:hover {
  border-color: #a8cab3 !important;
  background: linear-gradient(180deg, #ffffff, #f2f8f4) !important;
}

.badge,
.balance-badge {
  border-radius: 999px !important;
  letter-spacing: .01em;
}

table thead th {
  background: linear-gradient(180deg, #f6fbf8, #eef6f1) !important;
  color: #557866 !important;
}

table tbody tr:hover {
  background: rgba(37, 211, 102, 0.05) !important;
}

.dropzone,
.drop-zone,
.sms-dropzone,
.tg-dropzone {
  border-radius: 14px !important;
  border-color: #c9decf !important;
  background: linear-gradient(180deg, #ffffff, #f7fdfa) !important;
}

.dropzone:hover,
.drop-zone:hover,
.sms-dropzone:hover,
.tg-dropzone:hover,
.dropzone.dragover,
.drop-zone.dragover,
.sms-dropzone.dragover,
.tg-dropzone.dragover {
  border-color: #25d366 !important;
  background: linear-gradient(180deg, #f8fff9, #eefcf2) !important;
}

.topnav {
  background: linear-gradient(90deg, #0a5f50 0%, #0d6e5e 48%, #0d6e5e 100%) !important;
  box-shadow: 0 6px 16px rgba(4, 43, 35, 0.28) !important;
}

.topnav .dropdown-menu,
.topnav .avatar-dropdown,
.topnav .alerts-dropdown {
  border-color: #d4e5db !important;
  box-shadow: 0 18px 36px rgba(7, 30, 24, 0.20) !important;
}

.topnav .dropdown-menu a:hover {
  background: linear-gradient(90deg, #edf9f1, #f5fbf7) !important;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #78ae8f #edf4ef;
}

.btn:focus-visible,
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible,
.topnav .nav-links > a:focus-visible,
.topnav .dropdown-trigger > button:focus-visible {
  outline: 2px solid rgba(37, 211, 102, 0.5);
  outline-offset: 2px;
}

.btn:disabled,
.btn.disabled {
  opacity: 0.62;
}

/* CARD SYSTEM */
.card {
  background: white;
  border: 1px solid #e2ede5;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: all 0.2s;
}

.card:hover {
  border-color: #c8dece;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}

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

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a2e22;
  margin: 0;
}

.card-body {
  margin-bottom: 16px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2ede5;
}

.section-card {
  background: white;
  border: 1px solid #e2ede5;
  border-radius: 14px;
  border-left: 3px solid #25D366;
  padding: 24px;
  margin-bottom: 16px;
}

.section-number {
  width: 30px;
  height: 30px;
  background: #25D366;
  color: white;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: white;
  border: 1px solid #e2ede5;
  border-radius: 14px;
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: all 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  width: 100%;
}

.stat-card.blue::before {
  background: #2563eb;
}

.stat-card.green::before {
  background: #16a34a;
}

.stat-card.red::before {
  background: #dc2626;
}

.stat-card.gold::before {
  background: #d97706;
}

.stat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.stat-card.blue .stat-card-icon {
  background: #eff6ff;
  color: #2563eb;
}

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

.stat-card.red .stat-card-icon {
  background: #fef2f2;
  color: #dc2626;
}

.stat-card.gold .stat-card-icon {
  background: #fffbeb;
  color: #d97706;
}

.stat-card-value {
  font-size: 32px;
  font-weight: 700;
  color: #1a2e22;
  line-height: 1;
}

.stat-card-label {
  font-size: 13px;
  color: #7a9e88;
  margin-top: 6px;
  font-weight: 500;
}

.stat-card-subtext {
  font-size: 12px;
  color: #b0c8b8;
}

/* ============================================
   COMPREHENSIVE BUTTON SYSTEM
   Consistent sizing, colors, and behavior
   ============================================ */

/* Base Button - 40px height standard */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  box-sizing: border-box;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* PRIMARY - Green action buttons */
.btn-primary {
  background: #25D366;
  color: white;
}

.btn-primary:hover {
  background: #1db954;
  box-shadow: 0 4px 12px rgba(37,211,102,0.25);
}

.btn-primary:active {
  background: #16a34a;
}

/* SECONDARY - White/gray neutral buttons */
.btn-secondary {
  background: white;
  color: #1a2e22;
  border: 1px solid #c8dece;
}

.btn-secondary:hover {
  border-color: #25D366;
  color: #075E54;
  background: #f0fdf4;
}

/* OUTLINE - Bordered action buttons */
.btn-outline {
  background: transparent;
  border: 1px solid #25D366;
  color: #25D366;
}

.btn-outline:hover {
  background: #f0fdf4;
  box-shadow: 0 2px 8px rgba(37,211,102,0.15);
}

/* OUTLINE DANGER - Red bordered for destructive */
.btn-outline-danger {
  background: transparent;
  border: 1px solid #dc2626;
  color: #dc2626;
}

.btn-outline-danger:hover {
  background: #fef2f2;
  border-color: #ef4444;
  color: #ef4444;
}

/* DANGER - Destructive action buttons */
.btn-danger {
  background: #dc2626;
  color: white;
  border: 1px solid #dc2626;
}

.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  box-shadow: 0 4px 12px rgba(220,38,38,0.25);
}

/* GHOST - Subtle minimal buttons */
.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: #7a9e88;
}

.btn-ghost:hover {
  background: #f5f7f5;
  color: #1a2e22;
}

/* ============================================
   BUTTON SIZES - Consistent height scale
   ============================================ */

/* Small - 32px height */
.btn-sm {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 6px;
}

/* Large - 48px height */
.btn-lg {
  height: 48px;
  padding: 0 28px;
  font-size: 15px;
  border-radius: 10px;
}

/* Extra Large - 56px height for main CTAs */
.btn-xl {
  height: 56px;
  padding: 0 36px;
  font-size: 16px;
  border-radius: 12px;
}

/* Full width */
.btn-block {
  width: 100%;
}

/* ============================================
   SPECIAL BUTTONS
   ============================================ */

/* Send Button - Main CTA for campaigns */
.btn-send {
  background: linear-gradient(135deg, #25D366 0%, #075E54 100%);
  color: white;
  font-size: 16px;
  font-weight: 700;
  height: 56px;
  padding: 0 36px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(37,211,102,0.3);
  gap: 10px;
}

.btn-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  background: linear-gradient(135deg, #22c55e 0%, #064e46 100%);
}

/* Icon Button - Square with icon */
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 8px;
  font-size: 18px;
}

.btn-icon.btn-sm {
  width: 32px;
  height: 32px;
  font-size: 15px;
}

.btn-icon.btn-lg {
  width: 48px;
  height: 48px;
  font-size: 22px;
}

/* ============================================
   BUTTON STATES
   ============================================ */

.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  pointer-events: none;
}

/* Loading state */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.8s linear infinite;
}

@keyframes btn-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================
   BUTTON GROUPS
   ============================================ */

.btn-group {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-group-compact {
  display: inline-flex;
  gap: 4px;
}

.btn-group .btn {
  margin: 0;
}

/* Responsive buttons */
@media (max-width: 768px) {
  .btn {
    height: 44px;
    padding: 0 18px;
  }
  
  .btn-sm {
    height: 36px;
    padding: 0 12px;
  }
  
  .btn-send {
    height: 52px;
  }
}

/* INPUT SYSTEM */
.input {
  width: 100%;
  background: white;
  border: 1px solid #e2ede5;
  border-radius: 10px;
  color: #1a2e22;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  padding: 10px 14px;
  transition: all 0.2s;
  outline: none;
}

.input:focus {
  border-color: #25D366;
  box-shadow: 0 0 0 3px rgba(37,211,102,0.12);
}

.input::placeholder {
  color: #7a9e88;
}

.input-group {
  position: relative;
}
.input-group .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #7a9e88;
}
.input-group .input {
  padding-left: 36px;
}

textarea.input {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ab8a4' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.input.error {
  border-color: var(--error);
}
.input-error-msg {
  font-size: 12px;
  color: #dc2626;
  margin-top: 4px;
}

.input.success {
  border-color: var(--success);
}

/* BADGE / CHIP SYSTEM */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
}

.badge-green {
  background: rgba(37,211,102,0.15);
  color: #25D366;
  border: 1px solid rgba(37,211,102,0.3);
}

.badge-gold {
  background: #fef9ec;
  color: #d4920a;
  border: 1px solid rgba(240,180,41,0.3);
}

.badge-red {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid rgba(239,68,68,0.3);
}

.badge-blue {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid rgba(59,130,246,0.3);
}

.badge-gray {
  background: #f0f7f2;
  color: #4a7358;
  border: 1px solid #e2ede5;
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  70% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* TABLE SYSTEM */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead th {
  background: #f5f7f5;
  color: #7a9e88;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e2ede5;
}

tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f4f1;
  color: #1a2e22;
}

tbody tr:hover {
  background: #f8fdf9;
}

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

tbody td {
  padding: 12px 16px;
  color: #1a2e22;
  font-size: 13px;
}

tbody tr:nth-child(even) {
  background: white;
}

/* TOAST NOTIFICATIONS */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  min-width: 280px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  animation: slideIn 0.3s ease;
}

.toast-success {
  background: #f0fdf4;
  border: 1px solid #16a34a;
  color: #16a34a;
}

.toast-error {
  background: #fef2f2;
  border: 1px solid #dc2626;
  color: #dc2626;
}

.toast-warning {
  background: #fffbeb;
  border: 1px solid #d97706;
  color: #d97706;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* PROGRESS BAR */
.progress-bar-wrapper {
  background: #f0f7f2;
  border-radius: 9999px;
  height: 8px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #075E54, #25D366);
  border-radius: 9999px;
  transition: width 0.5s ease;
  position: relative;
  overflow: hidden;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  100% { left: 100%; }
}

/* DRAG & DROP UPLOAD AREA */
.upload-area {
  border: 2px dashed var(--border-default);
  border-radius: 14px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.upload-area:hover,
.upload-area.dragover {
  border-color: #25D366;
  background: rgba(37,211,102,0.12);
}

.upload-icon {
  font-size: 30px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.upload-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a2e22;
}

.upload-subtitle {
  font-size: 13px;
  color: #7a9e88;
  margin-top: 4px;
}

.upload-link {
  color: #25D366;
  cursor: pointer;
  font-weight: 500;
}

.file-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0f7f2;
  border: 1px solid #c8dece;
  border-radius: 10px;
  padding: 12px 16px;
}

.file-icon {
  font-size: 24px;
}

.file-name {
  font-weight: 500;
  font-size: 14px;
}

.file-size {
  font-size: 12px;
  color: #7a9e88;
}

.file-remove {
  margin-left: auto;
  color: #dc2626;
  cursor: pointer;
  font-size: 18px;
}

/* EMPTY STATES */
.empty-state {
  text-align: center;
  padding: 60px 24px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a2e22;
  margin-bottom: 8px;
}

.empty-subtitle {
  font-size: 14px;
  color: #7a9e88;
  max-width: 300px;
  margin: 0 auto 20px;
}

/* LOADING STATES */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-default);
  border-top-color: var(--green-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-overlay) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* SCROLLBAR STYLING */
* {
  scrollbar-width: thin;
}

/* CONTAINER */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

/* GRID SYSTEM */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 24px;
  color: #7a9e88;
  font-size: 13px;
  border-top: 1px solid #e2ede5;
  margin-top: 48px;
}

/* INPUT SYSTEM */
.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #1a2e22;
  margin-bottom: 6px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: white;
  border: 1px solid #c8dece;
  border-radius: 8px;
  color: #1a2e22;
  padding: 10px 14px;
  font-size: 14px;
  transition: all 0.2s;
  font-family: inherit;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #25D366;
  box-shadow: 0 0 0 3px rgba(37,211,102,0.12);
  outline: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #b0c8b8;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.field select {
  cursor: pointer;
}

.field .hint {
  font-size: 12px;
  color: #7a9e88;
  margin-top: 4px;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ab8a4' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

/* PROGRESS BAR - Legacy support */
.progress-track {
  background: #f0f7f2;
  border-radius: 9999px;
  height: 8px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #075E54, #25D366);
  border-radius: 9999px;
  transition: width 0.5s ease;
}

/* BADGE SYSTEM */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
}

.badge-success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.badge-warning {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.badge-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.badge-info {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.badge-gray {
  background: #f5f7f5;
  color: #4a7358;
  border: 1px solid #e2ede5;
}

/* CONTAINER */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}

/* PAGE HEADER */
.page-header {
  margin-bottom: 24px;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: #f0f9f3;
  margin-bottom: 8px;
}

.page-desc {
  font-size: 13px;
  color: #4a7358;
  margin-bottom: 24px;
}

/* ============================================
   GLOBAL LAYOUT NORMALIZATION
   ============================================ */
.container {
  width: min(var(--page-max-width), calc(100% - (var(--page-gutter) * 2)));
  max-width: none;
  margin: 0 auto;
  padding: var(--page-section-y) 0 40px;
}

.page-header {
  margin-bottom: 24px;
}

.page-title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 1.1rem + 1.8vw, 2.9rem);
  font-weight: 800;
  color: #1a2e22;
  letter-spacing: -0.04em;
}

.page-desc {
  max-width: 88ch;
  margin-bottom: 24px;
  color: #4a7358;
  font-size: clamp(0.98rem, 0.94rem + 0.18vw, 1.08rem);
  line-height: 1.6;
}

.site-footer {
  padding-inline: var(--page-gutter);
}

@media (max-width: 768px) {
  .topnav {
    padding-inline: var(--page-gutter-mobile);
  }

  .container {
    width: calc(100% - (var(--page-gutter-mobile) * 2));
    padding: 18px 0 32px;
  }

  .site-footer {
    padding-inline: var(--page-gutter-mobile);
  }
}

/* SCROLLBAR */
* {
  scrollbar-color: #c8dece #f5f7f5;
}

/* ALERTS */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13px;
}

.alert-success {
  background: #f0fdf4;
  border: 1px solid #16a34a;
  color: #16a34a;
}

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

.alert-warning {
  background: #fffbeb;
  border: 1px solid #d97706;
  color: #d97706;
}

/* TABLE WRAPPER */
.table-wrap {
  border: 1px solid #e2ede5;
  border-radius: 14px;
  overflow: hidden;
}

/* GRID SYSTEM */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* WHATSAPP STATUS BANNER */
.status-banner {
  width: 100%;
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.status-banner.disconnected {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #d97706;
}

.status-banner.connected {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #16a34a;
}

.status-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-banner-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid currentColor;
}

.status-banner.disconnected .status-banner-icon {
  color: #d97706;
}

.status-banner.connected .status-banner-icon {
  color: #16a34a;
}

.status-banner-text {
  font-weight: 600;
  font-size: 14px;
}

.status-banner.disconnected .status-banner-text {
  color: #d97706;
}

.status-banner.connected .status-banner-text {
  color: #16a34a;
}

.status-banner-subtext {
  font-size: 12px;
  color: #7a9e88;
  margin-top: 2px;
  font-weight: 600;
}

/* STAT TABS & MEDIA TABS */
.stat-tabs,
.media-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.stat-tabs .btn,
.media-tabs .btn {
  border-radius: 6px;
}

.stat-tabs .btn.active,
.media-tabs .btn.active {
  background: #25D366;
  color: white;
  border-color: #25D366;
}

.stat-tabs .btn.active:hover,
.media-tabs .btn.active:hover {
  background: #1db954;
  color: white;
}

/* SOURCE TABS & SMTP PRESETS */
.source-tabs,
.smtp-presets {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.source-tabs .btn,
.smtp-presets .btn {
  border-radius: 6px;
}

.source-tabs .btn.active,
.smtp-presets .btn.active {
  background: #25D366;
  color: white;
  border-color: #25D366;
}

/* CONTACT TABS */
.contact-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.contact-tabs .btn {
  border-radius: 6px;
}

.contact-tabs .btn.active {
  background: #25D366;
  color: white;
  border-color: #25D366;
}

/* DAY PICKER */
.day-picker {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.day-picker .day-btn {
  min-width: 48px;
  padding: 0 10px;
}

.day-picker .day-btn.active {
  background: #25D366;
  color: white;
  border-color: #25D366;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .page-title { font-size: 20px; }
  .card { padding: 16px; }
  .section-card { padding: 16px; }
  table { font-size: 12px; }
  thead th, tbody td { padding: 10px 12px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .topnav { padding: 0 16px; }
  .container { padding: 16px; }
}


.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-sm {
  gap: 8px;
}

.stat-card[data-kpi-link] {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card[data-kpi-link]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* ============================================
   COMPREHENSIVE HOVER EFFECTS - All Elements
   ============================================ */

/* All Buttons Hover Effects */
.btn,
button.btn,
.et-btn,
.compose-tool,
.source-tab,
.tg-switch {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn:hover,
button.btn:hover,
.et-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active,
button.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Primary Button Hover */
.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(18, 140, 126, 0.4);
}

/* Secondary Button Hover */
.btn-secondary:hover,
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: linear-gradient(180deg, #ffffff, #f2f8f4) !important;
  box-shadow: 0 4px 12px rgba(18, 140, 126, 0.15);
}

/* Danger Button Hover */
.btn-danger:hover {
  filter: brightness(1.15);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* All Cards/Boxes Hover Effects */
.card,
.panel,
.bw-card,
.sms-phone,
.stat-card,
.table-wrap,
.sms-table-wrap {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover,
.panel:hover,
.bw-card:hover,
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: #c8dece;
}

/* Input Fields Hover Effects */
.field input,
.field textarea,
.field select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  transition: all 0.2s ease;
}

.field input:hover,
.field textarea:hover,
.field select:hover,
input:hover,
textarea:hover,
select:hover {
  border-color: #a8cab3;
  box-shadow: 0 2px 8px rgba(18, 140, 126, 0.08);
}

.field input:focus,
.field textarea:focus,
.field select:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(18, 140, 126, 0.15);
  outline: none;
}

/* Navigation Links Hover */
.nav-links a,
.topnav .nav-links > a,
.dropdown-menu a {
  transition: all 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.topnav .nav-links > a:hover {
  color: var(--accent);
  background: rgba(18, 140, 126, 0.08);
  border-radius: 6px;
}

/* Dropdown Items Hover */
.dropdown-menu a:hover {
  background: rgba(18, 140, 126, 0.1);
  color: var(--accent);
  padding-left: 16px;
}

/* Table Rows Hover */
.cc-table tr,
table tbody tr,
.table-wrap table tr {
  transition: background 0.15s ease;
}

.cc-table tr:hover,
table tbody tr:hover,
.table-wrap table tbody tr:hover {
  background: rgba(18, 140, 126, 0.05);
  cursor: pointer;
}

/* Links Hover Effects */
a {
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

/* Checkbox/Radio Hover */
input[type="checkbox"],
input[type="radio"] {
  transition: all 0.2s ease;
  cursor: pointer;
}

input[type="checkbox"]:hover,
input[type="radio"]:hover {
  transform: scale(1.1);
}

/* File Upload Areas Hover */
.upload-area,
.file-drop-zone,
[id*="upload"],
[id*="drop"] {
  transition: all 0.3s ease;
}

.upload-area:hover,
.file-drop-zone:hover,
[id*="upload"]:hover,
[id*="drop"]:hover {
  border-color: var(--accent);
  background: rgba(18, 140, 126, 0.05);
  box-shadow: 0 4px 12px rgba(18, 140, 126, 0.1);
}

/* Icon Buttons Hover */
.btn-icon,
.icon-btn,
.tool-icon {
  transition: all 0.2s ease;
}

.btn-icon:hover,
.icon-btn:hover {
  transform: scale(1.1);
  color: var(--accent);
}

/* Modal Close Button Hover */
.modal-close,
.close-btn,
[id*="close"] {
  transition: all 0.2s ease;
}

.modal-close:hover,
.close-btn:hover {
  transform: rotate(90deg);
  color: #e53935;
}

/* Status Badges Hover */
.badge,
.badge-chan,
.badge-status {
  transition: all 0.2s ease;
}

.badge:hover,
.badge-chan:hover,
.badge-status:hover {
  transform: scale(1.05);
}

/* List Items Hover */
li,
.list-item,
.menu-item {
  transition: background 0.15s ease;
}

li:hover,
.list-item:hover,
.menu-item:hover {
  background: rgba(18, 140, 126, 0.05);
}

/* Image/Avatar Hover */
img,
.avatar,
.user-avatar,
.brand-logo {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img:hover,
.avatar:hover,
.user-avatar:hover {
  transform: scale(1.05);
}

/* Toggle Switches Hover */
.tg-switch,
.toggle-switch {
  transition: all 0.2s ease;
  cursor: pointer;
}

.tg-switch:hover,
.toggle-switch:hover {
  box-shadow: 0 0 8px rgba(18, 140, 126, 0.4);
}

/* Pagination Items Hover */
.pagination a,
.page-item {
  transition: all 0.2s ease;
}

.pagination a:hover,
.page-item:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

/* Tag/Chip Hover */
.tag,
.chip {
  transition: all 0.2s ease;
}

.tag:hover,
.chip:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Accordion/Collapsible Hover */
.accordion-header,
.collapsible-header {
  transition: background 0.2s ease;
  cursor: pointer;
}

.accordion-header:hover,
.collapsible-header:hover {
  background: rgba(18, 140, 126, 0.05);
}

/* Tooltip Trigger Hover */
[data-tooltip]:hover {
  position: relative;
}

/* Scroll to Top Button Hover */
.scroll-top,
.back-to-top {
  transition: all 0.3s ease;
}

.scroll-top:hover,
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Grid Items Hover */
.grid-item,
.cc-action,
.cc-status-card,
.cc-kpi-card {
  transition: all 0.25s ease;
}

.grid-item:hover,
.cc-action:hover,
.cc-status-card:hover,
.cc-kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Notification Bell Hover */
.notification-bell:hover {
  animation: bell-shake 0.5s ease;
}

@keyframes bell-shake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(15deg); }
  75% { transform: rotate(-15deg); }
}

/* Dashboard Cards Special Hover */
.cc-kpi-card:hover .cc-kpi-v {
  color: var(--accent);
  transform: scale(1.05);
}

.cc-kpi-v {
  transition: all 0.3s ease;
}

/* Action Buttons in Tables Hover */
.table-actions .btn,
td .btn {
  opacity: 0.8;
  transition: all 0.2s ease;
}

.table-actions .btn:hover,
td .btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Breadcrumb Links Hover */
.breadcrumb a,
.breadcrumbs a {
  transition: all 0.2s ease;
}

.breadcrumb a:hover,
.breadcrumbs a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Sidebar Menu Items Hover */
.sidebar-menu a,
.subnav a {
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.sidebar-menu a:hover,
.subnav a:hover {
  background: rgba(18, 140, 126, 0.08);
  border-left-color: var(--accent);
  padding-left: 16px;
}

/* Progress Bar Hover */
.progress-bar:hover {
  box-shadow: 0 0 8px rgba(18, 140, 126, 0.4);
}

/* Alert/Notification Boxes Hover */
.alert,
.notification,
.toast {
  transition: all 0.3s ease;
}

.alert:hover,
.notification:hover,
.toast:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Tab Items Hover */
.tab-item,
.nav-tab {
  transition: all 0.2s ease;
}

.tab-item:hover,
.nav-tab:hover {
  background: rgba(18, 140, 126, 0.08);
  color: var(--accent);
}

/* Search Input Hover */
.search-input:hover,
.search-box:hover {
  box-shadow: 0 2px 12px rgba(18, 140, 126, 0.15);
}

/* Date Picker Hover */
input[type="date"]:hover,
input[type="datetime-local"]:hover {
  border-color: var(--accent);
}

/* Select Dropdown Hover */
select:hover {
  cursor: pointer;
  background-image: linear-gradient(to right, rgba(18, 140, 126, 0.05), transparent);
}

/* Disabled State - No Hover */
.btn:disabled,
button:disabled,
input:disabled,
.disabled {
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Loading State - No Hover */
.is-loading,
.loading {
  cursor: wait !important;
  pointer-events: none;
}

