/* Base styles (mobile first) */
* {
  list-style-type: none;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fa;
  color: #333;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
}

.container {
  padding: 30px 35px;
  width: 100%;
  max-width: 100vw;
  animation: slideIn 0.6s ease forwards;
}

@keyframes slideIn {
  0% {
    transform: translateX(-150vw);
  }
  100% {
    transform: translateX(0);
  }
}
/*
.slide-out {
  animation: slideOutCenterLeft 0.6s ease;
}

Animation Slide-out
@keyframes slideOutCenterLeft {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-350%);
    opacity: 0.5;
  }
  100% {
    transform: translateX(-850%); 
    opacity: 0;
  }
}
*/
header {
  text-align: center;
  margin-bottom: 20px;
}

header h1 {
  font-weight: 700;
  font-size: 2.5rem;
  color: #222;
}

.content {
  height: 100vh;
}

.create-list {
  width: 100%;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 600;
  background-color: #007bff;
  border: none;
  border-radius: 7px;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 35px;
}

.create-list:hover {
  background-color: #0056b3;
}

.label {
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: #555;
}

.added-list {
  list-style: disc inside;
}

.added-list li {
  padding: 8px 12px;
  font-size: 1rem;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.added-list li a {
  text-decoration: none;
  color: #333;
  cursor: pointer;
  flex-grow: 1;
  transition: 0.4s ease;
}

.added-list li a:hover {
  color: #007bff;
}

.trash-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  padding: 4px 8px;
  color: #888;
  transition: color 0.3s ease;
}

.trash-btn:hover {
  color: #e74c3c;
  background: #fddede;
  border-radius: 5px;
}

/*Overlay*/
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.hidden {
  display: none;
}

.popup {
  background: white;
  padding: 25px 40px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  text-align: center;
}

.popup h2 {
  margin-bottom: 20px;
  font-weight: 700;
}

.popup input {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 7px;
  margin-bottom: 20px;
}

.buttons {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.buttons button {
  padding: 10px 18px;
  font-size: 1rem;
  border-radius: 7px;
  border: none;
  cursor: pointer;
}

#cancelBtn {
  background-color: #ccc;
  color: #333;
}

#cancelBtn:hover {
  background-color: #999;
  color: white;
}

#saveBtn {
  background-color: #007bff;
  color: white;
}

#saveBtn:hover {
  background-color: #0056b3;
}


/* Desktop styles */
@media (min-width: 768px) {
  .container {
    max-width: 1200px;
    padding: 40px 50px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  }

  header h1 {
    font-size: 3rem;
  }

}
