/* Base */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #0f172a;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%); 
  
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.container {
  width: 100%;
  max-width: 800px;
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;

  
  text-align: center; /* Centers the footer's *content* horizontally */
  width: 100%; /* Ensures the footer spans the full width */

}

.title {
  margin: 0;
  font-weight: 600;
  color: #0b1220;
  font-size: 20px;
}

.inputs {
  display: flex;
  gap: 12px;
  align-items: center;
}

.inputs label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: #334155;
}

.inputs input {
  width: 100px;
  padding: 8px 10px;
  margin-top: 8px;
  border-radius: 8px;
  border: 1px solid #e6eefc;
  background: #fff;
  font-size: 16px;
}

.display {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdff, #f7fbff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.time-row {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
  }

  .time-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box; /* ensures padding doesn't cause overflow */
    flex: 1 1 auto; 
    min-width: 0;           /* prevents flex overflow on some browsers */

    font-weight: 700;
    font-size: 120px;
    color: #0b1220;
    letter-spacing: 1px;
    text-align: center;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    
  }
  
  .time-input:focus {
    outline: 2px solid rgba(11,110,246,0.12);
    border-color: rgba(11,110,246,0.18);
  }



.display { display:flex; align-items:center; justify-content:center; }

.controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.btn {
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #e6eefc;
  background: #fff;
  color: #0b1220;
  font-weight: 700;
  cursor: pointer;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: #0b6ef6;
  color: #fff;
  border: none;
}

.meta {
  color: #475569;
  font-size: 13px;
}

/* Paused state: light orange background with slightly darker text */
body.paused {
  background: linear-gradient(180deg, #fff8f0 0%, #fff1e0 100%);
  color: #6b3500;
}

/* Make sure key elements inherit the darker text color in paused state */
body.paused .title,
body.paused .time-input,
body.paused .btn,
body.paused .meta {
  color: #6b3500;
}


/* Footer */



.site-footer {
  position: absolute;
  bottom: 0;
  margin-top: auto;
  width: 100%;
  border-top: 1px solid rgba(2,6,23,0.06);
  height: 2.5rem;
  text-align: center;
  background-color: #cacaca77;
  color: rgb(83, 71, 71);
}

.footer-nav {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #475569;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.footer-nav a:hover,
.footer-nav a:focus {
  text-decoration: underline;
}

/* Make footer match paused state color when paused */
body.paused .site-footer,
body.paused .footer-nav a {
  color: #6b3500;
}

@media (max-width: 640px) {
  .time-input { font-size: 28px; }
  
  .inputs {
    flex-direction: column;
    align-items: stretch;
  }

  .inputs input {
    width: 100%;
  }
}