:root {
  --green: rgb(0,148,49);
  --light: #ffffff;
  --gray: #f2f2f2;
  --border: #ddd;
  --dark: #111;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, var(--light), #1c1c1c);
  color: black;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 100vh;
}

.container {
  width: 95%;
  max-width: 1000px;
  padding: 20px;
}

h2 {
  text-align: left;
  margin-bottom: 15px;
  color: var(--green);
}

#scoreForm {
  margin-bottom: 20px;
}

.etiq {
  font-size: 12px;
}

.sel{
  width: 200px;
}

select{
  padding:1px;
  font-size: 12px;
}

.players-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 50px;
  gap: 8px;
}

.row-scorecard {
  display: grid;
  grid-template-columns: 100px 2fr 2fr;
  gap: 8px;
}

.row input {
  padding: 6px;
}

.header {
  font-weight: bold;
}

#scorecard {
  background: var(--light);
  padding: 15px;
  border-radius: 12px;
  overflow-x: auto;
  box-shadow: 0 5px 25px rgba(0,0,0,0.4);
  text-align: center;
  color: black;
}

/* GRID */
.score-grid {
  display: grid;
  grid-template-columns: minmax(120px, auto) repeat(21, 1fr);
  text-align: center;
  align-items: center;
}

/* LABELS */
.label {
  font-size: 12px;
  background: var(--green);
  color: white;
  text-align: left;
  padding: 8px;
  white-space: nowrap;
}

/* CELDAS */

/* CELDA BASE */
.cell {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 14px;
  box-sizing: border-box;
  color: #4d4d4d;
}

.cell_t {
  padding: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: bold;
  background: #F0F0F0;
  color: #000435;
}

.hole_num {
  padding: 8px;
  border: 1px solid var(--border);
  font-size: 12px;
  background: #000435;
  color: white;
}

.hole_num_t {
  padding: 8px;
  border: 1px solid var(--border);
  font-size: 12px;
  background: black;
  color: white;
}


/* PAR */
.par {
  padding: 8px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: bold;
  background: #F0F0F0;
}


/* INPUTS */
.score-input {
  width: 100%;
  border: none;
  text-align: center;
  font-size: 14px;
  background: transparent;
}

.score-input:focus {
  outline: none;
  background: #e9f7ef;
}

/* HOVER SUAVE */
.cell:hover {
  background: #f9f9f9;
}

/* ASIGNACIÓN DE MARCAS DE SCORE A LAS CELDAS

/* BIRDIE → círculo rojo elegante */

.birdie{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.birdie::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid #d32f2f;
  border-radius: 50%;
  pointer-events: none;
}

/* EAGLE → doble círculo verde (más proporcionado) */
.eagle {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eagle::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 4px double #d32f2f;
  border-radius: 50%;
  pointer-events: none;
}

/* BOGEY → cuadrado morado */
.bogey {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bogey::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid blue;
  border-radius: 2px;
  pointer-events: none;
}

/* DOBLE BOGEY → doble cuadrado azul */
.double-bogey {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.double-bogey::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 4px double #000435;
  border-radius: 2px;
  pointer-events: none;
}

/* TRIPLE BOGEY → doble cuadrado amarillo (mejor contraste) */
.triple-bogey {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.triple-bogey::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 4px double orange;
  border-radius: 2px;
  pointer-events: none;
}
