.cards-list {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  row-gap: 1rem;
}

.card-content-section[data-type="keywords"] .card-content-section-title {
    background-color: rgb(250 245 255);
    border-color: rgb(250 245 255);
    border-color: rgb(147 51 234);
  }

  .card-content-section[data-type="tags"] {
    background: linear-gradient(135deg, rgb(255 247 237 / 0.5), rgb(var(--color-bg-primary)));
  }

  .card-content-section[data-type="comments"] {
    border-color: rgb(var(--color-border-light));
    border-color: rgb(var(--color-border));
    background: linear-gradient(135deg, rgb(249 250 251 / 0.5), rgb(var(--color-bg-primary)));
  }

  .card-content-section[data-type="comments"] .card-content-section-title {
    background-color: rgb(var(--color-bg-secondary));
    border-color: rgb(var(--color-primary));
  }

  /* Scrollbar styling for scrollable content */
  .content-box-scrollable::-webkit-scrollbar {
    width: 6px;
  }

  .content-box-scrollable::-webkit-scrollbar-track {
    background: rgb(var(--color-bg-secondary));
    border-radius: 3px;
  }

  .content-box-scrollable::-webkit-scrollbar-thumb {
    background: rgb(var(--color-border));
    border-radius: 3px;
  }

  .content-box-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgb(var(--color-text-muted));
  }


  /* Smooth transitions */
  .card-body {
    transition: all 0.3s ease-in-out;
  }

  /* Common card patterns */
  .card-container {
    background-color: rgb(var(--color-bg-primary));
    border-radius: 0.5rem;
    /* shadow-sm class - should be defined elsewhere */;
    border: 1px solid rgb(var(--color-border));
    border: 1px solid rgb(var(--color-border));
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .card-container-hover {
    background-color: rgb(var(--color-bg-primary));
    border-radius: 0.5rem;
    /* shadow-sm class - should be defined elsewhere */;
    border: 1px solid rgb(var(--color-border));
    border: 1px solid rgb(var(--color-border));
    padding: 1.5rem;
    margin-bottom: 1rem;
    /* Unknown: hover:shadow-md */;
    /* Unknown: transition-shadow */;
    transition-duration: 200ms;
  }

  .card-container-large {
    background-color: rgb(var(--color-bg-primary));
    border-radius: 0.5rem;
    /* shadow-lg class - should be defined elsewhere */;
    border: 2px solid rgb(var(--color-border));
    border: 1px solid rgb(var(--color-border));
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .card-container-large-hover {
    background-color: rgb(var(--color-bg-primary));
    border-radius: 0.5rem;
    /* shadow-lg class - should be defined elsewhere */;
    border: 2px solid rgb(var(--color-border));
    border: 1px solid rgb(var(--color-border));
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms;
    transition-duration: 200ms;
  }



  /* Custom card styles */
  .card {
    background-color: rgb(var(--color-bg-secondary));
    border: 1px solid rgb(var(--color-border));
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    overflow: visible;
    transition: all 0.3s ease;
  }
  

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card.featured {
  box-shadow: 0 0 0 2px rgba(var(--color-primary), 0.5), 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card.selected {
  border-color: rgb(var(--color-primary));
  background-color: rgba(var(--color-primary), 0.05);
}

/* Generic card header */
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

/* Generic card title */
.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgb(var(--color-text-primary));
  margin-bottom: 0.5rem;
}

.card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-title a:hover {
  color: rgb(var(--color-primary));
}

/* Generic card meta */
.card-meta {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: rgb(var(--color-text-secondary));
  margin-bottom: 0.75rem;
}

/* Generic card content */
.card-content {
  margin-bottom: 1rem;
}

.card-excerpt {
  color: rgb(var(--color-text-secondary));
  margin-bottom: 1rem;
  line-height: 1.625;
}

/* Generic card actions */
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.content-card-actions-left,
.content-card-actions-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Enhanced content section classes for judgment cards */
.card-content-section {
  margin-bottom: 1.5rem;
  background: rgb(var(--color-bg-primary));
  border-radius: 12px;
  border: 1px solid rgb(var(--color-border));
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
}


.card-content-section:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: rgb(var(--color-primary) / 0.3);
}


.card-content-section-title {
  font-size: 1.125rem;
    font-weight: 600;
    color: rgb(var(--color-text-primary));
    display: flex;
    align-items: center;
    /* Unknown: gap-3 */;
    padding-left: 1.5rem; padding-right: 1.5rem;
    padding-top: 1rem; padding-bottom: 1rem;
  position: relative;
  background: linear-gradient(135deg, rgb(var(--color-bg-secondary)), rgb(var(--color-bg-primary)));
  border-bottom: 1px solid rgb(var(--color-border));
}

.card-content-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, rgb(var(--color-primary)), rgb(var(--color-accent)));
}

