/* ------------------------------
   GLOBAL PAGE STYLES
--------------------------------*/
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top left, #5f6161, #35ff02);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333;
}

/* ------------------------------
   HEADER
--------------------------------*/
header {
  text-align: center;
  width: 100%;
  padding: 1.8rem 0;
  background: linear-gradient(90deg, #2e7d32, #43a047);
  color: white;
  box-shadow: 0 3px 12px rgba(0,0,0,0.2);
}

header h1 {
  font-size: 2rem;
  margin: 0;
}

header p {
  margin: 0.3rem 0 0;
  font-size: 1rem;
  opacity: 0.9;
}

/* ------------------------------
   MAIN CARD WRAPPER
--------------------------------*/
.card {
  width: 94%;
  max-width: 80%;
  margin: 2rem auto;
  padding: 1.8rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ------------------------------
   SECTION HEADERS
--------------------------------*/
section h2 {
  font-size: 1.5rem;
  color: #2e7d32;
  margin-bottom: 0.6rem;
  position: relative;
}

section h2::after {
  content: "";
  display: block;
  width: 55px;
  height: 4px;
  background: gold;
  border-radius: 2px;
  margin-top: 4px;
}

/* ------------------------------
   EVENT DETAIL INPUTS
--------------------------------*/
.event-info input {
  width: 100%;
  padding: 0.8rem;
  margin: 0.6rem 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background: #f7f7f7;
}
#eventDate
{
  width: fit-content;
}

.event-info input:focus {
  border-color: #2e7d32;
  outline: none;
  box-shadow: 0 0 4px rgba(46,125,50,0.4);
}

/* ------------------------------
   SCORECARD AREA (reuse your design)
--------------------------------*/
.scorecard-container {
  margin-top: 1.5rem;
  overflow-x: auto;
}

/* ------------------------------
   SAVE BUTTON
--------------------------------*/
.save-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.2rem;
}

.primary-btn {
  padding: 0.9rem 1.6rem;
  background: #2e7d32;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}

.primary-btn:hover {
  background: #1b5e20;
  transform: scale(1.04);
}

/* ------------------------------
   EVENT RESULTS / LEADERBOARD
--------------------------------*/
#eventResults {
  margin-top: 2rem;
}

#eventLeaderboard {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

#eventLeaderboard li {
  background: #e8f5e9;
  padding: 0.9rem;
  border-radius: 10px;
  margin-bottom: 0.6rem;
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  color: #2e7d32;
  border-left: 6px solid gold;
}

/* ------------------------------
   FOOTER
--------------------------------*/
footer {
  text-align: center;
  width: 90%;
  padding: 1rem;
  background: #2e7d32;
  color: white;
  margin-top: auto;
}

/* -----*
