/* General Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Body Styling */
body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: #1a1a2e;
  color: #eaeaea;
  overflow: hidden;
  position: relative; /* Ensures absolute positioning within body */
}

/* Container Styling */
.container {
  width: 80%;
  max-width: 500px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  position: relative;
}

/* Pop-up Form */
#popup {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#popup h2 {
  font-size: 1.5em;
  margin-bottom: 20px;
  color: #ffcc70;
}
#popup label {
  font-size: 1em;
}
#popup input[type="text"],
#popup input[type="number"] {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #444;
  border-radius: 5px;
  background: #2e2e44;
  color: #eaeaea;
}
#popup input[type="checkbox"] {
  margin-top: 10px;
}
#confirm-btn {
  margin-top: 15px;
  padding: 10px;
  background: #ff6b6b;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}
#confirm-btn:hover {
  background: #ff5050;
}

/* Timer Display */
#focus-section {
  display: none;
  text-align: center;
  margin-top: 20px;
}
#focus-section h2 {
  margin-bottom: 10px;
}
#timer {
  font-size: 2em;
  color: #ffcc70;
}

/* Music Player */
#music-player {
  position: absolute; /* Positions it relative to the body */
  top: 90%; /* Vertically center it */
  left: 10px; /* Position on the left side */
  transform: translateY(-50%); /* Adjust for perfect vertical centering */
  width: 220px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
#music-player button {
  padding: 6px;
  background: #ff6b6b;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.8em;
  width: 30px;
  height: 30px;
}
#music-player button:hover {
  background: #ff5050;
}
#track-name {
  font-size: 0.85em;
  color: #eaeaea;
  text-align: center;
  flex-grow: 1;
  padding: 0 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* To-Do List */
#todo-section {
  margin-top: 20px;
}
#todo-input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #444;
  border-radius: 5px;
  background: #2e2e44;
  color: #eaeaea;
}
#todo-list {
  list-style: none;
  padding: 0;
}
.todo-item {
  background: #333;
  padding: 10px;
  margin-top: 5px;
  border-radius: 5px;
}
