
.note-card {
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.note-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.note-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.note-card--verified {
  box-shadow: 0 0 12px rgba(108, 99, 255, 0.5), 0 8px 24px rgba(0, 0, 0, 0.08);
  border-left: 3px solid #6c63ff;
}

.note-card .note-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-card .note-preview {
  position: relative;
  height: 180px;
  overflow: hidden;
  background-color: var(--bs-light-bg-subtle, #f8f9fa);
}
.note-card .note-preview img,
.note-card .note-preview canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.note-card .note-preview .loading-shimmer {
  position: absolute;
  inset: 0;
}
.note-card .note-author {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}
.note-card .note-author img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.note-card .note-tags {
  margin-top: 0.25rem;
}
.note-card .note-tags .badge {
  margin-right: 0.25rem;
}
.note-card .note-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}
.note-card .note-actions {
  margin-top: auto;
}

@media (max-width: 575.98px) {
  .note-card .note-title {
    font-size: 0.85rem;
  }
}


.notes-filters .btn:not(.active) {
  color: var(--primary);
  border-color: var(--primary);
  background-color: transparent;
}

.notes-filters .btn.active {
  color: #fff;
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Ensure outline variant keeps good contrast when active */
.notes-filters .btn-outline-primary.active {
  color: #fff !important;
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.notes-filters .btn:not(.active):hover {
  color: #fff;
  background-color: var(--primary);
  border-color: var(--primary);
}

#noteSearch:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(109, 40, 217, 0.25);
}
