:root {
      --primary: #003f7f;
      --light-bg: #f5f7fa;
      --text-dark: #333;
      --border: #ddd;
      --green: #4CAF50;
      --blue: #2196F3;
      --red: #f44336;
      --teal: #009688;
      --orange: #FF9800;
      --white: #fff;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    body {
      background-color: var(--light-bg);
      color: var(--text-dark);
    }

    .main-content {
      padding: 20px;
      min-height: 100vh;
    }

    /* ===== DASHBOARD HEADER ===== */
    .dashboard-header {
      display: flex;
      align-items: center;
      gap: 20px;
      margin-bottom: 20px;
      padding: 10px 0;
      border-bottom: 2px solid var(--border);
    }

    .dashboard-header h1 {
      font-size: 24px;
      color: var(--text-dark);
    }

    .dashboard-header span {
      font-size: 16px;
      color: #666;
    }

    /* ===== WIDGETS ROW ===== */
    .widgets-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
      margin-bottom: 20px;
    }

    .widget {
      background: white;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
      padding: 15px;
      position: relative;
    }

    .widget-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
    }

    .widget-title {
      font-weight: bold;
      font-size: 16px;
      color: var(--text-dark);
    }

    .add-money-btn {
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: bold;
      color: white;
    }

    .cards-wallet-btn {
      background: var(--green);
    }

    .pan-wallet-btn {
      background: var(--blue);
    }

    .wallet-amount {
      font-size: 24px;
      font-weight: bold;
      margin: 10px 0;
    }

    .wallet-icon {
      font-size: 28px;
      color: var(--text-dark);
    }

    .chart-placeholder {
      height: 80px;
      background: linear-gradient(to right, #e8f5e9, #c8e6c9);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #2e7d32;
      font-weight: bold;
    }

    .chart-placeholder.blue {
      background: linear-gradient(to right, #bbdefb, #90caf9);
      color: #1565c0;
    }

    /* ===== DISTRIBUTOR BANNER ===== */
    .distributor-banner {
      background: linear-gradient(90deg, #006400, #00bfa5);
      color: white;
      padding: 15px 20px;
      border-radius: 12px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
    }

    .distributor-text {
      flex: 1;
    }

    .distributor-title {
      font-size: 18px;
      font-weight: bold;
      margin-bottom: 5px;
    }

    .distributor-desc {
      font-size: 14px;
      opacity: 0.9;
    }

    .join-now-btn {
      background: #ffeb3b;
      color: #333;
      padding: 8px 16px;
      border-radius: 8px;
      font-weight: bold;
      text-decoration: none;
    }

    /* ===== AGENTS BOX ===== */
    .agents-box {
      background: white;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
      padding: 15px;
    }

    .agents-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
    }

    .agents-title {
      font-weight: bold;
      font-size: 16px;
    }

    .agents-icon {
      font-size: 24px;
      color: #4CAF50;
    }

    .bar-chart {
      height: 80px;
      display: flex;
      align-items: flex-end;
      gap: 6px;
      padding: 10px 0;
    }

    .bar {
      width: 10px;
      background: #1F9D55;
      border-radius: 4px 4px 0 0;
    }

    .bar:nth-child(odd) {
      height: 30px;
    }

    .bar:nth-child(even) {
      height: 50px;
    }

    .bar:nth-child(3n) {
      height: 60px;
    }

    /* ===== OVERVIEW SECTIONS ===== */
    .overview-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 20px;
      margin-bottom: 20px;
    }

    .overview-box {
      background: white;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
      padding: 15px;
    }

    .overview-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 15px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--border);
    }

    .overview-title {
      font-weight: bold;
      font-size: 16px;
      color: var(--text-dark);
    }

    .more-icon {
      font-size: 16px;
      color: #666;
      cursor: pointer;
    }

    .service-list {
      list-style: none;
    }

    .service-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 0;
      border-bottom: 1px solid var(--border);
    }

    .service-name {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
    }

    .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      display: inline-block;
    }

    .red { background: var(--red); }
    .green { background: var(--green); }
    .blue { background: var(--blue); }
    .purple { background: #9c27b0; }
    .orange { background: var(--orange); }
    .grey { background: #9e9e9e; }

    .stats {
      display: flex;
      gap: 15px;
      font-size: 14px;
    }

    .stat {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .stat-label {
      font-size: 12px;
      color: #666;
    }

    /* ===== CUSTOMER CARE BOX ===== */
    .customer-care-box {
      background: #2b44cd;
      color: white;
      border-radius: 12px;
      padding: 15px;
      margin-bottom: 20px;
    }

    .cc-header {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 15px;
    }

    .cc-icon {
      font-size: 24px;
      background: white;
      color: var(--green);
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .cc-title {
      font-size: 18px;
      font-weight: bold;
    }

    .cc-status {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 10px 0;
      font-weight: bold;
    }

    .online-badge {
      background: #00e676;
      color: black;
      padding: 2px 8px;
      border-radius: 12px;
      font-size: 12px;
      font-weight: bold;
    }

    .cc-detail {
      margin: 15px 0;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .cc-icon-small {
      font-size: 20px;
    }

    .cc-number {
      font-size: 20px;
      font-weight: bold;
    }

    .cc-timing {
      font-size: 15px;
      color: #FFFFFF;
      margin-top: 5px;
    }

    /* ===== LOGIN HISTORY TABLE ===== */
    .login-history {
      background: white;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
      overflow: hidden;
    }

    .history-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 20px;
      background: #f8f9fa;
      border-bottom: 1px solid var(--border);
    }

    .history-title {
      font-weight: bold;
      font-size: 16px;
    }

    .more-dot {
      font-size: 20px;
      color: #666;
      cursor: pointer;
    }

    .history-table {
      width: 100%;
      border-collapse: collapse;
    }

    .history-table th,
    .history-table td {
      padding: 12px 15px;
      text-align: left;
      border-bottom: 1px solid var(--border);
    }

    .history-table th {
      background: #f8f9fa;
      font-weight: bold;
      font-size: 14px;
      color: #333;
    }

    .ip-tag {
      background: #2196F3;
      color: white;
      padding: 2px 8px;
      border-radius: 12px;
      font-size: 12px;
    }

    /* ===== MOBILE RESPONSIVE ===== */
  /* ===== MOBILE RESPONSIVE - SCROLLABLE TABLES ===== */
@media (max-width: 768px) {
  .widgets-row,
  .overview-row {
    grid-template-columns: 1fr;
  }

  .widget-header,
  .overview-header,
  .history-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .add-money-btn {
    padding: 4px 8px;
    font-size: 10px;
  }

  .wallet-amount {
    font-size: 20px;
  }

  .chart-placeholder {
    height: 60px;
  }

  .distributor-banner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .join-now-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .agents-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .bar-chart {
    height: 60px;
  }

  .bar {
    width: 8px;
  }

  /* ===== SCROLLABLE TABLES FOR MOBILE ===== */
  .service-list {
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f8f9fa;
  }

  .service-list::-webkit-scrollbar {
    width: 6px;
  }

  .service-list::-webkit-scrollbar-track {
    background: #f8f9fa;
  }

  .service-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 6px;
  }

  .service-list::-webkit-scrollbar-thumb:hover {
    background: #999;
  }

  /* Login History Table Scrollable */
  .login-history {
    overflow-x: auto;
  }

  .history-table {
    min-width: 600px; /* Ensures horizontal scroll on small screens */
    border-collapse: collapse;
  }

  .history-table th,
  .history-table td {
    padding: 8px 10px;
    font-size: 12px;
    white-space: nowrap; /* Prevents text wrapping */
  }

  .ip-tag {
    padding: 2px 6px;
    font-size: 10px;
  }

  /* Customer Care Box Adjustments */
  .cc-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cc-detail {
    flex-direction: column;
    align-items: flex-start;
  }

  .cc-number {
    font-size: 18px;
  }

  .main-content {
    padding: 15px;
  }
}
/* ===== PAYMENTS OVERVIEW SECTION ===== */
.payments-overview {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 15px;
  margin-bottom: 20px;
}

.payments-header {
  background: #2196F3;
  color: white;
  padding: 8px 15px;
  border-radius: 8px 8px 0 0;
  margin-bottom: 15px;
}

.payments-header h3 {
  font-size: 16px;
  font-weight: bold;
}

.payments-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.payment-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.payment-icon img {
  border-radius: 50%;
  border: 2px solid #2b44cd;
}

.payment-details {
  flex: 1;
}

.payment-title {
  font-weight: bold;
  font-size: 16px;
  color: #333;
}

.payment-amount {
  font-size: 20px;
  font-weight: bold;
  margin: 5px 0;
}

.payment-stats {
  font-size: 12px;
  line-height: 1.4;
}

.payment-stats span {
  display: inline-block;
  margin-right: 10px;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .payment-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .payment-icon img {
    width: 50px;
    height: 50px;
  }

  .payment-title {
    font-size: 14px;
  }

  .payment-amount {
    font-size: 18px;
  }

  .payment-stats {
    font-size: 11px;
  }
}
