﻿input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.table-container {
  position: relative;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  display: none;
}

.table-loading .loading-overlay {
  display: flex;
}

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

/* Form Styles */
#errorMessage {
  color: red;
  display: none;
}

/* Spinner Styles */
.loading-spinner {
  color: white;
  font-size: 3rem;
}

/* .info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  text-align: center;
}

.info div {
  font-size: 14px;
  color: #000;
}

.info div span {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.info div i {
  display: block;
  font-size: 18px;
  color: #5b73e8;
  margin-bottom: 4px;
} */

.price {
  margin-top: 20px;
  font-size: 18px;
  font-weight: bold;
  color: #000;
}

/* .note {
  font-size: 11px;
  color: #888;
  margin-top: 10px;
} */

.subscribe-button {
  margin-top: 15px;
  background-color: #000;
  color: #ffcc00;
  padding: 10px 0;
  text-align: center;
  border-radius: 20px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.edit-button {
  margin-top: 15px;
  background-color: #000;
  color: #ffcc00;
  padding: 10px 0;
  text-align: center;
  border-radius: 20px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

/* Custom Modal Styles - Renamed from .modal to .custom-modal */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1051;
  /* Higher than Bootstrap's default 1050 */
}

.custom-modal.active {
  opacity: 1;
  visibility: visible;
}

.custom-modal .modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: -1;
}

.custom-modal .modal-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 400px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.custom-modal.active .modal-container {
  transform: translateY(0);
}

.custom-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.custom-modal .modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.custom-modal .modal-close svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.custom-modal .modal-header {
  padding: 24px 24px 16px;
  text-align: center;
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  color: white;
  position: relative;
}

.subscribe-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(110, 142, 251, 0.3);
}

.subscribe-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(110, 142, 251, 0.4);
}

.subscribe-now svg {
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.subscribe-now:hover svg {
  transform: translateX(4px);
}

.validity {
  margin-top: 12px;
  font-size: 14px;
  color: #000;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

.full-width-field {
  width: 100%;
}

.form-group {
  margin-bottom: 1rem;
}

.modal-content {
  border: none;
}

.input-group.border-bottom {
  border-bottom: 1px solid #dee2e6 !important;
}

.form-control:focus,
.form-select:focus {
  box-shadow: none;
}

.form-switch .form-check-input {
  width: 2.5em;
  height: 1.25em;
}

.form-label.small {
  font-size: 0.75rem;
}

.modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.suspended-banner {
  position: absolute;
  top: -1px;
  right: -1px;
  background: #ff3b30;
  color: white;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 0 20px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

/* Network Selection */
.network-selection {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 8px 0 15px !important;
  /* flex-wrap: wrap; */
}
@media (max-width: 767px) {
  .network-selection {
    gap: 0px !important;
  }
}

.network-selection {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 8px 0 15px !important;
  /* flex-wrap: wrap; */
}

@media (max-width: 767px) {
  .network-selection {
    gap: 0px;
  }
}

.network-logo-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100px;
}

.network-logo-wrapper:hover {
  transform: scale(1.05);
}

.network-logo-wrapper.selected {
  transform: scale(1.1);
}

.logo-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.network-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  padding: 15px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.network-logo-wrapper.selected .network-logo {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border: 2px solid #4361ee;
}

.package-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  color: white;
  border-radius: 50%;
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  border: 3px solid white;
  padding: 0 5px;
  z-index: 2;
}

.network-name {
  margin-top: 12px;
  font-weight: 700;
  color: #666;
  font-size: 15px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  white-space: nowrap !important;
}

.network-logo-wrapper.selected .network-name {
  color: #4361ee;
  font-weight: 800;
}

.network-logo-wrapper.selected .logo-container::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: #4361ee;
  border-radius: 2px;
}

/* Network Specific Colors */
#jazz-count {
  background: linear-gradient(135deg, #f72585, #b5179e);
  box-shadow: 0 3px 10px rgba(247, 37, 133, 0.3);
}

