html, body {
  height: 100%;
  background-color: #fefdf9;
  transition: background-color 0.3s ease;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body.dark {
  background-color: #1e1e1e;
  color: #f5f5f5;
}

#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  background-color: #fefdf9;
  transition: background-color 0.3s ease;
}

body.dark #background {
  background-color: #1e1e1e;
}

#theme-toggle,
#lofi-toggle {
  position: fixed;
  top: 20px;
  padding: 0.5rem 1rem;
  background: #2e7d32;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  z-index: 10;
  font-weight: bold;
}

#theme-toggle { right: 20px; }
#lofi-toggle { right: 120px; }

#lofi-toggle.active,
body.dark #theme-toggle {
  background: #fdd835;
  color: black;
}

#quote {
  text-align: center;
  font-size: 1.2rem;
  margin-top: 80px;
  padding: 0 1rem;
}

textarea {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 1rem auto;
  height: 100px;
  font-size: 1rem;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.note {
  background: white;
  padding: 1rem;
  margin: 1rem auto;
  border-radius: 6px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  position: relative;
  max-width: 600px;
  white-space: pre-wrap;
}

.note[contenteditable="true"] {
  outline: 2px solid #4CAF50;
}

.delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: red;
  color: white;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 3px;
}

/* === Wish Mode === */
#wish-tab {
  position: fixed;
  top: 40%;
  left: 0;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  align-items: center;
}

#wish-pull {
  background: #2e7d32;
  color: white;
  padding: 0.5rem 0.8rem;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  writing-mode: vertical-rl;
  user-select: none;
}

#wish-panel {
  display: none;
  flex-direction: column;
  background: white;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  margin-left: 5px;
  gap: 0.5rem;
  width: 160px;
}

body.dark #wish-panel {
  background: #2c2c2c;
  border-color: #555;
  color: #f5f5f5;
}

#wish-panel button {
  background: #2196f3;
  color: white;
  border: none;
  padding: 0.4rem;
  border-radius: 6px;
  cursor: pointer;
}

body.dark #wish-panel button {
  background: #4fc3f7;
  color: #000;
}
