* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  background: #1a1a2e;
  color: #e0e0e0;
  min-height: 100vh;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #16213e;
  border-bottom: 1px solid #0f3460;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #533483;
  display: flex;
  align-items: center;
  gap: 6px;
}

#customServerUrl {
  background: #0f3460;
  color: #e0e0e0;
  border: 1px solid #533483;
  border-radius: 4px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 12px;
  width: 250px;
}

h1 {
  font-size: 16px;
  font-weight: 600;
  color: #e94560;
}

#providerSelect {
  background: #0f3460;
  color: #e0e0e0;
  border: 1px solid #533483;
  border-radius: 4px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

#balance {
  font-size: 18px;
  font-weight: 700;
  color: #4ecca3;
}

main {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.panel {
  background: #16213e;
  border: 1px solid #0f3460;
  border-radius: 8px;
  padding: 16px;
}

.panel h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #533483;
  margin-bottom: 12px;
}

.panel h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #533483;
  margin: 16px 0 8px;
}

pre {
  font-family: inherit;
  font-size: 12px;
  line-height: 1.6;
  color: #a0a0c0;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Actions panel */
.action-buttons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

button {
  background: #0f3460;
  color: #e0e0e0;
  border: 1px solid #533483;
  border-radius: 4px;
  padding: 8px 20px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}

button:hover:not(:disabled) {
  background: #533483;
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

button#btnPlaceBet {
  background: #e94560;
  border-color: #e94560;
}

button#btnPlaceBet:hover:not(:disabled) {
  background: #c73650;
}

button#btnStep {
  background: #4ecca3;
  border-color: #4ecca3;
  color: #1a1a2e;
}

button#btnStep:hover:not(:disabled) {
  background: #3db88f;
}

/* Auth config inputs */
.auth-config {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.auth-config label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #533483;
  flex: 1;
}

.auth-config input {
  display: block;
  width: 100%;
  margin-top: 4px;
  background: #0f3460;
  color: #e0e0e0;
  border: 1px solid #533483;
  border-radius: 4px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 12px;
}

/* GP config inputs */
.gp-config {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.gp-config label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #533483;
}

.gp-config input {
  display: block;
  width: 100%;
  margin-top: 4px;
  background: #0f3460;
  color: #e0e0e0;
  border: 1px solid #533483;
  border-radius: 4px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 12px;
}

/* Bet selector empty-state placeholder (GP before the user supplies bet types) */
.bet-selector-placeholder {
  padding: 12px;
  border: 1px dashed #533483;
  border-radius: 4px;
  color: #a8a8d8;
  font-size: 12px;
  font-style: italic;
  background: rgba(15, 52, 96, 0.3);
}

/* Custom bet type input (required for GP) */
.custom-bet-type {
  display: block;
  margin: 12px 0;
}

.custom-bet-type span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #533483;
  margin-bottom: 4px;
}

.custom-bet-type input {
  display: block;
  width: 100%;
  background: #0f3460;
  color: #e0e0e0;
  border: 1px solid #533483;
  border-radius: 4px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 12px;
}

.hidden { display: none !important; }

/* Log panel */
.log-panel {
  max-height: 400px;
  overflow-y: auto;
}

.log-entry {
  padding: 8px 0;
  border-bottom: 1px solid #0f3460;
}

.log-entry:last-child {
  border-bottom: none;
}

.log-header {
  font-size: 12px;
  font-weight: 600;
  color: #4ecca3;
}

.log-header .log-time {
  color: #533483;
  font-weight: 400;
  margin-left: 8px;
}

.log-header .log-error {
  color: #e94560;
}

.log-header .log-console-level {
  color: #666;
}

.log-console {
  opacity: 0.7;
}

.log-console .log-body {
  font-size: 10px;
}

.log-body {
  font-size: 11px;
  color: #a0a0c0;
  margin-top: 4px;
  max-height: 200px;
  overflow-y: auto;
}

/* Bet selector overrides for dark theme */
#betSelectorContainer {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .panels {
    grid-template-columns: 1fr;
  }
}