#telenor-count {
  background: linear-gradient(135deg, #4cc9f0, #4895ef);
  box-shadow: 0 3px 10px rgba(76, 201, 240, 0.3);
}

#zong-count {
  background: linear-gradient(135deg, #94c93e, #94c93e);
  box-shadow: 0 3px 10px rgba(95, 191, 134, 0.35);
}

#ufone-count {
  background: linear-gradient(135deg, #ff8a1a, #ff5a00);
  box-shadow: 0 3px 10px rgba(255, 106, 0, 0.4);
}

.network-logo-wrapper.selected#jazz-wrapper .network-logo {
  border-color: #f72585;
}

.network-logo-wrapper.selected#telenor-wrapper .network-logo {
  border-color: #4cc9f0;
}

.network-logo-wrapper.selected#zong-wrapper .network-logo {
  border-color: #f8961e;
}

.network-logo-wrapper.selected#ufone-wrapper .network-logo {
  border-color: #43aa8b;
}

.network-logo-wrapper.selected#jazz-wrapper .logo-container::after {
  background: #f72585;
}

.network-logo-wrapper.selected#telenor-wrapper .logo-container::after {
  background: #4cc9f0;
}

.network-logo-wrapper.selected#zong-wrapper .logo-container::after {
  background: #f8961e;
}

.network-logo-wrapper.selected#ufone-wrapper .logo-container::after {
  background: #43aa8b;
}

.network-logo-wrapper.selected#jazz-wrapper .network-name {
  color: #f72585;
}

.network-logo-wrapper.selected#telenor-wrapper .network-name {
  color: #4cc9f0;
}

.network-logo-wrapper.selected#zong-wrapper .network-name {
  color: #f8961e;
}

.network-logo-wrapper.selected#ufone-wrapper .network-name {
  color: #43aa8b;
}

/* Network Specific Colors */

#ntc-count {
  background: linear-gradient(135deg, #0f4c81, #f2c94c);
  box-shadow: 0 3px 10px rgba(15, 76, 129, 0.35);
}

#ncell-count {
  background: linear-gradient(135deg, #8e2de2, #4a00e0);
  box-shadow: 0 3px 10px rgba(142, 45, 226, 0.35);
}

#dialog-count {
  background: linear-gradient(135deg, #ff3d00, #ff9100);
  box-shadow: 0 3px 10px rgba(255, 61, 0, 0.35);
}

#xl-count {
  background: linear-gradient(135deg, #0033a0, #0057ff);
  box-shadow: 0 3px 10px rgba(0, 51, 160, 0.35);
}

#axis-count {
  background: linear-gradient(135deg, #6a1b9a, #8e24aa);
  box-shadow: 0 3px 10px rgba(106, 27, 154, 0.35);
}

#smartfren-count {
  background: linear-gradient(135deg, #e60012, #ff3b3b);
  box-shadow: 0 3px 10px rgba(230, 0, 18, 0.35);
}

#hutchison-count {
  background: linear-gradient(135deg, #ffd100, #ffc107);
  box-shadow: 0 3px 10px rgba(255, 209, 0, 0.35);
}

#mobitel-count {
  background: linear-gradient(135deg, #0056a4, #0096d6);
  box-shadow: 0 3px 10px rgba(0, 86, 164, 0.35);
}

#airtel-count {
  background: linear-gradient(135deg, #e60000, #ff3b3b);
  box-shadow: 0 3px 10px rgba(230, 0, 0, 0.35);
}

#bsnl-count {
  background: linear-gradient(135deg, #1e88e5, #42a5f5);
  box-shadow: 0 3px 10px rgba(30, 136, 229, 0.35);
}

#relianceJio-count {
  background: linear-gradient(135deg, #0047ff, #2962ff);
  box-shadow: 0 3px 10px rgba(0, 71, 255, 0.35);
}

