/* ==========================================================
   STOPWATCH.CSS – Stiluri exclusive pentru secțiunea Stopwatch
   ========================================================== */

/* ---------- Container general ---------- */
#section-stopwatch .tool-content-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Display-ul stopwatch ---------- */
.stopwatch-display {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  line-height: 1;
  letter-spacing: 0.03em;
  font-family: 'Digital-7 Mono','Digital-7','Fira Mono', ui-monospace, monospace;
  font-size: var(--font-xlarge);
  font-weight: 700;
  color: var(--accent3);
  margin-bottom: 0.7em;
  text-align: center;
  user-select: none;
  letter-spacing: 0.05em;
}

.stopwatch-display .milliseconds {
  font-size: 0.75em;
  opacity: 0.8;
}

/* ---------- Controale (Start / Lap / Reset) ---------- */
.stopwatch-controls {
  display: flex;
  gap: 1.2em;
  align-items: center;
  margin-bottom: 1.2em;
  flex-wrap: wrap;
  justify-content: center;
}

/* Butoane Stopwatch cu dimensiuni uniforme */
#stopwatchStartBtn,
#stopwatchLapBtn,
#stopwatchResetBtn {
  padding: 0.6em 1.7em;
  font-size: 1.1rem;
  width: 140px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

/* Start → gradient violet↔albastru */
#stopwatchStartBtn {
  background: linear-gradient(90deg, var(--accent1), var(--accent3));
  border: none;
  color: #fff;
}

/* Lap → outline verde-turcoaz */
#stopwatchLapBtn {
  background: transparent;
  border: 2px solid var(--accent2);
  color: var(--accent2);
}

#stopwatchLapBtn:hover {
  background: var(--accent2);
  color: white;
}

/* Reset → roșu */
#stopwatchResetBtn {
  background: #ff4d4d;
  border: none;
  color: #fff;
}

#stopwatchResetBtn:hover {
  background: #ff3333;
}

/* Stări butoane */
.stopwatch-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Lista de ture (laps) ---------- */
.stopwatch-laps {
  margin-top: 1em;
  color: var(--accent2);
  font-size: 1.1rem;
  width: 100%;
  max-width: 400px;
  max-height: 40vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  padding-right: 0.4em; /* spațiu pentru scrollbar */
}

.stopwatch-laps li {
  background: var(--bg);
  border-left: 3px solid var(--accent2);
  border-radius: var(--radius);
  padding: 0.6em 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.stopwatch-laps li:hover {
  background: rgba(46, 230, 214, 0.1);
}

.stopwatch-laps .lap-number {
  font-weight: 600;
}

.stopwatch-laps .lap-time {
  font-family: 'Digital-7', monospace;
  letter-spacing: 0.05em;
}

/* ---------- TEMA LIGHT – ajustări ---------- */
body.light-mode .stopwatch-laps li {
  background: var(--surface-100);
  border-color: var(--accent2);
}

body.light-mode .stopwatch-display {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--accent3);
}

/* ---------- Responsive ---------- */

/* Tablet */
@media (max-width: 900px) {
  .stopwatch-display {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  line-height: 1;
  letter-spacing: 0.03em;
    font-size: 3.5rem;
  }

  .stopwatch-laps {
    max-width: 90%;
  }
}

/* Telefon */
@media (max-width: 600px) {
  .stopwatch-display {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  line-height: 1;
  letter-spacing: 0.03em;
    font-size: 2.8rem;
  }

  .stopwatch-controls {
    gap: 0.8em;
    flex-direction: column;
    width: 100%;
  }

  .stopwatch-controls .main-btn {
    width: 100%;
    max-width: 240px;
  }

  .stopwatch-laps {
    max-width: 100%;
    font-size: 1rem;
    max-height: 45vh;
  }

  .stopwatch-laps li {
    padding: 0.5em 0.8em;
  }
}

/* Telefon mic */
@media (max-width: 480px) {
  .stopwatch-display {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  line-height: 1;
  letter-spacing: 0.03em;
    font-size: 2.2rem;
  }

  .stopwatch-laps {
    font-size: 0.95rem;
  }

  /* Ajustare butoane pentru telefoane */
  #stopwatchStartBtn,
  #stopwatchLapBtn,
  #stopwatchResetBtn {
    padding: 0.4em 0.8em;
    font-size: 0.9rem;
    width: 100px;
  }
}