:root {
  --brand-purple: #5b2a86;
  --brand-pink: #e0398a;
  --brand-gradient: linear-gradient(135deg, #5b2a86 0%, #e0398a 100%);
  --sidebar-bg: #1c1533;
  --sidebar-active: #2a2050;
  --sidebar-muted: #a99fc4;
  --page-bg: #f4f5fb;
  --card-radius: 16px;
  --green: #1fbf75;
  --orange: #ff9f2d;
  --red: #ef4b5f;
  --blue: #6c63ff;
  --text-dark: #1f2233;
  --text-muted: #8a8fa3;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--page-bg);
  color: var(--text-dark);
}

/* ---------- Inline SVG icon system ---------- */
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon.filled {
  fill: currentColor;
  stroke: none;
}

/* ---------- Sidebar ---------- */
.sidebar {
  background: var(--sidebar-bg);
  min-height: 100vh;
  width: 250px;
  padding: 0px;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  z-index: 1030;
  transition: transform .3s ease;
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0px;
  padding: 6px;
  background-color: #f4f5fb;
  justify-content: center;
}

.sidebar .brand img {
  max-width: 174px;
  height: 60px;
}

.sidebar-inner {
  padding: 20px;
}

.sidebar .brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 19px;
}

.sidebar .brand-text {
  line-height: 1.1;
}

.sidebar .brand-text .name {
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  letter-spacing: .5px;
}

.sidebar .brand-text .tag {
  font-size: 9.5px;
  color: var(--sidebar-muted);
  letter-spacing: .3px;
}

.btn-send-sms {
  background: var(--brand-gradient);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14.5px;
  width: 100%;
  text-decoration: none;
}

.btn-send-sms:hover {
  color: #fff;
  opacity: .92;
}

.nav-scroll {
  flex: 1;
  overflow: auto;
  max-height: calc(100vh - 322px);
  min-height: calc(100vh - 322px);
}

.nav-scroll::-webkit-scrollbar {
  width: 4px;
}

.nav-scroll::-webkit-scrollbar-thumb {
  background: #3a2f5c;
  border-radius: 4px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cfc9e0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 2px;
}

.side-link .icon {
  font-size: 16px;
  flex-shrink: 0;
}

.side-link:hover {
  background: #241b3f;
  color: #fff;
}

.side-link.active {
  background: var(--sidebar-active);
  color: #fff;
  font-weight: 600;
}

.side-link .chev {
  margin-left: auto;
  font-size: 12px;
  transition: transform .2s;
}

.side-link[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.submenu {
  padding-left: 30px;
}

.submenu .side-link {
  font-size: 13.5px;
  font-weight: 400;
  color: #b7b0d1;
  padding: 8px 10px;
}

.submenu .side-link.active {
  background: transparent;
  color: #fff;
  font-weight: 600;
}

.help-card {
  background: linear-gradient(160deg, #2a2050, #241b3f);
  border-radius: 14px;
  padding: 16px;
  margin-top: 14px;
}

.help-card p {
  font-size: 12px;
  color: var(--sidebar-muted);
  margin-bottom: 12px;
}

.help-card h6 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.btn-support {
  background: var(--brand-gradient);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  padding: 9px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.main-wrapper {
  padding: 24px;
  padding-top: 90px;
}

/* ---------- Main content ---------- */
.main-wrap {
  margin-left: 250px;
  padding: 0;
  transition: margin-left .3s ease;
}

/* desktop collapse (triggered by hamburger) */
.sidebar.collapsed {
  transform: translateX(-100%);
}

.main-wrap.expanded {
  margin-left: 0;
}

.expanded .topbar {
  width: 100%;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  padding: 14px 20px;
  position: fixed;
  max-width: 100%;
  width: calc(100% - 250px);
  border-bottom: 1px solid #e5e5e5;
  z-index: 11;
}

.burger-btn {
  border: none;
  background: #fff;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  box-shadow: 0 2px 6px rgba(20, 10, 60, .06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-dark);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #ececf4;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(20, 10, 60, .05);
  color: var(--text-dark);
  font-size: 19px;
}

.icon-btn .badge-dot {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--page-bg);
}

.credits-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #ececf4;
  border-radius: 12px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(20, 10, 60, .05);
}

.credits-pill .icon {
  color: var(--brand-pink);
  font-size: 17px;
}

.avatar-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #ececf4;
  border-radius: 12px;
  padding: 6px 10px;
  box-shadow: 0 2px 6px rgba(20, 10, 60, .05);
}

.avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
}

h1.page-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
}

.page-sub {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 22px;
}

/* channel tabs */
.channel-tabs {
  display: inline-flex;
  background: #fff;
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 2px 6px rgba(20, 10, 60, .05);
}

.channel-tabs .tab-btn {
  border: none;
  background: transparent;
  padding: 9px 20px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 7px;
}

.channel-tabs .tab-btn.active {
  background: var(--brand-gradient);
  color: #fff;
}

.date-range {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 18px;
  box-shadow: 0 2px 6px rgba(20, 10, 60, .05);
}

.date-range .icon {
  color: var(--text-muted);
  font-size: 16px;
  flex-shrink: 0;
}

.date-range .seg {
  font-size: 12px;
  color: var(--text-muted);
}

.date-range .seg strong {
  display: block;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 700;
}

.date-range .seg-lbl {
  display: block;
}

/* clickable date fields */
.seg-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 8px;
  transition: background .15s;
}

.seg-field:hover {
  background: #f6f5fb;
}

.date-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

/* notification dropdown */
.notif-menu {
  width: 320px;
  border: none;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(20, 10, 60, .14);
  padding: 8px 0;
}

.notif-header {
  font-weight: 700;
  font-size: 14px;
  padding: 8px 16px 10px;
  color: var(--text-dark);
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  white-space: normal;
}

.notif-item:hover {
  background: #f6f5fb;
}

.notif-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.notif-title {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
}

.notif-time {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* profile dropdown */
.profile-menu {
  width: 230px;
  border: none;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(20, 10, 60, .14);
  padding: 10px 0;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 10px;
}

.profile-menu .dropdown-item {
  font-size: 13.5px;
  padding: 9px 16px;
}

.profile-menu .dropdown-item:hover {
  background: #f6f5fb;
}

/* stat cards */
.stat-card {
  background: #fff;
  border-radius: var(--card-radius);
  padding: 20px;
  box-shadow: 0 2px 10px rgba(20, 10, 60, .05);
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-icon {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
}

.stat-card .label {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-bottom: 2px;
}

.stat-card .value {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-card .delta {
  font-size: 12.5px;
  font-weight: 600;
}

.bg-icon-sent {
  background: var(--blue);
}

.bg-icon-delivered {
  background: var(--green);
}

.bg-icon-pending {
  background: var(--orange);
}

.bg-icon-failed {
  background: var(--red);
}

/* panels */
.panel {
  background: #fff;
  border-radius: var(--card-radius);
  padding: 20px;
  box-shadow: 0 2px 10px rgba(20, 10, 60, .05);
}

.panel-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}

.legend-item .lbl {
  font-size: 13px;
  color: var(--text-muted);
}

.legend-item .val {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.panel.recharge-history {
  padding: 0px;
}

.panel.recharge-history .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  margin-bottom: 0px;
}

.table thead th {
  color: #212121;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
  background-color: #f5f5f5;
  padding: 16px 20px;
}

.table tbody td {
  font-size: 13.5px;
  padding: 14px 20px;
  border-bottom: 1px solid #f2f2f6;
  vertical-align: middle;
  color: var(--text-dark);
}

.pay-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background: #f4f5fb;
  color: var(--text-dark);
}

.btn-outline-brand {
  border: 1px solid #e6e2f2;
  color: var(--brand-purple);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  background: #fff;
}

/* mobile */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 1020;
}

@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .main-wrap {
    margin-left: 0;
    padding: 16px;
  }

  .sidebar-backdrop.show {
    display: block;
  }
}

