/* ========================================
   Global Styles
   ======================================== */

body {
  margin: 0;
  padding: 0;
  background-color: #000000;
  font-family: "Arial", sans-serif;
  color: white;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.app-container {
  width: 414px;
  background-color: #4a8c4a;
  padding: 10px;
  min-height: 100vh;
  box-sizing: border-box;
}

/* ========================================
   Scoreboard Section
   ======================================== */

#scoreboard-container {
  display: flex;
  justify-content: center;
}

.scoreboard {
  display: flex;
  align-items: center;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.95),
    rgba(240, 255, 240, 0.95)
  );
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.8);
  min-width: 340px;
  width: 100%;
  justify-content: space-between;
}

.team-section {
  text-align: center;
  flex: 1;
}

.team-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.team-score {
  font-size: 32px;
  font-weight: bold;
  color: #4a8c4a;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.game-info {
  text-align: center;
  padding: 0 20px;
  border-left: 2px solid rgba(74, 140, 74, 0.3);
  border-right: 2px solid rgba(74, 140, 74, 0.3);
}

.game-time {
  font-size: 24px;
  font-weight: bold;
  color: #2d5a2d;
  margin-bottom: 2px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Game Canvas Section
   ======================================== */

#game-container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#game-canvas {
  border: 3px solid #fff;
  border-radius: 5px;
  background-color: #6bb66b;
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Betting System
   ======================================== */

#betting-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.betting-section {
  margin-bottom: 12px;
  padding: 12px;
  background: rgba(230, 255, 230, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(45, 90, 45, 0.1);
}

/* Betting Options */
.betting-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.bet-btn {
  flex: 1;
  min-width: 70px;
  padding: 8px 10px;
  background: linear-gradient(145deg, #ffffff, #f0fff0);
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  transition: all 0.3s ease;
}

.bet-btn:hover {
  background: linear-gradient(145deg, #4a8c4a, #3d7a3d);
  color: white;
  border-color: #4a8c4a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 140, 74, 0.3);
}

.bet-btn:active {
  transform: translateY(0);
}

.bet-btn.selected {
  background: linear-gradient(145deg, #4a8c4a, #3d7a3d);
  color: white;
  border-color: #4a8c4a;
  box-shadow: 0 4px 15px rgba(74, 140, 74, 0.4);
}

.odds {
  display: block;
  font-size: 11px;
  margin-top: 3px;
  opacity: 0.8;
}

/* ========================================
   Bet Slip
   ======================================== */

#bet-slip {
  min-height: 80px;
  padding: 10px;
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 6px;
  margin-bottom: 10px;
}

.bet-slip-empty {
  text-align: center;
  color: #6c757d;
  font-style: italic;
  line-height: 60px;
  font-size: 14px;
}

.bet-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  margin-bottom: 5px;
  background: white;
  border-radius: 5px;
  border-left: 3px solid #4a8c4a;
}

.bet-item-info {
  flex: 1;
}

.bet-item-name {
  font-weight: 600;
  color: #333;
  font-size: 13px;
}

.bet-item-odds {
  font-size: 11px;
  color: #666;
}

.bet-item-amount {
  font-weight: 600;
  color: #4a8c4a;
  font-size: 13px;
}

/* ========================================
   Action Buttons
   ======================================== */

.bet-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.action-btn {
  flex: 1;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.action-btn.primary {
  background: linear-gradient(145deg, #4a8c4a, #3d7a3d);
  color: white;
}

.action-btn.primary:hover:not(:disabled) {
  background: linear-gradient(145deg, #3d7a3d, #2d5a2d);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 140, 74, 0.3);
}

.action-btn.primary:disabled {
  background: #cccccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.action-btn.secondary {
  background: linear-gradient(145deg, #6c757d, #5a6268);
  color: white;
}

.action-btn.secondary:hover {
  background: linear-gradient(145deg, #5a6268, #495057);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

/* ========================================
   Balance Section
   ======================================== */

#balance {
  color: #ffd700;
  font-size: 20px;
  font-weight: bold;
  margin: 0 5px;
}

.balance-section {
  padding: 10px 15px;
  background: linear-gradient(145deg, #2d5a2d, #4a8c4a);
  border-radius: 8px;
  text-align: center;
}

.balance-info {
  color: white;
  font-size: 16px;
  font-weight: 600;
}
