:root {
  --bg-dark: #1c1a52;
  --bg-panel: #1b1f4a;
  --bg-card: #23285a;
  --bg-accent: #1d2250;
  --primary: #56c1da;
  --primary-hover: #7ad3e7;
  --emerald: #19b36b;
  --text-muted: #9ea6d6;
  --border-color: rgba(255, 255, 255, 0.07);
}

body {
  background: linear-gradient(180deg, #1e1c5c 0%, #2a1f5a 45%, #3c2350 75%, #5b3a2c 100%) fixed;
}

#app,
#loading-overlay {
  background: transparent;
}

#loading-overlay {
  background: #14123d url("../assets/rodeo/images/loading-bg.jpg") center / cover no-repeat;
}

.loading-logo {
  width: min(220px, 50vw);
  height: auto;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
}

.spinner {
  border-color: rgba(86, 193, 218, 0.2);
  border-top-color: #56c1da;
}

.game-container {
  background: transparent;
  border-radius: 0;
}

/* Top history bar */
.history-bar {
  background: #1b1a4d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  justify-content: flex-start;
  gap: 1rem;
}

.rodeo-logo {
  height: 34px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.history-item {
  border-radius: 4px;
  border: none;
  padding: 0.2rem 0.4rem;
  font-size: 11px;
  font-weight: 700;
  color: #fff !important;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.history-red,
.history-purple { background-color: #1f5a85; }
.history-blue { background-color: #1d6b3c; }
.history-emerald { background-color: #8c1f87; }
.history-pink,
.history-orange,
.history-yellow { background-color: #b9561b; }

/* Panels */
.game-main,
.game-footer,
.desktop-header {
  background-color: #1b1f4a !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: none !important;
}

.graph-container {
  border: 1px solid rgba(255, 140, 90, 0.35);
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 12px 30px rgba(0, 0, 0, 0.45);
}

@media (max-width: 1023px) {
  .graph-area {
    flex: none;
  }
  .graph-container {
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 65vh;
  }
}

@media (min-width: 1024px) {
  .graph-container {
    border-radius: 10px;
  }
  .game-main,
  .game-footer {
    border-radius: 10px !important;
  }
  .desktop-header {
    border-radius: 10px;
  }
}

.balance-badge {
  background: transparent;
  border: none;
  box-shadow: none;
}

.balance-amount {
  color: #56c1da;
}

.status-dot {
  background-color: #56c1da;
}

/* Bet panels */
.bet-panel {
  background: #2a2342;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.6rem;
}

.bet-panel:hover {
  border-color: rgba(86, 193, 218, 0.35) !important;
}

.checkbox-label {
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
}

.checkbox-indicator {
  width: 1.6rem;
  height: 0.85rem;
  border-radius: 999px;
  background: #3a3560;
  border-color: rgba(255, 255, 255, 0.15);
  justify-content: flex-start;
  padding: 0 2px;
}

.checkbox-indicator.checked {
  background: #1f6a85;
  border-color: #56c1da;
  justify-content: flex-end;
}

.checkbox-indicator .check-dot {
  display: block !important;
  width: 0.55rem;
  height: 0.55rem;
  background: #56c1da;
}

.autocashout-input-container,
.bet-input-container {
  background: #3a3560;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.step-btn {
  border-radius: 50%;
  color: #fff;
}

.step-btn.decrement,
.step-btn.increment {
  background: #fff;
  color: #2a2342;
  box-shadow: none;
}

.quick-bet-btn {
  background: #4a4870;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
}

.quick-bet-btn:hover {
  border-color: rgba(86, 193, 218, 0.6);
}

.action-btn {
  width: 120px;
  border-radius: 14px;
  border: 1px solid #7be7a6;
}

.action-btn.bet {
  background: linear-gradient(180deg, #1aa760 0%, #0b7b46 100%);
  box-shadow: 0 4px 14px rgba(13, 140, 75, 0.35);
}

.action-btn.cashout {
  background: linear-gradient(180deg, #f2a23a 0%, #c46a10 100%);
  border-color: #ffd08a;
  box-shadow: 0 4px 14px rgba(230, 140, 40, 0.35);
}

.action-btn.cancel {
  background: linear-gradient(180deg, #e0444f 0%, #a81d2a 100%);
  border-color: #ff9aa2;
}

/* Bets list */
.tabs-nav {
  background: #1b1f4a;
  border-radius: 0;
}

.tab-btn {
  border-radius: 0;
  text-transform: uppercase;
  font-size: 0.75rem;
  border-bottom: 2px solid transparent;
}

.tab-btn.active {
  background: transparent;
  color: #56c1da;
  border-bottom-color: #56c1da;
}

.tab-content,
thead {
  background-color: #1b1f4a;
}

.tab-header {
  background-color: #1d2250;
}

.modal-container {
  background-color: #1d2250;
}

.modal-btn {
  background: linear-gradient(180deg, #1aa760 0%, #0b7b46 100%);
  box-shadow: none;
}
