body {
  font-family: 'Segoe UI', sans-serif;
  background-color: rgb(255, 255, 255);
  color: #000000;
  text-align: center;
  padding: 20px;
  transition: background-color 0.5s ease;
}

body.hyperfocus-active {
  background-color: #1a1a2e;
}

/* Heading color change on Hyperfocus */
body.hyperfocus-active h1 {
  color: white;
  transition: color 0.5s ease;
}

h1 {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 25px;
  user-select: none;
}

.centered {
  display: block;
  margin: 0 auto;
  width: 300px;
  height: auto;
  image-rendering: crisp-edges;
  background-color: transparent;
  border: none;
  outline: none;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  transition: filter 0.3s ease;
}

/* Subtle glow on hyperfocus */
body.hyperfocus-active .centered {
  filter: drop-shadow(0 0 3px cyan);
}

#taskInput {
  width: 280px;
  padding: 12px 16px;
  margin: 20px auto;
  border: none;
  border-radius: 15px;
  font-size: 1rem;
  box-shadow:
    inset 2px 2px 5px #d9d9d9,
    inset -2px -2px 5px #ffffff;
  outline: none;
  transition: box-shadow 0.3s ease;
}

#taskInput:focus {
  box-shadow:
    inset 2px 2px 5px #c6e2ff,
    inset -2px -2px 5px #f0faff;
}

#addTask {
  padding: 12px 20px;
  font-size: 1rem;
  background: #fff;
  border-radius: 15px;
  border: none;
  box-shadow:
    4px 4px 8px #b8b9be,
    -4px -4px 8px #ffffff;
  cursor: pointer;
  color: #007aff;
  transition: background-color 0.3s ease;
  margin-left: 10px;
}

#addTask:hover {
  background-color: #e6f0ff;
}

#taskList {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

#taskList li {
  background: #fff;
  margin: 10px auto;
  padding: 12px 16px;
  width: 100%;
  border-radius: 15px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow:
    6px 6px 12px #b8b9be,
    -6px -6px 12px #ffffff;
  font-size: 1rem;
  word-break: break-word;
}

#taskList li > button {
  margin-left: 10px;
  padding: 8px 12px;
  font-size: 0.9rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  min-width: 90px;
  flex-shrink: 0;
  box-shadow:
    3px 3px 6px #b8b9be,
    -3px -3px 6px #ffffff;
  transition: background-color 0.3s ease;
}

.done-btn {
  background-color: #34c759;
  color: #fff;
}

.done-btn:hover {
  background-color: #28a745;
}

.distracted-btn {
  background-color: #ff3b30;
  color: #fff;
}

.distracted-btn:hover {
  background-color: #cc2c20;
}

/* Hyperfocus Timer and progress bar container */
#hyperfocusTimer {
  max-width: 300px;
  margin: 20px auto 40px auto;
  padding: 12px 16px;
  background: #fff;
  border-radius: 20px;
  box-shadow:
    6px 6px 12px #b8b9be,
    -6px -6px 12px #ffffff;
  user-select: none;
}

#hyperfocusTimer p {
  margin: 0 0 6px 0;
  font-weight: 600;
  font-size: 1.1rem;
  color: #007aff;
}

#progressBar {
  width: 0%;
  height: 14px;
  background-color: #007aff;
  border-radius: 10px;
  transition: width 1s linear;
}

/* Stats container */
.stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.stat-bubble {
  background: #fff;
  padding: 12px 20px;
  border-radius: 40px;
  box-shadow:
    6px 6px 12px #b8b9be,
    -6px -6px 12px #ffffff;
  min-width: 90px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #007aff;
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hyperfocus button bottom-right */
#hyperfocusBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 15px 25px;
  font-size: 1rem;
  background: #fff;
  border-radius: 40px;
  box-shadow:
    8px 8px 16px #b8b9be,
    -8px -8px 16px #ffffff;
  color: #007aff;
  border: none;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  z-index: 1000;
}

#hyperfocusBtn:hover {
  background-color: #e6f0ff;
}

/* Exit Hyperfocus Button (bottom-left) */
#exitHyperfocusBtn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  padding: 12px 20px;
  font-size: 0.9rem;
  background-color: #ff3b30;
  color: white;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  box-shadow:
    6px 6px 12px #b23026,
    -6px -6px 12px #ff4d3a;
  user-select: none;
  display: none;
  z-index: 1000;
}

#exitHyperfocusBtn:hover {
  background-color: #cc2c20;
}

/* Reward Modal styling */
#rewardModal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 25px 40px;
  border-radius: 25px;
  box-shadow:
    8px 8px 20px #b8b9be,
    -8px -8px 20px #ffffff;
  display: none;
  user-select: none;
  z-index: 1100;
  text-align: center;
}

.modal-content h2 {
  margin-bottom: 10px;
  color: #007aff;
  font-weight: 700;
}

.modal-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #333;
}

.modal-content button {
  padding: 10px 25px;
  font-size: 1rem;
  background: #007aff;
  border: none;
  border-radius: 30px;
  color: white;
  cursor: pointer;
  box-shadow:
    4px 4px 8px #0056b3,
    -4px -4px 8px #3399ff;
  user-select: none;
  transition: background-color 0.3s ease;
}

.modal-content button:hover {
  background-color: #0056b3;
}


