:root {
  --primary-color: #4a6baf;
  --secondary-color: #f5f7fa;
  --accent-color: #ff6b6b;
  --text-color: #333;
  --light-text: #777;
  --border-color: #ddd;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f0f2f5;
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  color: var(--primary-color);
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin-bottom: 15px;
  color: var(--primary-color);
  font-size: 1.3rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
  margin: 5px 0;
}

button:hover {
  background-color: #3a5a9f;
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.toggle-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.toggle-group label {
  margin-right: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th, td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--secondary-color);
  font-weight: 600;
}

tr:hover {
  background-color: var(--secondary-color);
}

ol {
  list-style-type: none;
}

ol li {
  padding: 10px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
}

ol li:last-child {
  border-bottom: none;
}

.wheel-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto 20px;
}

#wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 8px solid var(--primary-color);
  box-shadow: var(--shadow);
}

.wheel-segment {
  position: absolute;
  width: 50%;
  height: 50%;
  transform-origin: 100% 100%;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 30px;
  font-size: 12px;
  font-weight: bold;
  color: white;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.wheel-segment:nth-child(odd) {
  background-color: var(--primary-color);
}

.wheel-segment:nth-child(even) {
  background-color: var(--accent-color);
}

.wheel-segment::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-bottom: 20px solid white;
  transform: rotate(calc(var(--angle) / 2));
}

@media (max-width: 768px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
  
  .wheel-container {
    width: 250px;
    height: 250px;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #f8f9fa;
  font-weight: 600;
}

tr:hover {
  background-color: #f5f5f5;
}

td:nth-child(3), td:nth-child(4) {
  text-align: right;
  font-family: monospace;
}

/* Wheel styling */
.wheel-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

#wheelCanvas {
  width: 100%;
  height: auto;
  display: block;
}

.wheel-pointer {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: #ff4757;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.wheel-controls {
  text-align: center;
  margin-top: 20px;
}

/* Countdown styling */
.countdown-display {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 1.2em;
}

.countdown-display span {
  background: #4a6baf;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
}

/* Winner inputs */
.winner-inputs {
  display: grid;
  gap: 10px;
  margin-bottom: 15px;
}