#vi-count {
  background: linear-gradient(135deg, #ffcc00, #ffb300);
  box-shadow: 0 3px 10px rgba(255, 204, 0, 0.35);
}

#dito-count {
  background: linear-gradient(135deg, #7b2cbf, #9d4edd);
  box-shadow: 0 3px 10px rgba(123, 44, 191, 0.35);
}

#globe-count {
  background: linear-gradient(135deg, #007bff, #0056d2);
  box-shadow: 0 3px 10px rgba(0, 123, 255, 0.35);
}

#smart-count {
  background: linear-gradient(135deg, #00c853, #009624);
  box-shadow: 0 3px 10px rgba(0, 200, 83, 0.35);
}

#tnt-count {
  background: linear-gradient(135deg, #ff5722, #e64a19);
  box-shadow: 0 3px 10px rgba(255, 87, 34, 0.35);
}

#touch-count {
  background: linear-gradient(135deg, #00a9e0, #007bb5);
  box-shadow: 0 3px 10px rgba(0, 169, 224, 0.35);
}

#ais-count {
  background: linear-gradient(135deg, #8cc63f, #5ea82b);
  box-shadow: 0 3px 10px rgba(140, 198, 63, 0.35);
}

#dtac-count {
  background: linear-gradient(135deg, #00a9e0, #007bb5);
  box-shadow: 0 3px 10px rgba(0, 169, 224, 0.35);
}

#true-count {
  background: linear-gradient(135deg, #e60023, #b8001c);
  box-shadow: 0 3px 10px rgba(230, 0, 35, 0.35);
}

/* Selected Borders */
.network-logo-wrapper.selected#ntc-wrapper .network-logo {
  border-color: #2a9d8f;
}

.network-logo-wrapper.selected#ncell-wrapper .network-logo {
  border-color: #8e44ad;
}

.network-logo-wrapper.selected#dialog-wrapper .network-logo {
  border-color: #e63946;
}

/* Bottom Indicator */
.network-logo-wrapper.selected#ntc-wrapper .logo-container::after {
  background: #2a9d8f;
}

.network-logo-wrapper.selected#ncell-wrapper .logo-container::after {
  background: #8e44ad;
}

.network-logo-wrapper.selected#dialog-wrapper .logo-container::after {
  background: #e63946;
}

/* Network Name Color */
.network-logo-wrapper.selected#ntc-wrapper .network-name {
  color: #2a9d8f;
}

.network-logo-wrapper.selected#ncell-wrapper .network-name {
  color: #8e44ad;
}

.network-logo-wrapper.selected#dialog-wrapper .network-name {
  color: #e63946;
}

@media (max-width: 576px) {
  #receiptModal .modal-dialog {
    margin: 1rem auto;
    max-width: 95%;
  }
}

.swal2-container.swal2-top-end {
  padding: 0 !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
}

.swal2-popup.wallet-toast-glass-fixed {
  margin: 8px 10px !important;
  /* slight breathing room from edge */
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  width: auto !important;
  max-width: 360px !important;
  overflow: visible !important;
}

/* The sexy glass inner card */
.wallet-toast-inner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: rgba(24, 27, 38, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  color: #e0e0e0;
  width: 320px;
  animation: fadeInSlide 0.4s ease;
}

.wallet-toast-icon {
  font-size: 22px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
  margin-top: 3px;
}

.wallet-toast-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
  color: #fff;
}

.wallet-toast-body {
  font-size: 13px;
  line-height: 1.5;
}

