* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  background-color: #f4f7f6;
}

.main-header {
  background: #2c3e50;
  padding: 1rem;
  color: white;
}

.nav-link {
  color: white;
  margin-right: 1rem;
  text-decoration: none;
}

.nav-link:hover {
  text-decoration: underline;
}

.container {
  padding: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Dashboard Styles */
.dashboard {
  padding: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  color: white;
}

.stat-card.registration {
  background: #2980b9;
}

.stat-card.resistance {
  background: #c0392b;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0.5rem 0;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  opacity: 0.8;
}

.tug-of-war-container {
  margin-bottom: 2rem;
}

.progress-bar {
  height: 40px;
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  background: #eee;
  margin-bottom: 0.5rem;
}

.registration-fill {
  background: #2980b9;
  transition: width 0.5s ease-out;
}

.resistance-fill {
  background: #c0392b;
  transition: width 0.5s ease-out;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  color: #7f8c8d;
}

.recent-games ul {
  list-style: none;
  padding: 0;
}

.recent-games li {
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

/* Entry Form Styles */
.entry-form {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
}

.field {
  margin-bottom: 1.25rem;
}

.field-label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #34495e;
}

.input-text, .input-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.radio-group {
  display: flex;
  gap: 1.5rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: normal;
}

/* Segmented Toggle Styles */
.segmented-toggle {
  display: flex;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.segmented-toggle input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.segmented-toggle label {
  flex: 1;
  padding: 1rem;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  background: #f8f9fa;
  transition: all 0.2s;
  color: #7f8c8d;
}

.segmented-toggle label:not(:last-child) {
  border-right: 1px solid #ddd;
}

/* Side Specific Toggles */
#side-registration:checked + label {
  background: #2980b9;
  color: white;
}

#side-resistance:checked + label {
  background: #c0392b;
  color: white;
}

/* Outcome Specific Toggles */
#result-win:checked + label {
  background: #2ecc71; /* Success Green for Win */
  color: white;
}

#result-loss:checked + label {
  background: #34495e; /* Neutral Dark for Loss */
  color: white;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #c0392b;
}

.submit-btn:disabled {
  background: #95a5a6;
}
