* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: Poppins, sans-serif;
  font-weight: 700;
}

.notes-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
  padding-bottom: 40px;
}

.notes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  background: linear-gradient(135deg, #4141b7, #0d2a80);
  color: white;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
}

.back-btn {
  text-decoration: none;
  background: #0f172a;
  color: white;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 700;
  transition: 0.3s;
  box-shadow: 0 6px 16px rgb(0, 0, 0, 0.25);
}

.back-btn:hover {
  transform: translateY(-2px) scale(1.05);
  background: #000;
}

.notes-container {
  width: 95%;
  max-width: 900px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.trash-note {
  background: linear-gradient(135deg, #f4f4f5, #0d2a80);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 700;
  transition: 0.3s;
  border-left: 6px solid darkblue;
  border-right: 6px solid darkblue;
}

.trash-note:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.trash-note .note-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.trash-note button {
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.3s;
}

.trash-note button:first-child {
  background: green;
  color: white;
}

.trash-note button:first-child:hover {
  background: #2e7d32;
  transform: scale(1.05);
}

.trash-note button:last-child {
  background: red;
  color: white;
}

.trash-note button:last-child:hover {
  background: #b71c1c;
  transform: scale(1.05);
}

body.dark {
  background: #121212;
  color: #f1f1f1;
}

body.dark .notes-body {
  background: #121212;
}

body.dark .notes-header {
  background: linear-gradient(135deg, #232526, #414345);
}

body.dark .trash-note {
  background: #1e1e1e;
  color: white;
  border-left: 6px solid darkblue;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.05);
}

body.dark .back-btn {
  background: #f1f1f1;
  color: #111;
}

.popup-success {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #e53935;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

.popup-success.show {
  opacity: 1;
  transform: translateY(0);
}

.popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #4caf50;
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  opacity: 0;
  transition: 0.3s;
  font-weight: 700;
  z-index: 999;
}

.popup.show {
  opacity: 1;
}

@media (max-width: 600px) {
  .notes-header {
    padding: 14px 20px;
  }

  .logo {
    font-size: 20px;
  }

  .back-btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  .trash-note {
    flex-direction: column;
    align-items: flex-start;
  }

  .trash-note .note-actions {
    width: 100%;
    justify-content: space-between;
  }
}