@media (max-width: 575.98px) {
  h1.page-title {
    font-size: 24px;
  }

  .date-range {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* ============================================================
   Delivery Reports page
   ============================================================ */

.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-trail .icon {
  font-size: 11px;
  color: var(--text-muted);
}

/* Quick / Smart / Bulk / Schedule tabs */
.report-tabs {
  display: flex;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
  border-bottom: 1px solid #eee;
}

.report-tab-btn {
  border: none;
  background: transparent;
  padding: 0 0 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
}

.report-tab-btn.active {
  color: var(--brand-purple);
}

.report-tab-btn.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

/* Form fields */
.field-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.live-preview {
  background: rgb(255 255 255 / 48%);
}

.field-input {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e6e6f0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--text-dark);
  background: #fff;
  justify-content: space-between;
}

input.field-input {
  display: block;
}

.field-input::placeholder {
  color: #b3b3c2;
}

.field-input:focus,
input.field-input:focus {
  outline: none;
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 3px rgba(91, 42, 134, .1);
}

.field-input .icon {
  color: var(--text-muted);
  font-size: 16px;
  flex-shrink: 0;
}

/* date field inside filter panel (dd-mm-yyyy) */
.date-field {
  position: relative;
  cursor: pointer;
}

.date-field .date-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

/* status custom select */
.status-dropdown {
  width: 100%;
}

.status-select {
  justify-content: space-between;
  cursor: pointer;
}

.status-menu {
  width: 100%;
  border: none;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(20, 10, 60, .14);
  padding: 8px 0;
  max-height: 280px;
  overflow-y: auto;
}

.status-item {
  font-size: 13.5px;
  padding: 9px 16px;
  color: var(--text-dark);
}

.status-item:hover {
  background: #f6f5fb;
}

/* submit / reset buttons */
.btn-submit {
  background: var(--brand-gradient);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 26px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-reset {
  background: #fff;
  border: 1px solid #e6e6f0;
  color: var(--text-dark);
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* table toolbar (show entries + search) */
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.show-entries {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-dark);
}

.entries-select {
  border: 1px solid #e6e6f0;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13.5px;
}

.table-search {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-dark);
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap input {
  border: 1px solid #e6e6f0;
  border-radius: 8px;
  padding: 8px 34px 8px 12px;
  font-size: 13.5px;
  width: 220px;
}

.search-input-wrap input:focus {
  outline: none;
  border-color: var(--brand-purple);
}

.search-input-wrap .icon {
  position: absolute;
  right: 10px;
  color: var(--text-muted);
  font-size: 15px;
}

/* reports table */
.reports-table {
  font-size: 13.5px;
}

.reports-table thead th {
  background-color: #642b86;
  color: #fff;
  font-weight: 600;
  font-size: 12.5px;
  border: none;
  padding: 12px 14px;
  white-space: nowrap;
}

.reports-table thead th:first-child {
  border-top-left-radius: 10px;
}

.reports-table thead th:last-child {
  border-top-right-radius: 10px;
}

.reports-table tbody td {
  padding: 14px;
  font-size: 13px;
  color: var(--text-dark);
  border-bottom: 1px solid #f2f2f6;
  white-space: nowrap;
}

.text-truncate-cell {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* status badges */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
}

.badge-delivered {
  background: #e4f9ee;
  color: var(--green);
}

.badge-undelivered {
  background: #fde8ea;
  color: var(--red);
}

.badge-expired {
  background: #fdf1e0;
  color: var(--orange);
}

.badge-dnd {
  background: #e7ecfe;
  color: #4f5fee;
}

.badge-clicked {
  background: #f1e9fb;
  color: var(--brand-purple);
}

.badge-pending {
  background: #fdf1e0;
  color: var(--orange);
}

.badge-rejected {
  background: #f1f1f4;
  color: #6a6a7a;
}

.badge-others {
  background: #f1f1f4;
  color: #6a6a7a;
}

.detail-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #e6e6f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
}

.detail-btn:hover {
  background: #f6f5fb;
}

.detail-btn .icon {
  font-size: 16px;
}

/* table footer / pagination */
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.entries-info {
  font-size: 13px;
  color: var(--text-muted);
}

.pagination-custom {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.page-btn {
  border: 1px solid #e6e6f0;
  background: #fff;
  color: var(--text-dark);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
}

.page-btn.active {
  background: var(--brand-gradient);
  color: #fff;
  border-color: transparent;
}

.page-btn:disabled {
  color: #c7c7d4;
  cursor: not-allowed;
}

.page-ellipsis {
  padding: 0 4px;
  color: var(--text-muted);
  font-size: 13px;
}

@media (max-width: 767.98px) {
  .table-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-input-wrap input {
    width: 100%;
  }

  .table-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   Send SMS / Create Campaign page
   ============================================================ */

.select-native {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8fa3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 38px;
  cursor: pointer;
  max-width: 380px;
}

.btn-import {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f4f1fb;
  color: var(--brand-purple);
  border: 1px solid #e6ddf7;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 13.5px;
}

.import-menu {
  border: none;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(20, 10, 60, .14);
  padding: 8px 0;
}

.import-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 13.5px;
  color: var(--text-dark);
}

.import-item:hover {
  background: #f6f5fb;
}

.import-item .icon {
  color: var(--brand-purple);
  font-size: 16px;
}

.btn-validate {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--text-dark);
  border: 1px solid #e6e6f0;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 13.5px;
}

textarea.field-input.recipients-textarea {
  display: block;
  width: 100%;
  resize: vertical;
  min-height: 110px;
  font-family: inherit;
  line-height: 1.6;
}

.numbers-added {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-purple);
}