.analytics-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.date-range-picker {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.date-range-picker label {
  font-weight: 500;
}

.date-range-picker input {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#fetchSales {
  padding: 0.5rem 1rem;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.sales-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat-card {
  flex: 1;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-card h3 {
  margin-top: 0;
  color: #555;
  font-size: 1rem;
}

.stat-card p {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0.5rem 0 0;
}

.top-profiles {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.top-profiles table {
  width: 100%;
  border-collapse: collapse;
}

.top-profiles th, .top-profiles td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.top-profiles th {
  background: #f8f9fa;
}

.analytics-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.date-range-picker {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.date-range-picker label {
  font-weight: 500;
}

.date-range-picker input {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#fetchSales {
  padding: 0.5rem 1rem;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.sales-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat-card {
  flex: 1;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-card h3 {
  margin-top: 0;
  color: #555;
  font-size: 1rem;
}

.stat-card p {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0.5rem 0 0;
}

.top-profiles {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.top-profiles table {
  width: 100%;
  border-collapse: collapse;
}

.top-profiles th, .top-profiles td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.top-profiles th {
  background: #f8f9fa;
}
/* Sales Summary Styles */
.sales-summary {
  margin-bottom: 2rem;
}

.date-filter {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.date-filter .form-group {
  margin-bottom: 0;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.summary-icon {
  font-size: 1.5rem;
  color: #4e73df;
}

.summary-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #6c757d;
}

.summary-content p {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.top-profiles h3 {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-list li {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
}

.profile-list li:last-child {
  border-bottom: none;
}

.profile-name {
  font-weight: 500;
}

.profile-count {
  color: #6c757d;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .date-filter {
    flex-direction: column;
    align-items: stretch;
  }
}
.sales-summary {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.date-filter {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.summary-icon {
  font-size: 1.5rem;
  color: #4e73df;
}

.summary-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #6c757d;
}

.summary-content p {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.top-profiles h3 {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-list li {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
}

.profile-list li:last-child {
  border-bottom: none;
}

.profile-name {
  font-weight: 500;
}

.profile-count {
  color: #6c757d;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .date-filter {
    flex-direction: column;
    align-items: stretch;
  }
}

.template-tabs {
  display: flex;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ddd;
}

.tab-btn {
  padding: 8px 16px;
  background: #f1f1f1;
  border: none;
  cursor: pointer;
  margin-right: 5px;
  border-radius: 4px 4px 0 0;
}

.tab-btn.active {
  background: #4e73df;
  color: white;
}

.template-content {
  padding: 15px;
  background: #f9f9f9;
  border-radius: 0 0 4px 4px;
}
.winner-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

.btn-danger:hover {
  background-color: #c82333;
}

 /* Sales Summary Styles */
    .sales-summary {
      margin-bottom: 2rem;
    }

    .date-filter {
      display: flex;
      gap: 1rem;
      align-items: flex-end;
      margin-bottom: 1.5rem;
    }

    .date-filter .form-group {
      margin-bottom: 0;
    }

    .summary-cards {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1rem;
      margin-bottom: 2rem;
    }

    .summary-card {
      background: #f8f9fa;
      border-radius: 8px;
      padding: 1.5rem;
      display: flex;
      align-items: center;
      gap: 1rem;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .summary-icon {
      font-size: 1.5rem;
      color: #4e73df;
    }

    .summary-content h3 {
      margin: 0 0 0.5rem;
      font-size: 1rem;
      color: #6c757d;
    }

    .summary-content p {
      margin: 0;
      font-size: 1.5rem;
      font-weight: bold;
      color: #333;
    }

    .top-profiles h3 {
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .profile-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .profile-list li {
      padding: 0.75rem 1rem;
      border-bottom: 1px solid #eee;
      display: flex;
      justify-content: space-between;
    }

    .profile-list li:last-child {
      border-bottom: none;
    }

    .profile-name {
      font-weight: 500;
    }

    .profile-count {
      color: #6c757d;
      font-size: 0.9rem;
    }

    /* Winner Actions */
    .winner-actions {
      display: flex;
      gap: 1rem;
      margin-top: 1rem;
    }

    .btn-danger {
      background-color: #dc3545;
      color: white;
      border: none;
      padding: 0.5rem 1rem;
      border-radius: 4px;
      cursor: pointer;
    }

    .btn-danger:hover {
      background-color: #c82333;
    }

    @media (max-width: 768px) {
      .date-filter {
        flex-direction: column;
        align-items: stretch;
      }
      
      .winner-actions {
        flex-direction: column;
      }
    }
	
	/* Payment System Tab Styles */
#payments-tab {
  background: #ffffff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#payments-tab .section {
  margin-bottom: 30px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #f9f9f9;
}

#payments-tab h2 {
  color: #333;
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/* Buttons */
#payments-tab button {
  padding: 8px 15px;
  margin: 5px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

#payments-tab button:hover {
  background: #45a049;
}

#payments-tab button:disabled {
  background: #cccccc;
  cursor: not-allowed;
}

#payments-tab #exportPDF {
  background: #f44336;
  margin-left: 10px;
}

#payments-tab #exportPDF:hover {
  background: #d32f2f;
}

#payments-tab #whatsappAll {
  background: #25D366;
  margin-left: 10px;
}

#payments-tab #whatsappAll:hover {
  background: #128C7E;
}

/* Form Elements */
#payments-tab label {
  display: inline-block;
  margin: 5px 10px 5px 0;
  font-weight: bold;
}

#payments-tab input[type="date"],
#payments-tab select {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-right: 10px;
}

#payments-tab .status-select {
  width: 200px;
  height: auto;
  min-height: 34px;
}

/* Numbers Container */
#payments-tab .numbers-container {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 10px;
  padding: 10px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Tables */
#payments-tab table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 20px;
  font-size: 14px;
}

#payments-tab th, 
#payments-tab td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

#payments-tab th {
  background-color: #f2f2f2;
  font-weight: bold;
}

#payments-tab tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #payments-tab .section {
    padding: 10px;
  }
  
  #payments-tab button,
  #payments-tab input[type="date"],
  #payments-tab select {
    width: 100%;
    margin: 5px 0;
  }
  
  #payments-tab .status-select {
    width: 100%;
  }
  
  #payments-tab label {
    display: block;
    margin: 10px 0 5px;
  }
}
.connection-status {
  position: relative;
  top: 0;
  margin-bottom: 1rem;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
}
.connected { background: #d4edda; color: #155724; }
.disconnected { background: #f8d7da; color: #721c24; }
.countdown {
  font-size: 1.5rem;
  font-weight: bold;
  color: #008cff;
  margin: 1rem 0;
}
.status-running { color: #28a745; }
.status-error { color: #dc3545; }
.button-group {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}



/* ====== Global Styles ====== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f6f9fc;
  color: #333;
  margin: 0;
  padding: 0;
}

/* ====== Tab Content Layout ====== */
.tab-content {
  padding: 2rem;
  animation: fadeIn 0.5s ease-in-out;
}

/* ====== Connection Status ====== */
.connection-status {
  font-weight: bold;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  width: fit-content;
  transition: background-color 0.3s ease;
}

.connection-status.connected {
  background-color: #e0f7e9;
  color: #2e7d32;
  border: 1px solid #81c784;
}

.connection-status.disconnected {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* ====== Cards ====== */
.hotspot-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.hotspot-card h2,
.hotspot-card h3 {
  margin-top: 0;
  color: #1a237e;
}

/* ====== Backup Info ====== */
.backup-info dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  row-gap: 1rem;
  column-gap: 1rem;
  margin: 0;
}

.backup-info dt {
  font-weight: bold;
  color: #3949ab;
}

.backup-info dd {
  margin: 0;
  color: #555;
}

/* ====== Buttons ====== */
.button-group {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #3949ab;
  color: white;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #303f9f;
}

.button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* ====== Countdown Area ====== */
.countdown {
  font-size: 2rem;
  font-weight: bold;
  color: #2e7d32;
  padding: 1rem 0;
}

/* ====== Animations ====== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Additional styles for payment section */
    .numbers-container { 
      max-height: 300px; 
      overflow-y: auto; 
      margin-top: 10px;
      border: 1px solid #ddd;
      padding: 10px;
      border-radius: 5px;
    }
    .status-select { 
      width: 200px; 
      padding: 8px;
      margin: 5px 0;
    }
    .export-btn {
      background: #f44336;
      margin-left: 10px;
    }
    .export-btn:hover {
      background: #d32f2f;
    }
    .whatsapp-btn {
      background: #25D366;
      margin-left: 10px;
    }
    .whatsapp-btn:hover {
      background: #128C7E;
    }
    .tab-container {
      display: flex;
      margin-bottom: 20px;
      border-bottom: 1px solid #ddd;
    }
    .tab {
      padding: 10px 20px;
      cursor: pointer;
      border: 1px solid #ddd;
      border-bottom: none;
      background: #f5f5f5;
      margin-right: 5px;
      border-radius: 5px 5px 0 0;
    }
    .tab.active {
      background: #fff;
      border-bottom: 1px solid #fff;
      margin-bottom: -1px;
    }
    .tab-content {
      display: none;
    }
    .tab-content.active {
      display: block;
    }
    
    /* Styles for Hotspot Export tab */
    .backup-info { text-align: left; margin: 1rem 0; }
    .backup-info dt { font-weight: bold; margin-top: 0.5rem; }
    .next-backup { margin-top: 2rem; color: #666; }
    .countdown {
      font-size: 1.5rem;
      font-weight: bold;
      color: #008cff;
      margin: 1rem 0;
    }
    .status-running { color: #28a745; }
    .status-error { color: #dc3545; }
    .connection-status {
      position: fixed;
      top: 10px;
      right: 10px;
      padding: 5px 10px;
      border-radius: 4px;
      font-size: 0.8rem;
    }
    .connected { background: #d4edda; color: #155724; }
    .disconnected { background: #f8d7da; color: #721c24; }
    .button-group {
      display: flex;
      gap: 1rem;
      margin: 1rem 0;
    }
    .hotspot-card {
      background: white;
      padding: 1.5rem;
      border-radius: 8px;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
      margin-bottom: 2rem;
    }
	/* Styles for User Retrieval tab */
    .user-retrieval-container {
      max-width: 800px;
      margin: 0 auto;
      padding: 20px;
    }
    .user-retrieval-title {
      text-align: center;
      font-size: 2.2rem;
      margin-bottom: 10px;
      color: #4F46E5;
    }
    .user-retrieval-subtitle {
      text-align: center;
      font-size: 1rem;
      color: #666;
      margin-bottom: 30px;
      line-height: 1.5;
    }
    .search-container {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 30px;
    }
    #retrieval-email-input {
      padding: 15px;
      border: 2px solid #ddd;
      border-radius: 10px;
      font-size: 1rem;
      transition: all 0.3s ease;
      width: 100%;
      max-width: 400px;
    }
    #retrieval-email-input.invalid {
      border-color: #EF4444;
    }
    #retrieval-email-input:focus {
      border-color: #4F46E5;
      outline: none;
      box-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
    }
    .search-btn {
      padding: 12px 20px;
      background-color: #4F46E5;
      color: white;
      border: none;
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.3s ease;
    }
    .search-btn:hover {
      background-color: #6366F1;
      transform: translateY(-2px);
    }
    #retrieval-user-list {
      list-style: none;
      margin-top: 20px;
    }
    .user-item {
      background: #FFF9C4;
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
      margin-bottom: 15px;
      transition: all 0.3s ease;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 20px;
    }
    .user-item:hover {
      transform: scale(1.02);
      box-shadow: 0 16px 24px rgba(0, 0, 0, 0.2);
    }
    .user-details {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .status-active {
      color: #10B981;
      font-weight: bold;
    }
    .status-inactive {
      color: #EF4444;
      font-weight: bold;
    }
    .user-comment {
      font-size: 0.95rem;
      color: #EF4444;
      margin-top: 5px;
    }
    .login-btn {
      padding: 12px 24px;
      background-color: #10B981;
      color: white;
      border: none;
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.3s ease;
      white-space: nowrap;
    }
    .login-btn:hover {
      background-color: #059669;
      transform: translateY(-2px);
    }
    .error-message {
      color: #EF4444;
      text-align: center;
      padding: 20px;
    }
    .no-results {
      color: #F59E0B;
      text-align: center;
      padding: 20px;
    }
    .validation-error {
      color: #EF4444;
      font-size: 0.9rem;
      margin-top: -10px;
      margin-bottom: 10px;
      text-align: center;
      display: none;
    }
    .language-selector {
      position: absolute;
      top: 20px;
      right: 20px;
      display: flex;
      gap: 10px;
    }
    .lang-btn {
      padding: 5px 10px;
      background: white;
      border: 1px solid #ddd;
      border-radius: 5px;
      cursor: pointer;
      transition: all 0.3s ease;
    }
    .lang-btn.active {
      background: #4F46E5;
      color: white;
      border-color: #4F46E5;
    }
	
	    /* Styles for User Info Check tab */
    .user-info-container {
      background: linear-gradient(to right, #6a11cb, #2575fc);
      text-align: center;
      padding: 20px;
      border-radius: 10px;
      max-width: 500px;
      margin: 20px auto;
      color: white;
    }
    .user-info-title {
      margin-bottom: 20px;
      font-size: 1.8rem;
    }
    .user-info-input {
      width: 100%;
      padding: 12px;
      border: none;
      border-radius: 5px;
      font-size: 16px;
      outline: none;
      transition: 0.3s;
      margin-bottom: 15px;
      background: rgba(255, 255, 255, 0.9);
    }
    .user-info-input:focus {
      border: 2px solid #fff;
      background: rgba(255, 255, 255, 0.8);
    }
    .user-info-btn {
      background-color: #ff7b00;
      color: white;
      border: none;
      padding: 12px 20px;
      font-size: 16px;
      border-radius: 5px;
      cursor: pointer;
      transition: 0.3s;
      width: 100%;
      font-weight: bold;
      margin-bottom: 15px;
    }
    .user-info-btn:hover {
      background-color: #e66a00;
    }
    .user-info-result {
      background: rgba(255, 255, 255, 0.2);
      padding: 15px;
      border-radius: 5px;
      margin-top: 20px;
      text-align: left;
    }
    .user-info-result p {
      margin: 8px 0;
    }
    .user-info-result strong {
      color: #fff;
    }
    .spinner {
      border: 4px solid #f3f3f3;
      border-top: 4px solid #ff7b00;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      animation: spin 2s linear infinite;
      margin: 20px auto;
      display: none;
    }
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    .language-select {
      padding: 8px;
      border-radius: 5px;
      border: none;
      margin-bottom: 15px;
      background: rgba(255, 255, 255, 0.9);
    }
	
	/* Add these styles to your CSS file */
email-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 5px;
}

.unique-count {
    background: #e0e0e0;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.9em;
}

.email-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-btn {
    padding: 5px 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.email-list-container {
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
}

.email-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 500px;
    overflow-y: auto;
}

.email-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.email-item:last-child {
    border-bottom: none;
}

.email-item:hover {
    background: #f9f9f9;
}

.email-text {
    flex-grow: 1;
}

.duplicate-count {
    background: #e0e0e0;
    color: #555;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8em;
    margin-left: 8px;
}

.email-warning {
    color: #d32f2f;
    font-size: 0.8em;
    margin-left: 8px;
}

.invalid-email {
    opacity: 0.7;
    border-left: 3px solid #ff6b6b;
}

.copy-btn, .copy-all-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 3px;
}

.copy-btn:hover, .copy-all-btn:hover {
    color: #333;
    background: #f0f0f0;
}

.copied {
    background: #4caf50 !important;
    color: white !important;
}

.error {
    color: #d32f2f;
    padding: 10px;
    background: #ffebee;
    border-radius: 4px;
}
*/
/* Tooltip for original email */
.original-email {
    position: relative;
    display: inline-block;
}

.original-email:hover::after {
    content: attr(data-original);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .email-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pagination-controls {
        margin-top: 10px;
        width: 100%;
        justify-content: space-between;
    }
    
    .email-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .email-actions {
        align-self: flex-end;
    }
}

// Add this to your CSS:
.unique-count {
    color: #666;
    font-size: 0.9em;
    margin: 0 10px;
}

.duplicate-count {
    background: #e0e0e0;
    color: #555;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8em;
    margin-left: 8px;
}
.error {
    color: red;
    padding: 10px;
    background: #ffeeee;
    border: 1px solid red;
}

.original-variations {
    margin-top: 5px;
    padding: 5px;
    background: #f5f5f5;
    border-radius: 3px;
    font-size: 0.85em;
}
.variation {
    padding: 2px 5px;
    margin: 2px 0;
    background: white;
    border-radius: 2px;
}

<style>
label {
  font-size: 1.1rem;
  color: #5f6368;
  margin-bottom: 8px;
  display: block;
}

select, input[type="text"], textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f9f9f9;
}

select:focus, input[type="text"]:focus, textarea:focus {
  border-color: #0056b3;
  outline: none;
  background-color: #fff;
}

button {
  background-color: #0056b3;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 5px;
}

button:hover {
  background-color: #00408b;
}

button:active {
  background-color: #003366;
}

button:disabled {
  background-color: #c0c0c0;
  cursor: not-allowed;
}

#status {
  margin-top: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #ff8c00;
}

#gamesContainer {
  margin-top: 20px;
}

#gamesContainer div {
  padding: 10px;
  margin-bottom: 10px;
  background-color: #f1f1f1;
  border-radius: 8px;
}

input[type="text"] {
  margin-right: 10px;
}

button {
  display: inline-block;
}

input[type="text"] {
  margin-bottom: 10px;
}

h3 {
  font-size: 1.5rem;
  color: #3e4a59;
  margin-bottom: 20px;
}

input[type="text"]:focus {
  outline: 2px solid #0056b3;
}

input[type="text"]:disabled {
  background-color: #e1e1e1;
}
</style>

.fa-spinner {
    margin-right: 5px;
}
/* Add this to your styles.css or admin.html style section */
.participants-table .table-container {
  overflow-x: auto;
  margin: 15px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.participants-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.participants-table th {
  background-color: #f8f9fa;
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #dee2e6;
}

.participants-table td {
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.participants-table tr:hover {
  background-color: #f5f5f5;
}

.participants-table .no-data {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 20px;
}

/* Ensure the table has proper column widths */
.participants-table th:nth-child(1) { width: 80px; } /* Rank */
.participants-table th:nth-child(2) { width: 300px; } /* Email */
.participants-table th:nth-child(3) { width: 100px; } /* Purchases */
.participants-table th:nth-child(4) { width: 150px; } /* Total Amount */
.participants-table th:nth-child(5) { width: 180px; } /* Last Purchase */


/* Tab content styling */
.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Table styling */
.table-container {
    min-height: 200px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
}

.participants-table {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#participantsTable {
    width: 100%;
    border-collapse: collapse;
}

#participantsTable th {
    background: #f5f5f5;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #ddd;
    font-weight: 600;
}

#participantsTable td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

#participantsTable tr:hover {
    background: #f9f9f9;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.pagination-btn {
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.pagination-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#pageInfo {
    font-weight: 500;
    color: #333;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
    font-family: Arial, sans-serif;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.notification.info {
    background: #4CAF50;
    color: white;
}

.notification.warning {
    background: #ff9800;
    color: white;
}

.notification.error {
    background: #f44336;
    color: white;
}

.notification.success {
    background: #4CAF50;
    color: white;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Connection status */
.connection-status {
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    margin-bottom: 15px;
    display: inline-block;
}

.connection-status.connected {
    background: #4CAF50;
    color: white;
}

.connection-status.disconnected {
    background: #f44336;
    color: white;
}