:root {
  --primary-color: #fb9324; /* Orange */
  --header-color: #f89600; /* Slightly different orange if needed */
  --bg-color: #f5f5f5; /* Light gray background */
  --text-dark: #333333;
  --text-muted: #777777;
  --red-text: #b32d2d; /* "Market close for today" */
  --border-color: #e0e0e0;
}

body {
  background-color: var(--bg-color);
  font-family: 'Poppins', sans-serif; /* We'll include Poppins from Google Fonts */
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  padding-bottom: 70px; /* Space for bottom nav */
}

a {
  text-decoration: none;
}

/* Header */
.app-header {
  background-color: var(--header-color);
  color: white;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.app-title {
  font-size: 20px;
  font-weight: 500;
  margin: 0;
  display:flex;
  align-items: center;
  gap: 10px;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 20px;
}

/* Marquee */
.marquee-container {
  background-color: white;
  color: #b32d2d;
  padding: 5px 0;
  font-weight: 500;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
}

/* Main Buttons */
.main-buttons-container {
  display: flex;
  gap: 10px;
  padding: 15px;
  background-color: white;
  border-bottom: 1px solid var(--border-color);
}

.main-btn {
  flex: 1;
  background-color: var(--primary-color);
  color: white;
  border-radius: 25px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-decoration: none;
}
.main-btn:hover, .main-btn:active {
  background-color: #e08316;
  color: white;
}

.main-btn .icon-circle {
  background-color: var(--text-dark);
  color: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
}

/* WhatsApp Links */
.wa-link-container {
  display: flex;
  justify-content: space-around;
  padding: 5px 15px 15px 15px;
  background-color: white;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 10px;
}
.wa-link {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.wa-icon {
  color: #25D366;
  font-size: 18px;
}

/* Market Cards */
.market-card {
  background-color: white;
  margin: 10px;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.market-info > h5 {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 5px;
}

.market-number {
  color: var(--primary-color);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.market-status {
  color: var(--red-text);
  font-size: 12px;
  margin-bottom: 5px;
}

.market-times {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 15px;
}
.time-val {
  color: var(--primary-color);
  font-weight: 500;
  margin-top: 2px;
}

.market-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.action-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--text-dark);
  font-size: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}
.action-icon-btn i {
  font-size: 24px;
  color: var(--primary-color);
}
.play-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--text-dark);
  color: var(--text-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
}


/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: white;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-dark);
  font-size: 12px;
  text-decoration: none;
  position: relative;
}
.nav-item i {
  font-size: 20px;
  margin-bottom: 4px;
}

.nav-item.active .icon-bg {
  background-color: var(--primary-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: -25px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.nav-item.active {
  padding-top: 25px; /* space for the elevated icon */
  font-weight: 500;
}
.nav-item.active .nav-text {
  margin-top: 5px;
}


/* --- CHart Page --- */
.chart-table-container {
  overflow-x: auto;
  background-color: white;
}
.chart-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 14px;
}
.chart-table th, .chart-table td {
  border: 1px solid var(--border-color);
  padding: 5px;
}
.chart-table th {
  background-color: #f8f9fa;
  font-weight: 600;
}
.chart-table .date-col {
  width: 80px;
  font-size: 10px;
  color: var(--text-muted);
}
.chart-table .val {
  font-weight: bold;
}
.chart-table .red-text {
  color: var(--red-text);
}


/* --- Starline / Jackpot Pages --- */
.page-header {
  background-color: var(--bg-color);
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.page-header a {
  color: var(--text-dark);
}

.tabs-container {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  align-items: center;
}
.toggle-switch-container {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.action-bubbles {
  display: flex;
  flex-wrap: wrap;
  padding: 0 10px;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 15px;
}
.action-bubble {
  flex: 1 1 calc(50% - 15px);
  background-color: white;
  border-radius: 20px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  font-size: 14px;
  font-weight: 500;
}
.action-bubble span {
  color: #bfa054; /* Goldish color from image */
  font-size: 12px;
  display: block;
}

.game-list {
  padding: 10px;
}
.game-card {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.game-time-block {
  display: flex;
  align-items: center;
  gap: 10px;
}
.game-time-block i {
  font-size: 24px;
  color: var(--text-muted);
}
.game-time {
  font-weight: 600;
  font-size: 16px;
}
.game-status {
  color: var(--red-text);
  font-size: 12px;
}
.game-result-bubble {
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 5px 15px;
  font-weight: bold;
  font-size: 16px;
  min-width: 80px;
  text-align: center;
}
.play-btn-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: var(--text-dark);
}
.play-btn-circle .icon {
  background-color: var(--text-dark);
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  margin-bottom: 5px;
}
.play-btn-circle .icon.gold {
  border: 2px solid #bfa054;
}

/* Jackpot styles */
.jackpot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding: 15px;
}
.jackpot-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  text-align: center;
}
.j-card-top {
  padding: 15px 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.j-time {
  font-weight: 600;
  font-size: 14px;
}
.j-icon {
  color: var(--text-muted);
  font-size: 20px;
}
.j-number {
  background-color: var(--text-dark);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  margin: 10px auto;
}
.j-status {
  color: var(--red-text);
  font-size: 12px;
  margin-bottom: 10px;
}
.j-play-btn {
  background-color: #6c757d;
  color: white;
  width: 100%;
  padding: 10px 0;
  border: none;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

/* Funds Page */
.funds-menu {
  padding: 15px;
}
.fund-item {
  background-color: white;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  text-decoration: none;
  color: var(--text-dark);
}
.fund-icon {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  border: 1px solid var(--text-dark);
  border-radius: 5px;
  margin-right: 15px;
}
.fund-item .fund-icon.rounded-circle {
  border-radius: 50%;
}
.fund-text h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 5px 0;
}
.fund-text p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}
.fund-arrow {
  margin-left: auto;
  font-size: 20px;
  color: var(--text-dark);
}

/* Add Funds generic Page */
.form-container {
    padding: 20px;
    background: white;
    border-radius: 10px;
    margin: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