.table td,
.table th {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.badge-success {
  background-color: #28a745;
  color: white;
}

.badge-cancelled {
  background-color: #dc3545;
  color: white;
}

.badge-pending {
  background-color: #ffc107;
  color: black;
}

.badge-processing {
  background-color: #0d6efd;
  color: white;
}

.badge-refunded {
  background-color: #17a2b8;
  color: white;
}

.badge-declined {
  background-color: #a71d2a;
  color: white;
}

.badge-rejected {
  background-color: #fd7e14;
  color: white;
}

.badge-failed {
  background-color: #fd7e14;
  color: white;
}

.badge-reversed {
  background-color: #6f42c1;
  color: white;
}

.badge-default {
  background-color: #6c757d;
  color: white;
}

.app-footer {
  background: #ffffff;
  border-top: 1px solid #e9ecef;
  padding: 12px 0;
  font-size: 13px;
  color: #6c757d;

  /* Add these for sticky footer */
  position: absolute !important;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.app-footer .footer-brand {
  font-weight: 500;
  color: #343a40;
}

.app-footer .footer-version {
  background: #f8f9fa;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  color: #495057;
}

.app-footer .footer-love i {
  vertical-align: middle;
}

@media (max-width: 767px) {
  .main-content {
    padding-bottom: 30px;
  }
}

@media (max-width: 767px) {
  .mobile-friendly-filters {
    width: 100%;
    background: #ffffff;
    padding: 14px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  }

  .mobile-friendly-filters .form-control,
  .mobile-friendly-filters .form-select {
    width: 100%;
    border-radius: 12px;
    padding: 10px 14px;
  }
}

.btn-check:checked + .btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check) + .btn:active {
  color: #fff !important;
}
.text-super {
  color: #11254f !important;
}

.quick-filter-btn.active {
  font-weight: bold;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

#jsonContent {
  background-color: #fff;
  padding: 1rem;
  font-family: Consolas, monospace;
  font-size: 16px;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.renderjson .disclosure {
  font-size: 18px;
  font-weight: bold;
  color: #444;
  margin-right: 6px;
  cursor: pointer;
}

.renderjson .key {
  color: #003366;
  font-weight: bold;
}

.renderjson .string {
  color: #b33c00;
}

.renderjson .number {
  color: #008000;
}

.renderjson .boolean {
  color: #aa00aa;
  font-weight: bold;
}

.renderjson .null {
  color: #888888;
  font-style: italic;
}

/* ---------- 1. TABLE LOADING OVERLAY (reusable) ---------- */
.table-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 1rem;
  z-index: 10;
}

.table-overlay .spinner-border {
  width: 2.5rem;
  height: 2.5rem;
}

.table-wrapper {
  position: relative; /* ensures overlay stays positioned correctly */
}

/* ---------- 2. DASHBOARD ROW + CARDS ---------- */
.dashboard-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
}

/* Base card behavior (desktop) */
.dashboard-card {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: auto;
  min-width: 180px;
}

.dashboard-card .card {
  height: 100%;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  white-space: nowrap;
}

.dashboard-card .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   SUPERLOAD SWEETALERT
   ========================================================= */

.superload-swal-popup {
  width: 420px !important;
  padding: 0 !important;
  border-radius: 22px !important;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18) !important;
}

.superload-swal-icon {
  margin: 28px auto 12px !important;
}

.superload-swal-title {
  font-size: 23px !important;
  font-weight: 800 !important;
  color: #111827 !important;
  margin: 0 24px 8px !important;
}

.superload-swal-html {
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: #040c1d !important;
  margin: 0 24px 20px !important;
}

.superload-swal-actions {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 24px 24px !important;
  gap: 10px !important;
}

.superload-swal-confirm {
  min-width: 130px;
  border: 0 !important;
  border-radius: 10px !important;
  padding: 11px 22px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  background: #1e3c72 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.superload-swal-confirm:hover {
  background: #17315f !important;
}

.superload-swal-cancel {
  min-width: 100px;
  border: 1px solid #d1d5db !important;
  border-radius: 10px !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  background: #fff !important;
  color: #374151 !important;
  box-shadow: none !important;
}

.superload-swal-cancel:hover {
  background: #f9fafb !important;
}

.superload-swal-danger {
  min-width: 140px;
  border: 0 !important;
  border-radius: 10px !important;
  padding: 11px 22px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  background: #dc3545 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.superload-swal-danger:hover {
  background: #bb2d3b !important;
}
