/* Custom styles to complement Pico CSS */

header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  margin-bottom: 0.5rem;
}

header p {
  color: var(--pico-muted-color);
  margin-bottom: 1rem;
}

#theme-toggle {
  width: auto;
  padding: 0.5rem 1rem;
}

#notes-container {
  margin-top: 2rem;
}

#notes-list {
  display: grid;
  gap: 1rem;
}

.note-card {
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
  padding: 1.5rem;
  position: relative;
  transition: box-shadow 0.2s ease;
}

.note-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.note-card h3 {
  margin-bottom: 0.5rem;
  color: var(--pico-primary);
}

.note-card p {
  margin-bottom: 1rem;
  white-space: pre-wrap;
}

.note-card time {
  font-size: 0.875rem;
  color: var(--pico-muted-color);
}

.note-card .delete-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--pico-del-color);
  border: none;
  color: white;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  margin: 0;
  transition: opacity 0.2s ease;
}

.note-card .delete-btn:hover {
  opacity: 0.8;
}

.empty-message {
  text-align: center;
  color: var(--pico-muted-color);
  font-style: italic;
  padding: 2rem;
}

footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--pico-muted-border-color);
}

footer p {
  color: var(--pico-muted-color);
  font-size: 0.875rem;
}

/* Animation for new notes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.note-card {
  animation: fadeIn 0.3s ease;
}
