/* Activity Roster Styles */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Screens */
.screen {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  min-height: 400px;
}

/* Loading Spinner */
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 40px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#loading-screen, #auth-screen {
  text-align: center;
}

#loading-screen p {
  color: #666;
  font-size: 16px;
  margin-top: 20px;
}

/* Auth Screen */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: #667eea;
  color: white;
  margin-top: 20px;
}

.btn-primary:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #e0e0e0;
  color: #333;
}

.btn-secondary:hover {
  background: #d0d0d0;
}

.google-icon {
  width: 20px;
  height: 20px;
}

.subtitle {
  color: #666;
  margin-top: 10px;
  margin-bottom: 20px;
}

/* Error/Warning Card */
.warning-card {
  text-align: center;
  padding: 20px;
}

.warning-card h1 {
  color: #d32f2f;
  margin-bottom: 20px;
}

.warning-card p {
  color: #666;
  margin-bottom: 30px;
}

/* Activity Header */
#activity-header {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

#activity-header h1 {
  color: #333;
  font-size: 28px;
  margin-bottom: 10px;
}

#activity-header p {
  color: #666;
  margin: 5px 0;
}

/* Content */
.content {
  padding: 20px 0;
}

/* Stats Summary */
.stats-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-value {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Roster Sections */
.roster-section {
  margin-bottom: 40px;
}

.roster-section h2 {
  color: #333;
  font-size: 22px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #667eea;
}

.roster-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.roster-item {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.roster-item:hover {
  background: #f0f0f0;
  transform: translateX(5px);
}

.roster-name {
  font-weight: 600;
  color: #333;
}

.waitlist-badge {
  background: #ff9800;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.empty-message {
  color: #999;
  font-style: italic;
  text-align: center;
  padding: 20px;
}

/* Messages */
.error-message, .success-message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  max-width: 400px;
}

.error-message {
  background: #d32f2f;
}

.success-message {
  background: #388e3c;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .screen {
    padding: 20px;
  }

  #activity-header h1 {
    font-size: 22px;
  }

  .stats-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-value {
    font-size: 28px;
  }

  .roster-list {
    grid-template-columns: 1fr;
  }
}
