/* LLM Suggestions Accordion Styles */
.llm-suggestions-accordion {
    margin-top: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 24px;
}

/* Desktop layout - side by side */
@media (min-width: 769px) {
    .llm-suggestions-accordion {
        flex-direction: row;
        gap: 20px;
    }
    
    .accordion-item {
        flex: 1;
        min-width: 0;
        margin-bottom: 0;
    }
}

/* Mobile layout - stacked */
@media (max-width: 768px) {
    .llm-suggestions-accordion {
        flex-direction: column;
        gap: 10px;
    }
    
    .accordion-item {
        width: 100%;
        margin-bottom: 0;
    }
}

/* Remove conflicting accordion styles that override the new layout */
.llm-suggestions-accordion {
    margin-top: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
}

/* Ensure accordion items stack properly on mobile */
@media (max-width: 768px) {
    .llm-suggestions-accordion {
        flex-direction: column;
        gap: 10px;
    }
    
    .accordion-item {
        width: 100%;
        margin-bottom: 10px;
    }
}

.accordion-item {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    box-shadow: none;
    overflow: hidden;
    margin-bottom: 15px;
    transition: var(--transition-normal);
}

.accordion-item:hover {
    border-color: var(--border-brand);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.accordion-header {
    padding: 15px 20px;
    background: var(--bg-elevated);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--border-subtle);
}

.accordion-header:hover {
    background: rgba(126, 7, 237, 0.1);
    color: var(--berry-primary-400);
}

.accordion-header.active {
    background: var(--gradient-primary);
    color: white;
}

.accordion-toggle {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-toggle {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-surface);
    border: 1px solid transparent;
}

.accordion-content.expanded {
    max-height: 600px;
    overflow-y: auto;
    border: none;
    background: var(--bg-surface);
}

.accordion-body {
    padding: 20px;
}

.suggestion-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.suggestion-loading .loading-circle {
    margin: 0 auto 15px;
}

.suggestion-item {
    /* margin-bottom: 20px; */
    padding: 15px;
    /* border: 1px solid var(--berry-primary-500);
    border-radius: var(--radius-lg);
    background: rgba(107, 70, 193, 0.05); */
}

/* -------------------------------------------------
   Feedback Points – independent styling
   Mirrors the numbered‑bullet look of title suggestions
   but can be customized separately.
   ------------------------------------------------- */
.feedback-results-container {
  /* Same container sizing as title-results-container */
  margin-top: 1rem;
}
.feedback-suggestions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.feedback-item {
  background: #1f2937;               /* Dark surface – matches overall UI */
  border: 1px solid #374151;         /* Subtle border */
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}
.feedback-item:hover {
  border-color: var(--berry-primary-500);
  background: rgba(126, 7, 237, 0.05);
}
.feedback-header {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
}
.feedback-main-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.feedback-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--berry-primary-500);
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
}
.feedback-text {
  flex: 1;
  color: #ffffff;
  font-weight: 500;
}

.suggestion-item h4 {
    color: var(--berry-primary-500);
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 600;
}

.suggestion-item p {
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.suggestion-meta {
    font-size: 0.9em;
    color: var(--text-tertiary);
    margin-top: 10px;
}

.thumbnail-concept {
    margin-bottom: 25px;
    padding: 20px;
    border: 2px solid var(--berry-green-500);
    border-radius: var(--radius-xl);
    background: rgba(16, 185, 129, 0.05);
}

.concept-header {
    color: var(--berry-green-500);
    margin-bottom: 12px;
    font-size: 1.2em;
    font-weight: 600;
}

.concept-description {
    background: var(--bg-surface);
    padding: 12px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--berry-green-500);
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.concept-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.color-palette {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    color: white;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

.priority-list, .fixes-list {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: var(--radius-lg);
}

.priority-list {
    background: rgba(251, 191, 36, 0.1);
    border-left: 4px solid #fbbf24;
}

.fixes-list {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--berry-green-500);
}

.priority-list h4, .fixes-list h4 {
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 600;
}

.priority-list h4 {
    color: #92400e;
}

.fixes-list h4 {
    color: var(--berry-green-600);
}

@media (max-width: 768px) {
    .concept-details {
        grid-template-columns: 1fr;
    }
    
    .accordion-content.expanded {
        max-height: 400px;
    }
    
    .accordion-header {
        padding: 12px 15px;
    }
    
    .accordion-body {
        padding: 15px;
    }
    
    .accordion-item {
        margin-bottom: 10px;
    }
}

/* Folder System Styles */
.folder-card {
    position: relative;
    border: 2px dashed transparent;
    transition: all 0.3s ease;
}

.folder-card.drag-over {
    border-color: var(--berry-primary-500);
    background-color: rgba(107, 70, 193, 0.1);
    transform: scale(1.02);
}

.folder-card.dragging {
    opacity: 0.5;
}

.folder-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(107, 70, 193, 0.9);
    color: white;
    border-radius: var(--radius-xl);
    padding: 2px 8px;
    font-size: 0.75em;
    font-weight: bold;
    z-index: 10;
}

.folder-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.1), rgba(107, 70, 193, 0.05));
    border-radius: var(--radius-lg);
    pointer-events: none;
}

.grouping-hint {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffc107;
    color: #856404;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: bold;
    white-space: nowrap;
    z-index: 15;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.drop-zone-enhanced {
    position: relative;
    overflow: visible;
}

.drop-zone-enhanced::before {
    content: "Drop here to create folder";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(107, 70, 193, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 0.8em;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    z-index: 20;
    transition: opacity 0.3s ease;
}

.drop-zone-enhanced.drag-over::before {
    opacity: 1;
}

.folder-management-controls {
    position: sticky;
    top: 72px;
    background: var(--bg-surface);
    z-index: 45;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1rem;
    display: none;
}

.folder-toggle-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.9em;
    font-weight: 500;
}

.folder-toggle-btn:hover {
    background: var(--bg-app);
    border-color: var(--border-brand);
}

.folder-toggle-btn.active {
    background: var(--gradient-primary);
    border-color: var(--berry-primary-500);
    color: white;
}

.grouping-suggestions {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    font-size: 0.85em;
    display: none;
}

.suggestion-group {
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.suggestion-group:hover {
    background: #f9fafb;
}

.suggestion-group strong {
    color: #92400e;
}

/* Folder inline expansion styles */
.folder-expanded-container {
    animation: expandIn 0.3s ease-out;
}

@keyframes expandIn {
    from {
        opacity: 0;
        transform: scaleY(0.8);
    }
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* Progress bar container improvements for dark theme */
.progress-bar-container {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: var(--space-sm) 0;
    margin-bottom: var(--space-sm);
    transition: var(--transition-fast);
}

.progress-bar-container:hover {
    background: transparent;
}

.progress-bar-container > div:first-child {
    color: var(--text-primary);
    font-weight: 500;
}

.progress-bar-container .tooltip-icon {
    background: var(--bv-federal-blue);
    color: white;
    border: 1px solid var(--bv-mint);
}

.progress-bar-container .tooltip-icon:hover {
    background: var(--bv-mint);
    transition: all 0.3s ease;
    /* color: white; */
    /* border-color: var(--berry-primary-500); */
}