.note-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.note-card::after {
  content: "";
  position: absolute;
  inset: auto -20% 0 -20%;
  height: 55%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.note-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.note-card:hover::after {
  opacity: 1;
}

.note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.note-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.note-summary {
  margin-top: 0.5rem;
  color: #475569;
}

.note-tags {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.note-tag {
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
}

.note-list {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  color: #334155;
  list-style: disc;
  position: relative;
  z-index: 1;
}

.note-toggle {
  border: 1px solid #d1d5db;
  background: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #475569;
  transition: all 0.2s ease;
}

.note-toggle:hover {
  border-color: #38bdf8;
  color: #0ea5e9;
}

@media screen and (max-width: 768px) {
  .note-card {
    padding: 1.1rem;
  }
}
