@charset "UTF-8";

.timer-page {
  padding: 40px 16px 70px;
  background: #f7f8fb;
  min-height: calc(100vh - 120px);
}

.timer-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.timer-card {
  background: #ffffff;
  border: 1px solid #ebedf3;
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  padding: 34px 28px;
}

.timer-header {
  text-align: center;
  margin-bottom: 28px;
}

.timer-subtitle {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #7c8aa5;
}

.timer-title {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  color: #1f2937;
}

.timer-desc {
  margin: 10px 0 0;
  font-size: 15px;
  color: #6b7280;
}

.timer-display-section {
  background: linear-gradient(180deg, #f8faff 0%, #eef3ff 100%);
  border: 1px solid #dde7ff;
  border-radius: 22px;
  padding: 30px 20px;
  text-align: center;
  margin-bottom: 24px;
}

.timer-display {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1;
  color: #111827;
  font-variant-numeric: tabular-nums;
}

.timer-status {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #5b6b88;
}

.timer-input-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.time-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.time-input-group label {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

.time-input-group input {
  height: 52px;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  padding: 0 14px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  color: #111827;
  background: #fff;
  outline: none;
  transition: all 0.2s ease;
}

.time-input-group input:focus {
  border-color: #7aa2ff;
  box-shadow: 0 0 0 4px rgba(122, 162, 255, 0.15);
}

.timer-quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.quick-btn {
  border: 1px solid #d9e2f2;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-btn:hover {
  background: #f3f7ff;
  border-color: #b8cdfd;
  color: #2957c8;
}

.timer-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.timer-btn {
  min-width: 120px;
  height: 50px;
  border: none;
  border-radius: 14px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  background: #eef2f7;
  color: #334155;
  transition: all 0.2s ease;
}

.timer-btn:hover {
  transform: translateY(-1px);
}

.timer-btn.primary {
  background: linear-gradient(135deg, #4f8cff 0%, #6d5dfc 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(79, 140, 255, 0.25);
}

.timer-btn.danger {
  background: #fff1f2;
  color: #e11d48;
}

.timer-finished .timer-display-section {
  border-color: #fecdd3;
  background: linear-gradient(180deg, #fff7f8 0%, #ffe9ed 100%);
}

.timer-finished .timer-display {
  color: #be123c;
}

.timer-finished .timer-status {
  color: #be123c;
}

@media (max-width: 768px) {
  .timer-card {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .timer-title {
    font-size: 28px;
  }

  .timer-display {
    font-size: 46px;
  }

  .timer-input-section {
    grid-template-columns: 1fr;
  }

  .timer-btn {
    width: 100%;
  }
}