/* ===== RESET ===== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}


/* ===== ADD NOTE ANIMATION ===== */

@keyframes noteAppear {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* класс который будет запускать анимацию */
.note-enter {
  animation: noteAppear 0.35s ease;
}


/* ==== PAGE === */
body {
  background: linear-gradient(135deg, #1e1f26, #2b2e38);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-self: center;
  color: #fff;
}

/* ==== MAIN CONTAINER === */
#wrapper {
  width: 420px;
  background: #2f3241;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ==== TEXTAREA === */

#textarea {
  width: 100%;
  height: 120px;
  resize: none;
  border: none;
  outline: none;
  border-radius: 10px;
  padding: 12px;
  color: #fff;
  font-size: 16px;
  background: #1f2130;
  margin-bottom: 15px;
  transition: 0.2s;
} 

#textarea:focus {
  box-shadow: 0 0 0 2px #6c8cff;
}

/* ==== LIST === */

#list {
  list-style: none;
  max-height: 300px;
  overflow-y: auto;
}

/* ==== NOTE ITEM === */

#list li {
  background: #1f2130;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: 0.2s;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* hover effect */
#list li:hover {
  background: #2a2d42;
  transform: translateY(-2px);
}

/* active click */

#list li:active {
  transform: scale(0.98);
}

/* Error message */ 

.error {
  opacity: 0;
  color: #ff4d4f;
  margin-top: 8px;
  font-size: 14px;
  transition: 0.3s;
}

.error-show {
  opacity: 1;
}