#event-timer-container {
  background-color: #0f172a;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 30px 20px;
  border-radius: 16px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  text-align: center;
  box-sizing: border-box;
}

.timer-display-box {
  background-color: #1e293b;
  border: 4px solid #334155;
  border-radius: 16px;
  padding: 30px 10px;
  margin-bottom: 25px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.timer-display-box.running {
  border-color: #22c55e;
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.2);
}

.timer-display-box.finished {
  border-color: #ef4444;
  background-color: #450a0a;
  animation: pulse-red 1s infinite alternate;
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.4); }
  100% { box-shadow: 0 0 50px rgba(239, 68, 68, 0.9); }
}

.timer-status {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.timer-digits {
  /* Scaled down slightly so 8 characters (00:00:00) fit cleanly */
  font-size: clamp(2.5rem, 9vw, 7.5rem);
  font-weight: 900;
  line-height: 1;
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 1px;
  white-space: nowrap;
}

.custom-inputs, .action-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.action-btn {
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.2s ease;
}

.action-btn:active {
  transform: scale(0.96);
}

.set-btn { background-color: #475569; color: #ffffff; }
.set-btn:hover { background-color: #64748b; }

.start-btn { background-color: #22c55e; color: #ffffff; font-size: 1.25rem; padding: 14px 28px; }
.start-btn:hover { background-color: #16a34a; }
.start-btn.pause { background-color: #eab308; color: #0f172a; }
.start-btn.pause:hover { background-color: #ca8a04; }

.reset-btn { background-color: #64748b; color: #ffffff; }
.reset-btn:hover { background-color: #475569; }

.fullscreen-btn { background-color: #3b82f6; color: #ffffff; }
.fullscreen-btn:hover { background-color: #2563eb; }

.custom-inputs label {
  font-size: 0.95rem;
  color: #94a3b8;
}

.custom-inputs input {
  width: 60px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #475569;
  background-color: #1e293b;
  color: #ffffff;
  font-size: 1rem;
  text-align: center;
}

/* Fullscreen adjustments */
#event-timer-container:fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
}

#event-timer-container:fullscreen .timer-display-box {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#event-timer-container:fullscreen .timer-digits {
  font-size: 18vh;
}