:root {
  --primary-color: #0a0a0a;
  --secondary-color: #1f1f1f;
  --accent-color: #9147ff;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--primary-color);
  color: var(--text-primary);
  text-align: center;
}

.tab-container {
  display: flex;
  background-color: var(--secondary-color);
  padding: 15px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.center-tabs {
  display: flex;
  gap: 10px;
}

.tab {
  color: var(--text-secondary);
  padding: 12px 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 5px;
  margin: 0 5px;
}

.tab.active {
  background-color: var(--accent-color);
  color: white;
}

.tab.action-tab {
  background-color: var(--accent-color);
  color: white;
  border: none;
  font-size: 1em;
}

.tab.action-tab:hover {
  background-color: #772ce8;
  transform: scale(1.05);
}

.content {
  display: none;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.content h2 {
  text-align: center;
  margin-bottom: 20px;
}

.content.active {
  display: block;
}

.player-box {
  background-color: var(--secondary-color);
  border-radius: 8px;
  padding: 20px;
  margin: 0 auto 15px auto;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  text-align: center;
  max-width: 800px;
  position: relative;
}

.player-box:hover {
  transform: translateY(-2px);
}

.remove-player-btn {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background-color: #ff4444;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.remove-player-btn:hover {
  background-color: #ff0000;
  font-size: 1.8rem;
}

#players .player-box .player-info {
  padding-right: 40px;
}

#monthlyScores .player-box {
  padding: 15px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 600px;
}

#monthlyScores .player-box .player-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#monthlyScores .player-box h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  width: 100%;
  text-align: center;
}

#monthlyScores .scores-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
}

#monthlyScores .score-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

#monthlyScores .score-label {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

#monthlyScores .score-section span {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
}

#monthlyScores .score-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 3px;
}

.increment, .decrement {
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 4px;
  width: 35px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 3px;
  transition: all 0.3s ease;
  font-weight: bold;
  font-size: 1.1rem;
}

.increment:hover, .decrement:hover {
  background-color: #772ce8;
  transform: scale(1.05);
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  background-color: var(--secondary-color);
  margin: 5% auto;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.close-modal {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}

.close-modal:hover {
  background-color: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

.modal h2 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

#addPlayerForm {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#playerName {
  background-color: var(--primary-color);
  border: 1px solid var(--text-secondary);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 1rem;
  width: 80%;
  transition: all 0.2s ease;
  margin-bottom: 1rem;
  text-align: center;
}

#playerName::placeholder {
  text-align: center;
  color: var(--text-secondary);
}

#playerName:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(145, 71, 255, 0.2);
}

#addPlayerForm .btn {
  border-radius: 8px;
  width: 100%;
  padding: 12px 24px;
  font-size: 1rem;
  background-color: var(--accent-color);
}

#addPlayerForm .btn:hover {
  background-color: #772ce8;
  transform: translateY(-1px);
}

.primary-btn {
  background-color: var(--accent-color);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.primary-btn:hover {
  background-color: #772ce8;
  transform: translateY(-1px);
}

.btn {
  background-color: var(--accent-color);
  color: white;
  padding: 8px 15px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn:hover {
  background-color: #772ce8;
  transform: scale(1.05);
}

.stats-display {
  margin: 25px auto 0 auto;
  padding: 20px;
  background-color: var(--secondary-color);
  border-radius: 8px;
  text-align: center;
  max-width: 600px;
}

.stats-display p {
  margin: 10px 0;
  font-size: 1.1em;
  color: var(--accent-color);
}

.select {
  display: flex;
  gap: 10px;
  margin: 15px auto;
  justify-content: center;
  max-width: 400px;
}

select {
  background-color: var(--primary-color);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 4px;
}

#loginModal .modal-content {
  text-align: center;
  max-width: 400px;
}

#loginModal input[type="password"] {
  width: 80%;
  margin: 15px 0;
  padding: 12px;
  font-size: 1.1em;
}

input[type="number"] {
  background-color: var(--primary-color);
  color: var(--text-primary);
  border: 1px solid var(--text-secondary);
  padding: 8px;
  width: 70px;
  margin: 0 5px;
  border-radius: 4px;
  text-align: center;
  font-size: 1rem;
  transition: all 0.2s ease;
}

input[type="number"]:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(145, 71, 255, 0.2);
}

.controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 15px auto;
  max-width: 600px;
}

#playerList {
  max-width: 800px;
  margin: 0 auto;
}

#monthlyScoresList {
  max-width: 800px;
  margin: 0 auto;
}

.top-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 20px;
  position: relative;
}

.control-box {
  background-color: var(--secondary-color);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  min-width: 150px;
  text-align: center;
}

.control-box.left {
  margin-right: auto;
}

.control-box.right {
  margin-left: auto;
}

.top-controls h2 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
}