/* Feedback button */
.feedback-btn {
  position: fixed;
  bottom: 30px; /* Distance from the bottom */
  right: 30px; /* Distance from the right */
  background-color: #6c5ce7;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 50%;
  font-size: 18px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 9999; /* Make the icon appear on top */
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Increase the size of the icon when hovered */
.feedback-btn:hover {
  background-color: #5e50a1;
  transform: scale(1.1);
}

/* Feedback icon */
.feedback-btn i {
  font-size: 18px; /* Icon size */
}

/* Feedback popup window */
.feedback-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s;
}

.feedback-popup.active {
  visibility: visible;
  opacity: 1;
}

.feedback-popup form {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 400px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feedback-popup form input,
.feedback-popup form textarea,
.feedback-popup form button {
  width: 90%;
  padding: 12px;
  margin-bottom: 15px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.feedback-popup form button {
  background-color: #6c5ce7;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.feedback-popup form button:hover {
  background-color: #5e50a1;
}

/* Basic page layout */
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #fdfbfb, #ebedee);
  margin: 0;
  padding: 0;
  direction: ltr;
  height: 100vh; /* Use the full height of the screen */
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Main content container */
.container {
  max-width: 500px;
  margin: 10px auto;
  background: white;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  flex: 1;
  min-height: 100vh;
  width: 95%;
  display: flex;
  flex-direction: column;
}

h1 {
  color: #333;
  margin-bottom: 15px;
}

form {
  display: flex;
  flex-direction: column;
}

form input,
form select,
form button {
  display: block;
  width: calc(100% - 22px);
  margin-bottom: 10px;
  padding: 10px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

form button {
  background-color: #6c5ce7;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

form button:hover {
  background-color: #5e50a1;
}

/* Task list styles */
#taskList {
  list-style: none;
  padding: 0;
  margin-top: 10px;
  overflow-y: auto;
  flex: 1;
}

.task-item {
  background-color: #f1f1f1;
  border-right: 8px solid;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 10px;
  text-align: left;
  position: relative;
  transition: background-color 0.3s ease;
}

.task-item.done {
  opacity: 0.7;
  text-decoration: line-through;
  background-color: #d4edda;
}

.task-item .actions {
  position: absolute;
  right: 15px;
  top: 15px;
  display: flex;
  flex-wrap: wrap;
}

.task-item .actions button {
  margin-left: 5px;
  padding: 5px 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 5px;
}

.high { border-color: red; }
.medium { border-color: orange; }
.low { border-color: green; }

.done-btn { background-color: #00b894; color: white; }
.delete-btn { background-color: #d63031; color: white; }

/* Celebration overlay effect */
.celebration-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeOverlay 3s ease-in-out forwards;
}

@keyframes fadeOverlay {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; display: none; }
}

/* Ensure the icon is visible on all screen sizes */
@media (max-width: 600px) {
  .feedback-btn {
    bottom: 20px; /* Ensure visibility on smaller screens */
    right: 20px; /* Set distance from the right */
  }
}
