/* Feedback Dashboard Styles */
.feedback-dashboard-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feedback-dashboard {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 2rem;
}

.feedback-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.feedback-header h2 {
    color: var(--primary-accent);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.feedback-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feedback-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.feedback-card h3 {
    color: var(--primary-accent);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.sentiment-display {
    text-align: center;
}

.sentiment-score {
    font-size: 2rem;
    font-weight: bold;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.sentiment-score.positive {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.sentiment-score.negative {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.sentiment-score.neutral {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.sentiment-label {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.sentiment-value {
    display: block;
    font-size: 3rem;
}

.sentiment-breakdown {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
}

.sentiment-item {
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.sentiment-item.positive {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.sentiment-item.negative {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.sentiment-item.neutral {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.topics-list, .suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-item, .suggestion-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--bg-card);
    border-radius: 4px;
    border-left: 3px solid var(--primary-accent);
}

.topic-name, .suggestion-text {
    flex: 1;
    color: var(--text-primary);
}

.topic-count, .suggestion-count {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.comments-list {
    max-height: 400px;
    overflow-y: auto;
}

.comment-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-card);
    border-radius: 4px;
    border-left: 3px solid var(--border-color);
}

.comment-item.sentiment-positive {
    border-left-color: #22c55e;
}

.comment-item.sentiment-negative {
    border-left-color: #ef4444;
}

.comment-item.sentiment-neutral {
    border-left-color: #6b7280;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.comment-author {
    font-weight: 600;
    color: var(--primary-accent);
}

.comment-time {
    color: var(--text-secondary);
}

.comment-text {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.comment-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.recommendations-list {
    max-height: 500px;
    overflow-y: auto;
}

.recommendation-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-card);
    border-radius: 4px;
    border-left: 4px solid var(--border-color);
}

.recommendation-item.priority-high {
    border-left-color: #ef4444;
}

.recommendation-item.priority-medium {
    border-left-color: #f59e0b;
}

.recommendation-item.priority-low {
    border-left-color: #6b7280;
}

.rec-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.rec-document {
    font-weight: 600;
    color: var(--primary-accent);
}

.rec-priority {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.rec-reason {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.rec-changes {
    list-style: none;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.rec-changes li {
    padding: 0.25rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.rec-changes li::before {
    content: '→ ';
    color: var(--primary-accent);
}

.rec-apply-btn {
    padding: 0.5rem 1rem;
    background: var(--primary-accent);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.rec-apply-btn:hover {
    background: var(--primary-accent-dark);
}

.changes-list {
    max-height: 400px;
    overflow-y: auto;
}

.change-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-card);
    border-radius: 4px;
    border-left: 3px solid var(--secondary-accent);
}

.change-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.change-document {
    font-weight: 600;
    color: var(--primary-accent);
}

.change-date {
    color: var(--text-secondary);
}

.change-description {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.change-source {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.feedback-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.refresh-btn {
    padding: 0.5rem 1rem;
    background: var(--primary-accent);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
}

.refresh-btn:hover {
    background: var(--primary-accent-dark);
}

.last-updated {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.feedback-loading, .feedback-error {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.feedback-error h3 {
    color: #ef4444;
    margin-bottom: 1rem;
}