.content-box {
  padding: 1.5rem;
  background: rgb(var(--color-bg-primary));
}

.content-box-scrollable {
  padding: 1.5rem;
    /* Unknown: max-h-80 */;
    overflow-y: auto;
  background: rgb(var(--color-bg-primary));
}

.content-text {
  color: rgb(var(--color-text-primary));
    line-height: 1.625;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Generic Card Selection State - reusable across all card types */
.card-selected {
  background: rgb(var(--color-bg-secondary));
  box-shadow: var(--shadow-xl);
  border-color: rgb(var(--color-primary));
  border-width: 2px;
}

.card-selected:hover {
  background: rgb(var(--color-bg-secondary));
  box-shadow: var(--shadow-xl);
  border-color: rgb(var(--color-primary));
}

/* Selection Toolbar - generic for all entity types */
#selection-toolbar {
  animation: slideUp 0.3s ease-out;
  z-index: 6000;
  bottom: 6rem; 
  left: 50%;
  gap: 0.5rem;
  padding: 0.5rem;
  transform: translateX(-50%);
  background-color: rgb(var(--color-bg-primary));
  border: 1px;
  border-color: rgb(var(--color-border));
  border-radius: 0.5rem;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
}

@keyframes slideUp {
  from {
    transform: translate(-50%, 100%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

#selection-toolbar .btn-symbol {
  min-width: 2.5rem;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Card Selection State - independent from expansion */
.card-selected {
  background: rgb(var(--color-bg-secondary));
  box-shadow: var(--shadow-xl);
  border-color: rgb(var(--color-primary));
  border-width: 1px;
}

.card-selected:hover {
  background: rgb(var(--color-bg-secondary));
  box-shadow: var(--shadow-xl);
  border-color: rgb(var(--color-primary));
}

/* Generic info card expansion - reusable across all content types */
.info-card-limited {
  transition: all 0.3s ease-in-out;
  overflow: hidden;
  max-height: 3rem; /* Initial collapsed height */
}

.info-card-expanded {
  transition: all 0.3s ease-in-out;
  overflow: visible;
  max-height: none !important;
  height: auto;
}


.content-box {
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}

/* Info Cards - for key information display (horizontal layout) */
.info-card {
  background: rgb(var(--color-bg-primary));
  border: 1px solid rgb(var(--color-border));
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease-in-out;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Info Cards - for expandable content sections (vertical layout) */
.info-card.expandable-content {
  display: block;
  align-items: stretch;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.info-card.expandable-content:hover {
  background: rgb(var(--color-bg-secondary));
  border-color: rgb(var(--color-primary) / 0.3);
}

.info-card:hover {
  background: rgb(var(--color-bg-secondary));
  border-color: rgb(var(--color-primary) / 0.3);
}

.info-label {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.info-value {
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.25;
}

/* Content Sections */
.content-section {
  background: rgb(var(--color-bg-primary));
  border: 1px solid rgb(var(--color-border));
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
}

.content-section-header {
  width: 100%;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-align: left;
}

.content-section-header:hover {
  background: rgb(var(--color-bg-secondary));
}

.content-section-body {
  border-top: 1px solid rgb(var(--color-border));
  transition: all 0.3s ease-in-out;
}

.content-toggle-icon {
  font-size: 0.875rem;
  transition: transform 0.2s ease-in-out;
}