body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  margin: 0;
  background: linear-gradient(135deg, rgba(173,216,230,0.3), rgba(255,228,225,0.3));
  backdrop-filter: blur(8px);
  color: #333;
  text-align: center;
}

h1 {
  font-size: 2.2em;
  margin: 20px 0 5px;
  color: #333;
}

.subheading {
  font-size: 1em;
  color: #555;
  margin-bottom: 20px;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tablink {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  color: #333;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}

.tablink.active, .tablink:hover {
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

input[type="text"], input[type="number"] {
  padding: 8px 12px;
  border: none;
  margin: 5px;
  border-radius: 8px;
  width: 200px;
  background: rgba(255,255,255,0.3);
  color: #333;
  outline: none;
  backdrop-filter: blur(4px);
}

button {
  background: rgba(173,216,230,0.4);
  border: none;
  padding: 8px 14px;
  margin: 5px;
  border-radius: 8px;
  cursor: pointer;
  color: #333;
  transition: background 0.3s ease;
}

button:hover {
  background: rgba(173,216,230,0.6);
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 10px;
}

.memory-card {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(6px);
  width: 220px;
  padding: 12px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  text-align: left;
  color: #333;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.memory-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.pin-icon {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 1.2em;
  color: #e67e22;
  animation: pulse 2s infinite;
}

.small {
  font-size: 0.85em;
  color: #444;
}

.actions button {
  font-size: 0.8em;
  padding: 4px 8px;
}

button.delete {
  background: rgba(255,99,71,0.4);
}

button.delete:hover {
  background: rgba(255,99,71,0.6);
}

#toast {
  visibility: hidden;
  min-width: 200px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  text-align: center;
  border-radius: 12px;
  padding: 10px;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  font-size: 0.9em;
}

#toast.show {
  visibility: visible;
  animation: fadein 0.5s, fadeout 0.5s 2s;
}

@keyframes fadein {
  from { bottom: 20px; opacity: 0; }
  to   { bottom: 40px; opacity: 1; }
}

@keyframes fadeout {
  from { bottom: 40px; opacity: 1; }
  to   { bottom: 20px; opacity: 0; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1);}
  50% { transform: scale(1.2);}
}