.add-template-btn {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid #e6e6f0;
  background: #fff;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-template-btn:hover {
  background: #f6f5fb;
}

/* toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}

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

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #dcdce6;
  border-radius: 24px;
  cursor: pointer;
  transition: background .2s;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.toggle-switch input:checked+.toggle-slider {
  background: var(--brand-gradient);
}

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

.smart-sms-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 0;
}

.upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.5px dashed #d8d8e6;
  border-radius: 12px;
  padding: 26px 16px;
  text-align: center;
  cursor: pointer;
  color: var(--text-dark);
  font-size: 13.5px;
  font-weight: 600;
  background: #fafafd;
}

.upload-dropzone:hover {
  border-color: var(--brand-purple);
  background: #f6f4fc;
}

.upload-dropzone .icon {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.upload-dropzone .upload-hint {
  font-weight: 400;
  font-size: 12px;
  color: var(--text-muted);
}

.url-shortener-row {
  display: flex;
  gap: 10px;
}

.url-shortener-row .field-input {
  flex: 1;
}

.btn-shorten {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-gradient);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0 18px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.shortener-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

.shortener-note .icon {
  font-size: 14px;
  flex-shrink: 0;
}

.message-preview-box {
  background: #f4f5fb;
  border-radius: 12px;
  padding: 16px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-dark);
  white-space: pre-line;
}

.char-counter {
  font-size: 12.5px;
  color: var(--text-muted);
}

.char-counter strong {
  color: var(--green);
}

.sms-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.sms-count .icon {
  font-size: 14px;
}

.btn-send-gradient {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand-gradient);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-weight: 600;
  font-size: 14px;
}

.btn-schedule-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: var(--brand-purple);
  border: 1.5px solid var(--brand-purple);
  border-radius: 10px;
  padding: 13px;
  font-weight: 600;
  font-size: 14px;
}

.summary-item.summary-border {
  border-right: 1px solid #d6caca;
  padding-right: 30px;
}

/* Live preview phone mockup */
.preview-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.phone-mockup {
  background: #0e0e16;
  border-radius: 34px;
  padding: 12px;
  max-width: 260px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(20, 10, 60, .18);
  height: 540px;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #0e0e16;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 10px 18px 2px;
  font-size: 11px;
  font-weight: 700;
  color: #000;
  border-radius: 22px 22px 0 0;
}

.phone-status-icons {
  display: flex;
  gap: 4px;
  color: #000;
}

.phone-header {
  background: #fff;
  padding: 8px 14px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f0f0f4;
}

.phone-header .icon {
  font-size: 16px;
  color: #0e0e16;
}

.phone-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}

.phone-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #d8d8e6;
}

.phone-contact-name {
  font-size: 12px;
  font-weight: 700;
  color: #0e0e16;
  display: flex;
  align-items: center;
  gap: 2px;
}

.phone-msg-label {
  background: #fff;
  text-align: center;
  font-size: 9.5px;
  color: var(--text-muted);
  padding: 6px 0 10px;
  line-height: 1.4;
}

.phone-screen {
  background: #fff;
  min-height: 348px;
  padding: 0 14px 14px;
}

.chat-bubble {
  background: #e9e9ef;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  padding: 12px 14px;
  font-size: 11.5px;
  line-height: 1.6;
  color: #0e0e16;
  max-width: 92%;
}

.phone-input-row {
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 14px;
  border-radius: 0 0 22px 22px;
}

.phone-plus,
.phone-send-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-plus {
  background: #f0f0f4;
  color: var(--text-muted);
}

.phone-send-btn {
  background: var(--brand-purple);
  color: #fff;
}

.phone-plus .icon,
.phone-send-btn .icon {
  font-size: 13px;
}

.phone-text-input {
  flex: 1;
  background: #f0f0f4;
  border-radius: 14px;
  padding: 6px 12px;
  font-size: 10.5px;
  color: var(--text-muted);
}

