/* Coko Bet Tracker Styles */

/* Login Page */
.login-page {
  max-width: 500px;
  margin: 3rem auto;
  text-align: center;
}

.login-section {
  margin-top: 2rem;
}

/* Guess Page */
.guess-page {
  max-width: 600px;
  margin: 3rem auto;
}

.guess-section {
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid var(--border-color, #ddd);
  border-radius: 8px;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color, #007bff);
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  background-color: var(--primary-color, #007bff);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: var(--primary-hover, #0056b3);
}

/* Counter Page */
.counter-page {
  max-width: 1200px;
  margin: 2rem auto;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.counter-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.counter-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.counter-label {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary, #333);
}

.counter-display {
  margin: 2rem 0;
}

.count {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary-color, #007bff);
  display: block;
}

.counter-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-increment,
.btn-decrement {
  width: 60px;
  height: 60px;
  font-size: 2rem;
  font-weight: 700;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  color: white;
}

.btn-increment {
  background-color: #28a745;
}

.btn-increment:hover {
  background-color: #218838;
  transform: scale(1.1);
}

.btn-decrement {
  background-color: #dc3545;
}

.btn-decrement:hover {
  background-color: #c82333;
  transform: scale(1.1);
}

/* Summary Page */
.summary-page {
  max-width: 1400px;
  margin: 2rem auto;
}

.summary-section {
  margin-top: 2rem;
  overflow-x: auto;
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.summary-table th {
  background-color: var(--primary-color, #007bff);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.summary-table td {
  padding: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.summary-table tr:hover {
  background-color: #f8f9fa;
}

.summary-table tr.winner {
  background-color: #fff3cd;
  font-weight: 600;
}

.summary-table tr.winner:hover {
  background-color: #ffe69c;
}

.username {
  font-weight: 600;
}

.total-error {
  font-weight: 700;
  color: var(--primary-color, #007bff);
}

/* Error Messages */
.error-container {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f8d7da;
  border: 1px solid #f5c2c7;
  border-radius: 8px;
}

.error-message {
  color: #842029;
  margin: 0;
}

/* Utilities */
.subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary, #666);
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .counter-page {
    margin: 1rem auto;
    padding: 0 1rem;
  }

  .counter-page h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .counter-card {
    padding: 1rem;
    border-radius: 8px;
  }

  .counter-label {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .counter-display {
    margin: 1rem 0;
  }

  .count {
    font-size: 2.5rem;
  }

  .counter-actions {
    gap: 0.5rem;
  }

  .btn-increment,
  .btn-decrement {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .summary-table {
    font-size: 0.9rem;
  }

  .summary-table th,
  .summary-table td {
    padding: 0.5rem;
  }
}
