/* Teams Section Styles */

/* Teams Section Styles - Using existing color variables from variables.css */

/* Teams Card Container */
.teams-card {
  background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(13, 89, 0, 0.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.teams-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Participant Type Toggle Buttons */
.participant-type-container {
  margin-bottom: 2rem;
}

.participant-type-label {
  display: block;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.participant-type-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  max-width: 100%;
}
@media (max-width: 300px){
  .participant-type-buttons {
    grid-template-columns: repeat(1, 1fr);
  }
}


.participant-type-btn {
  flex: 1;
  min-width: 120px;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--gold);
  border-radius: 8px;
  background: var(--white);
  color: var(--green);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.participant-type-btn.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.participant-type-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Team Names Table */
.team-names-container {
  margin-bottom: 2rem;
}

.team-names-label {
  display: block;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

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

.team-names-table th {
  background: linear-gradient(135deg, var(--green) 0%, #0a6b00 100%);
  color: var(--white);
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-names-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(13, 89, 0, 0.08);
  vertical-align: middle;
}

.team-names-table tr:last-child td {
  border-bottom: none;
}

.team-number {
  font-weight: 600;
  color: var(--green);
  min-width: 2rem;
}

.team-name-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: var(--white);
}

.team-name-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(13, 89, 0, 0.2);
}

/* Add/Delete Teams Section */

.teams-action-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 200px;
}

.teams-action-label {
  font-weight: 600;
  color: var(--green);
  font-size: 0.95rem;
  white-space: nowrap;
}

.teams-action-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: var(--white);
  min-width: 80px;
}

.teams-action-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(13, 89, 0, 0.2);
}

.teams-action-btn.add {
  background: var(--green);
  color: var(--white);
}

.teams-action-btn.add:hover {
  background: #0a6b00;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(13, 89, 0, 0.3);
}

.teams-action-btn.delete {
  background: var(--red);
  color: var(--white);
}

.teams-action-btn.delete:hover {
  background: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.teams-info-icon {
  color: var(--grey);
  cursor: help;
  font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .teams-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  

  
  .participant-type-btn {
    min-width: unset;
  }
  
  .team-names-table {
    font-size: 0.85rem;
  }
  
  .team-names-table th,
  .team-names-table td {
    padding: 0.5rem 0.75rem;
  }
  
  .teams-actions-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .teams-action-group {
    flex-direction: column;
    align-items: stretch;
    min-width: unset;
  }
  
  .teams-action-label {
    text-align: center;
  }
  
  .teams-action-input {
    min-width: unset;
  }
}

@media (max-width: 480px) {
  .teams-card {
    padding: 1rem;
  }
  
  .team-names-table {
    font-size: 0.8rem;
  }
  
  .team-names-table th,
  .team-names-table td {
    padding: 0.4rem 0.5rem;
  }
}

/* Teams Numeric Input */
.teams-numeric-input {
  width: min-content;
  margin-right: 1rem;
}

.teams-actions-vertical {
  margin-top: 1rem;
}

.teams-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid rgba(13, 89, 0, 0.1);
  border-radius: 8px;
}

.teams-section h4 {
  color: var(--green);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--gold);
}

.teams-inputs {
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: center;
}

.teams-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}