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

/* Body */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #fbc2eb, #a6c1ee);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
body.dark {
  background: linear-gradient(135deg, #1e1e2f, #12121c);
}

body.dark .container {
  background: #2a2a3d;
  color: white;
}

body.dark h1 {
  color: #ff8fcf;
}
body.dark h2 {
    color: white;
}

body.dark button {
  background: #ff8fcf;
}

body.dark .progress {
  background: #ff8fcf;
}

/* Main Container */
.container {
  background: white;
  width: 450px;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  text-align: center;
}

/* Headings */
h1 {
  color: #ff4fa3;
  margin-bottom: 15px;
}

h2 {
  margin: 15px 0 10px;
  color: black;
}

/* Timer Display */
#timer {
  font-size: 28px;
  margin: 10px 0;
  color: #ff4fa3;
  font-weight: bold;
}

#taskList {
  width:100% ;
} 
/* Buttons */
button {
  background: #ff4fa3;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  margin: 5px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #ff2f8f;
  transform: translateY(-2px);
}

/* Input Section */
.input-group {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

input {
  padding: 8px;
  border-radius: 20px;
  border: 1px solid #ddd;
  width: 65%;
  outline: none;
}

/* Task Items */
.task {
  margin-top: 8px;
  justify-content: space-between;
  display: flex;
 width : 100%;
  align-items: center;
  padding-left: 40px;
}

.task span {
    flex:1;
    text-align :left;
}

.done {
    text-decoration: line-through;
    opacity:0.6;
}

.toggle-btn {
    background: #4caf50;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    cursor:pointer;
}

.toggle-btn:hover {
  background: #3e8e41;
}
 .delete-btn {
  background: #ff4d4d;
  border: none;
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  cursor: pointer;
 }
 .delete-btn:hover {
  background: #cc0000;
}
/* Progress Bar */
.progress-bar {
  height: 8px;
  background: #eee;
  border-radius: 20px;
  margin-top: 12px;
  overflow: hidden;
}

.progress {
  height: 100%;
  width: 0%;
  background: #ff4fa3;
  transition: width 0.3s ease;
}

/* Quote */
.quote {
  margin-top: 15px;
  font-style: italic;
  color: #ff4fa3;
}