/* Enhanced flexbox styles for teamStats container and children */
.teamStats {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2px;
  
  background-color: #f9fafb;
  
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  max-width: 400px;
}
.teamStats > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 130px;
  background-color: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  font-size: 0.95em;
  color: #333;
}
.teamStats .label {
  margin-top: 0;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
}
.teamStatsDisplay div{
  flex: 1;
  justify-content: center;
  text-align: center;
}

.foul-limit-reached {
  background-color: red !important;
  color: white;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

/* Custom modal styles for player foul alert */
.custom-modal {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-modal-content {
  background-color: #fff;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  max-width: 400px;
  width: 90%;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.1em;
  color: #333;
}

#playerFoulModalCloseBtn {
  margin-top: 15px;
  padding: 8px 20px;
  background-color: #007bff;
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#playerFoulModalCloseBtn:hover {
  background-color: #0056b3;
}