.preview-footnote {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin: 30px 0 0;
}

/* Campaign summary */
.summary-row {
  display: flex;
  gap: 32px;
  margin-bottom: 16px;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.summary-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.summary-icon-purple {
  background: #f1e9fb;
  color: var(--brand-purple);
}

.summary-icon-pink {
  background: #fde8ef;
  color: var(--brand-pink);
}

.summary-value {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-dark);
}

.summary-label {
  font-size: 12.5px;
  color: var(--text-muted);
}

.summary-footnote {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  padding-top: 24px;
  margin: 0;
  text-align: center;
}

@media (max-width: 767.98px) {
  .url-shortener-row {
    flex-direction: column;
  }

  .btn-shorten {
    padding: 12px;
  }
}

/* ============================================================
   Login page
   ============================================================ */
.login-body {
  background: linear-gradient(135deg, #eef0fb 0%, #f7eef7 50%, #eef4fb 100%);
  min-height: 100vh;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0px 60px;
  max-width: 1500px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.login-left {
  flex: 1 1 520px;
  min-width: 320px;
}

.login-hero-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
  text-align: center;
}

.login-hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 420px;
  margin-bottom: 14px;
  margin: 10px auto;
  text-align: center;
}

.hero-underline {
  width: 60px;
  height: 4px;
  border-radius: 4px;
  background: var(--brand-gradient);
  margin-bottom: 40px;
  margin: 10px auto 30px;
}

.hero-illustration {
  position: relative;
  /*max-width: 360px;*/
  max-width: 500px;
  height: 300px;
  margin: 0 auto;
}

.mock-dashboard {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(20, 10, 60, .12);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.mock-topbar {
  background: var(--sidebar-bg);
  padding: 10px 14px;
  display: flex;
  gap: 6px;
}

.mock-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-pink {
  background: var(--brand-pink);
}

.dot-line {
  width: 24px;
  background: #4a3f70;
  border-radius: 4px;
}

.mock-body {
  display: flex;
  min-height: 260px;
}

.mock-sidebar {
  background: var(--sidebar-bg);
  width: 44px;
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.mock-side-dot {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #3a2f5c;
}

.mock-side-dot.active {
  background: var(--brand-gradient);
}

.mock-list {
  flex: 1;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mock-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e2ddf5;
  flex-shrink: 0;
}

.mock-line {
  height: 8px;
  border-radius: 4px;
  background: #eceaf5;
  flex: 1;
}

.mock-line.short {
  flex: 0 0 60px;
}

.mock-charts {
  width: 130px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-left: 1px solid #f0f0f5;
}

.mock-sparkline {
  height: 56px;
  border-radius: 8px;
  background: linear-gradient(100deg, transparent 40%, rgba(108, 99, 255, .12) 60%, transparent 80%),
    repeating-linear-gradient(120deg, transparent 0 10px);
  position: relative;
}

.mock-sparkline::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, transparent 48%, rgba(108, 99, 255, .5) 50%, transparent 52%);
  clip-path: polygon(0 70%, 20% 55%, 40% 65%, 60% 30%, 80% 45%, 100% 15%, 100% 100%, 0 100%);
  background-color: rgba(108, 99, 255, .12);
}

.mock-donut {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto;
  background: conic-gradient(var(--brand-pink) 0 30%, var(--brand-purple) 30% 60%, #eceaf5 60% 100%);
  position: relative;
}

.mock-donut::after {
  content: "";
  position: absolute;
  inset: 12px;
  background: #fff;
  border-radius: 50%;
}

.floating-badge {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 10px 24px rgba(20, 10, 60, .14);
  z-index: 2;
}

.badge-whatsapp {
  background: #25d366;
  color: #fff;
  top: 0;
  left: 0;
}

.badge-send {
  background: #fff;
  color: var(--brand-pink);
  top: -6px;
  right: 40px;
  border: 2px dashed #f4c9dd;
}

.badge-users {
  background: #fff;
  color: var(--brand-purple);
  bottom: 120px;
  left: 0;
  border: 2px dashed #d8c7ee;
}

.chat-card {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(20, 10, 60, .12);
  padding: 14px 16px;
  z-index: 2;
  font-size: 12.5px;
}

.chat-card-whatsapp {
  top: 70px;
  left: -10px;
  width: 160px;
}

.chat-card-text {
  color: var(--text-dark);
  line-height: 1.5;
  font-size: 12.5px;
}

.chat-card-time {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-card-rcs {
  bottom: -30px;
  left: -10px;
  width: 190px;
}

.chat-card-sms {
  bottom: -60px;
  right: -10px;
  width: 190px;
}

.chat-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.chat-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-rcs {
  background: #4f5fee;
}

.avatar-sms {
  background: var(--brand-purple);
}

.chat-card-body {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.chat-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #1f2233;
  flex-shrink: 0;
}

.chat-card-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-purple);
  text-decoration: none;
}

