/* ----------------------------------------------------------
   CHRONO STYLES
---------------------------------------------------------- */

/* FORCE BLUE BACKGROUND */
body {
  background-color: #0099cc; 
}

.page-main {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  /* Top padding to space it from header */
  padding: 60px 16px 20px; 
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ----------------------------------------------------------
   TOOL CARD
---------------------------------------------------------- */
.tool-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 28px 32px;
}

/* LEFT ALIGNED HEADER (Matched to Checksy/others) */
.tool-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  /* No alignment set = defaults to left */
}

.tool-subtitle {
  font-size: 0.96rem;
  color: #5b6a74; /* Standard muted text color */
  line-height: 1.5;
  margin: 0;
  max-width: 90%;
}

/* ----------------------------------------------------------
   TIMER DISPLAY
---------------------------------------------------------- */
.chrono-display {
  background: #f4f8fb;
  border-radius: 16px;
  padding: 24px 0;
  margin-bottom: 24px;
  border: 2px solid #e1e8ed;
  
  font-family: "Courier New", Courier, monospace;
  font-size: 4rem;
  font-weight: 700;
  color: #333;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-align: center; /* Numbers still look best centered in their box */
}

/* ----------------------------------------------------------
   BUTTONS
---------------------------------------------------------- */
.btn-main {
  width: 100%;
  padding: 16px;
  font-size: 1.5rem;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-main:active {
  transform: scale(0.98);
}

/* State Colors */
.btn-play {
  background-color: #2ecc71; 
  box-shadow: 0 8px 20px rgba(46, 204, 113, 0.3);
}
.btn-play:hover {
  background-color: #27ae60;
}

.btn-stop {
  background-color: #ff506e; 
  box-shadow: 0 8px 20px rgba(255, 80, 110, 0.3);
}
.btn-stop:hover {
  background-color: #e63956;
}

.btn-reset {
  background-color: #3498db; 
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}
.btn-reset:hover {
  background-color: #2980b9;
}

/* Mobile Tweak */
@media (max-width: 500px) {
  .chrono-display {
    font-size: 3rem;
  }
}