* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: #fafafa;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  background: white;
  border-radius: 30px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  max-width: 500px;
  width: 100%;
}

h1 {
  text-align: center;
  color: #2c2c2c;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.time-selection {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 40px;
}

.time-card {
  background: #f8f8f8;
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 25px 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c2c2c;
}

.time-card:hover {
  background: #f0f0f0;
  transform: translateY(-3px);
}

.time-card.active {
  background: #e8e5ff;
  border-color: #8b7fd9;
  color: #8b7fd9;
}

.time-card span {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: #8e8e93;
  margin-top: 5px;
}

.timer-container {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 40px;
}

.timer-circle {
  position: relative;
  width: 100%;
  height: 100%;
}

.timer-svg {
  transform: rotate(-90deg);
}

.timer-bg {
  fill: none;
  stroke: #f0f0f0;
  stroke-width: 8;
}

.timer-progress {
  fill: none;
  stroke: #8b7fd9;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}

.timer-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.timer-time {
  font-size: 3.5rem;
  font-weight: 300;
  color: #2c2c2c;
  letter-spacing: 2px;
}

.timer-label {
  font-size: 0.9rem;
  color: #8e8e93;
  margin-top: 5px;
  font-style: italic;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.control-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: none;
  background: #2c2c2c;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn:hover {
  transform: scale(1.1);
  background: #3c3c3c;
}

.control-btn:active {
  transform: scale(0.95);
}

.control-btn.primary {
  background: #8b7fd9;
  width: 80px;
  height: 80px;
  font-size: 1.8rem;
}

.control-btn.primary:hover {
  background: #9a8ee3;
}

.sessions {
  text-align: center;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #f0f0f0;
}

.sessions-label {
  font-size: 0.85rem;
  color: #8e8e93;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sessions-count {
  font-size: 2rem;
}

@media (max-width: 600px) {
  .container {
    padding: 30px 20px;
  }

  .time-selection {
    grid-template-columns: repeat(2, 1fr);
  }

  .timer-container {
    width: 240px;
    height: 240px;
  }

  .timer-time {
    font-size: 2.8rem;
  }
}

.hidden {
  display: none;
}