.login-right {
  flex: 0 1 460px;
  min-width: 320px;
}

.login-card {
  background: #fff;
  border-radius: 20px;
  padding: 44px 40px;
  box-shadow: 0 20px 60px rgba(20, 10, 60, .1);
  text-align: center;
}

.login-lock-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #eee9fb;
  color: var(--brand-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 18px;
}

.login-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.login-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.6;
}

.login-card form {
  text-align: left;
}

.login-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e6e6f0;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}

.login-input-wrap:focus-within {
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 3px rgba(91, 42, 134, .1);
}

.login-input-wrap .icon {
  color: var(--text-muted);
  font-size: 16px;
  flex-shrink: 0;
}

.login-input-wrap input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 13.5px;
  color: var(--text-dark);
}

.login-input-wrap input::placeholder {
  color: #b3b3c2;
}

.pw-toggle {
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  font-size: 16px;
  padding: 0;
}

.btn-login {
  width: 100%;
  background: var(--brand-gradient);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-weight: 700;
  font-size: 15px;
  margin-top: 6px;
}

.lost-password {
  display: block;
  margin-top: 22px;
  font-size: 13px;
  color: var(--brand-purple);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 991.98px) {
  .login-page {
    padding: 40px 24px;
  }

  .hero-illustration {
    min-height: 380px;
  }
}

@media (max-width: 767.98px) {
  .login-page {
    flex-direction: column;
  }

  .login-hero-title {
    font-size: 30px;
  }

  .hero-illustration {
    margin: 0 auto;
  }

  .login-card {
    padding: 34px 24px;
  }
}

/* ============================================================
   Lost Password modal (login page)
   ============================================================ */
.lost-pw-modal {
  border: none;
  border-radius: 20px;
  padding: 40px 40px 36px;
  text-align: center;
  position: relative;
  box-shadow: 0 30px 70px rgba(20, 10, 60, .25);
}

.lost-pw-modal .login-lock-icon {
  margin: 0 auto 18px;
}

.lost-pw-modal .login-sub {
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.lost-pw-modal form {
  text-align: left;
  max-width: 100%;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #f4f4f8;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.modal-close-btn:hover {
  background: #e9e9f0;
}

.modal-backdrop.show {
  opacity: .55;
}

.brand-icon {
  max-width: 180px;
  position: absolute;
  top: 30px;
}

.has-error{
	color: red;
	font-size:12px;
	margin-top: 0px;
	display: none;
	text-align: left;
	margin-bottom: 10px;
}

.text-purple {
    color: #6f42c1 !important;
	
}

.spinner-border {
    --bs-spinner-width: 1rem;
    --bs-spinner-height: 1rem;
    --bs-spinner-vertical-align: -0.125em;
    --bs-spinner-border-width: 0.15em;
    --bs-spinner-animation-speed: 0.75s;
    --bs-spinner-animation-name: spinner-border;
    border: var(--bs-spinner-border-width) solid currentcolor;
    border-right-color: transparent;
	
}

.login-spinCls {
    display: none;
    text-align: left;
}

.login-spinCls .spinner-border {
    vertical-align: middle;
    margin-right: 6px;
}

.login-spinCls .please-wait {
    display: inline-block;
    vertical-align: middle;
    font-size: 12px;
}

/* Profile Table */

.profile-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.profile-table th {
    width: 30%;
    background-color: #6f2c91;
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid #ddd;
}

.profile-table td {
    width: 70%;
    background-color: #fff;
    color: #222;
    padding: 14px 16px;
    border-bottom: 1px solid #ddd;
}
.profile-table tr:first-child th {
    border-top-left-radius: 10px;
}

.profile-table tr:last-child th {
    border-bottom-left-radius: 10px;
}

/* Profile Table */

.dt-column-header{
	background-color: gray;
		
}