body {
  font-family: 'Inter', sans-serif;
  background: #f0f4f8;
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  color: #222;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 10px;
}

#routineBtn {
  padding: 10px 16px;
  font-size: 1rem;
  background-color: #ff9800;
  color: white;
  border: none;
  border-radius: 8px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: background-color 0.2s;
}

#routineBtn:hover {
  background-color: #e68900;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 500px;
}

.day {
  background: white;
  border-radius: 12px;
  padding: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.1s;
}

.day:hover {
  background-color: #f2f9ff;
  transform: scale(1.05);
}

.crossed::after {
  content: "❌";
  position: absolute;
  top: 6px;
  right: 8px;
  color: red;
  font-size: 1rem;
}

.modal,
.routine-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  z-index: 1001;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.overlay,
.routine-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
}

.input-group {
  margin-bottom: 14px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  resize: none;
  box-sizing: border-box;
}

textarea {
  min-height: 60px;
}

.routine-list {
  padding-left: 20px;
  margin-top: 10px;
  font-size: 0.95rem;
}

.routine-list li {
  margin-bottom: 10px;
  line-height: 1.4;
}

.btn-group {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

button {
  padding: 10px 16px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.save {
  background-color: #4caf50;
  color: white;
}

.close {
  background-color: #f44336;
  color: white;
}

@media (max-width: 500px) {
  .calendar {
    grid-template-columns: repeat(5, 1fr);
  }
}

.clock {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #000000, #222831);
  padding: 16px 32px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 20px;
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
}

.timer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  z-index: 99;
}

.timer-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #111;
  color: #0ff;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  z-index: 100;
  display: none;
  box-shadow: 0 0 40px #00fff7;
  font-family: 'Orbitron', sans-serif;
}

#timerDisplay {
  font-size: 3rem;
  margin: 20px 0;
  letter-spacing: 4px;
}

.timer-modal .btn-group button {
  margin: 10px;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 10px;
  background: #00fff7;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  border: none;
}