/* NOTE.CONGTHANH.NET - DARK SLATE MINIMALIST STYLES */

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #090d16;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Card Transitions & Keyframe Animations */
@keyframes itemAppear {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-item-appear {
  animation: itemAppear 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.card-highlight {
  box-shadow: 0 0 0 2px #06b6d4, 0 10px 25px -5px rgba(6, 182, 212, 0.2);
}

/* Pre & Code formatting */
pre {
  background-color: #0b101b;
  border: 1px solid #1e293b;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #e2e8f0;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 320px;
}

/* Line clamp helpers */
.line-clamp-6 {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Filter Chip active indicator */
.filter-chip.active {
  background-color: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.4);
}

/* Toast Animation */
@keyframes toastSlideIn {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast-item {
  animation: toastSlideIn 0.2s ease-out forwards;
}

/* Category Selection Pills in Quick Modal */
.cat-select-btn {
  cursor: pointer;
  position: relative;
  user-select: none;
}

.cat-select-btn:hover {
  background-color: #1e293b !important;
}

.cat-select-btn.selected {
  border-color: #06b6d4 !important;
  background-color: rgba(6, 182, 212, 0.15) !important;
  box-shadow: 0 0 0 1px #06b6d4, 0 4px 12px rgba(6, 182, 212, 0.15);
}

.cat-select-btn.selected span:last-child {
  color: #22d3ee;
  font-weight: 600;
}

/* Grouped View Section Styling */
.group-section {
  transition: all 0.2s ease-in-out;
}

.group-section.collapsed .group-cards-grid {
  display: none !important;
}

.group-section.collapsed .collapse-arrow {
  transform: rotate(-90deg);
}

/* In-Card Category Dropdown */
.in-card-cat-badge {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.15s ease;
  position: relative;
}

.in-card-cat-badge:hover {
  opacity: 0.85;
  filter: brightness(1.2);
}

.cat-dropdown-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  cursor: pointer;
  padding-right: 12px;
  outline: none;
}

