body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #c9d6ff, #e2e2e2);
  margin: 0;
  padding: 0;
  color: #333;
  transition: 0.4s ease;
}

body.dark-mode {
  background: #121212;
  color: #e0e0e0;
}

.container {
  max-width: 600px;
  margin: 40px auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: 0.4s ease;
}

body.dark-mode .container {
  background: rgba(34, 34, 56, 0.85);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.header h1 {
  margin: 0;
  font-size: 28px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.toggle-btn {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #444;
  transition: transform 0.3s;
}

.toggle-btn:hover {
  transform: scale(1.2);
}

body.dark-mode .toggle-btn {
  color: #f2f2f2;
}

textarea, select {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 16px;
  outline: none;
  transition: 0.3s;
  background-color: #f9f9f9;
}

body.dark-mode textarea,
body.dark-mode select {
  background-color: #2d2d4d;
  border: 1px solid #555;
  color: #e2e2e2;
}

button {
  margin: 10px 5px;
  padding: 12px 24px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.clear-btn {
  background: linear-gradient(to right, #ff416c, #ff4b2b);
}

.entry {
  background: #f7f7fc;
  border-left: 5px solid #667eea;
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  position: relative;
  transition: background 0.3s ease;
}

.entry:hover {
  background: #eef0fb;
}

body.dark-mode .entry {
  background: #2a2a40;
}

.entry .delete-btn {
  position: absolute;
  right: 12px;
  top: 12px;
  background: transparent;
  border: none;
  color: #e74c3c;
  font-size: 18px;
  cursor: pointer;
}

#filter {
  margin: 10px 0 20px;
}

canvas {
  margin-top: 20px;
  background: white;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.dark-mode canvas {
  background: #2c2c3c;
}
