* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	background: #f5f5f5;
	color: #1a1a1a;
	line-height: 1.6;
}

.container {
	display: flex;
	min-height: 100vh;
}

/* Sidebar */
.sidebar {
	width: 260px;
	background: #fff;
	border-right: 1px solid #e5e5e5;
	padding: 24px;
	display: flex;
	flex-direction: column;
	position: fixed;
	height: 100vh;
	overflow-y: auto;
}

.logo {
	font-size: 24px;
	font-weight: 700;
	color: #F38020;
	margin-bottom: 32px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.logo-icon {
	width: 24px;
	height: 24px;
	background: #F38020;
	border-radius: 4px;
}

.user-profile {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	background: #f0f4ff;
	border-radius: 8px;
	margin-bottom: 24px;
}

.user-avatar {
	width: 40px;
	height: 40px;
	background: #F38020;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: 600;
}

.user-info {
	flex: 1;
}

.user-name {
	font-weight: 600;
	font-size: 14px;
}

.user-role {
	font-size: 12px;
	color: #6b7280;
}

.nav-section {
	margin-bottom: 32px;
}

.nav-section-title {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	color: #9ca3af;
	letter-spacing: 0.5px;
	margin-bottom: 12px;
}

.nav-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s;
	margin-bottom: 4px;
	font-size: 14px;
	color: #4b5563;
}

.nav-item:hover {
	background: #f3f4f6;
}

.nav-item.active {
	background: #fff4ed;
	color: #F38020;
	font-weight: 500;
}

.nav-icon {
	width: 20px;
	height: 20px;
}

/* Main Content */
.main-content {
	flex: 1;
	margin-left: 260px;
	padding: 32px;
}

.header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 32px;
}

.header h1 {
	font-size: 28px;
	font-weight: 700;
}

.date-range {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: white;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	font-size: 14px;
	cursor: pointer;
}

/* KPI Cards */
.kpi-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 32px;
}

.kpi-card {
	background: white;
	padding: 24px;
	border-radius: 12px;
	border: 1px solid #e5e5e5;
}

.kpi-label {
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 8px;
}

.kpi-value {
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 8px;
}

.kpi-change {
	font-size: 12px;
	display: flex;
	align-items: center;
	gap: 4px;
}

.kpi-change.positive {
	color: #10b981;
}

.kpi-change.negative {
	color: #ef4444;
}

/* Content Grid */
.content-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-bottom: 24px;
}

.card {
	background: white;
	border-radius: 12px;
	border: 1px solid #e5e5e5;
	padding: 24px;
}

.card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.card-title {
	font-size: 18px;
	font-weight: 600;
}

.card-full {
	grid-column: 1 / -1;
}

/* Form */
.feedback-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.form-label {
	font-size: 14px;
	font-weight: 500;
	color: #374151;
}

.form-input,
.form-select,
.form-textarea {
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
	outline: none;
	border-color: #F38020;
}

.form-textarea {
	resize: vertical;
	min-height: 100px;
}

.btn {
	padding: 10px 20px;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.btn-primary {
	background: #F38020;
	color: white;
}

.btn-primary:hover {
	background: #e06d00;
}

.btn-secondary {
	background: #f3f4f6;
	color: #374151;
}

.btn-secondary:hover {
	background: #e5e7eb;
}

.btn-sm {
	padding: 6px 12px;
	font-size: 12px;
}

.btn-success {
	background: #10b981;
	color: white;
}

.btn-success:hover {
	background: #059669;
}

/* Table */
.table-container {
	overflow-x: auto;
}

table {
	width: 100%;
	border-collapse: collapse;
}

thead {
	background: #f9fafb;
}

th {
	padding: 12px;
	text-align: left;
	font-size: 12px;
	font-weight: 600;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

td {
	padding: 12px;
	border-top: 1px solid #e5e5e5;
	font-size: 14px;
}

tr:hover {
	background: #f9fafb;
}

.status-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
}

.status-badge.pending {
	background: #fef3c7;
	color: #92400e;
}

.status-badge.analyzed {
	background: #d1fae5;
	color: #065f46;
}

.status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.priority-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
}

.priority-badge.high {
	background: #fee2e2;
	color: #991b1b;
}

.priority-badge.medium {
	background: #fef3c7;
	color: #92400e;
}

.priority-badge.low {
	background: #e0e7ff;
	color: #3730a3;
}

/* Theme Overview - Ranked List */
.theme-grid {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.theme-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: #f9fafb;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
	font-size: 14px;
}

.theme-row:hover {
	background: #f3f4f6;
	border-left: 3px solid #F38020;
}

.theme-row.active {
	background: #fff4ed;
	border-left: 3px solid #F38020;
	font-weight: 600;
}

.theme-name {
	color: #1a1a1a;
	font-weight: 600;
}

.theme-stats {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #6b7280;
}

.theme-total {
	color: #F38020;
	font-weight: 700;
	font-size: 16px;
}

.theme-change {
	font-size: 12px;
	padding: 2px 6px;
	border-radius: 4px;
	font-weight: 600;
}

.theme-change.positive {
	color: #059669;
	background: #d1fae5;
}

.theme-change.negative {
	color: #dc2626;
	background: #fee2e2;
}

.theme-change.neutral {
	color: #6b7280;
	background: #f3f4f6;
}

.theme-separator {
	color: #d1d5db;
}

.theme-urgent {
	color: #dc2626;
	font-weight: 600;
}

.type-distribution {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.type-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px;
	background: #f9fafb;
	border-radius: 8px;
	gap: 12px;
}

.type-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.type-icon {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
}

.type-icon.bug {
	background: #fee2e2;
}

.type-icon.idea {
	background: #dbeafe;
}

.type-icon.general {
	background: #f3f4f6;
}

.type-icon.testimonial {
	background: #d1fae5;
}

.type-details {
	display: flex;
	flex-direction: column;
}

.type-name {
	font-weight: 600;
	font-size: 14px;
	color: #1a1a1a;
}

.type-count {
	font-size: 12px;
	color: #6b7280;
}

.type-bar {
	flex: 1;
	min-width: 150px;
	height: 8px;
	background: #e5e7eb;
	border-radius: 4px;
	margin: 0 16px;
	overflow: hidden;
}

.type-percentages {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	min-width: 180px;
	justify-content: flex-end;
}

.type-percentage {
	font-weight: 600;
	color: #1a1a1a;
}

.type-urgent {
	color: #dc2626;
	font-weight: 600;
}

.type-negative {
	color: #dc2626;
	font-weight: 600;
}

.type-bar-fill {
	height: 100%;
	border-radius: 4px;
	transition: width 0.3s;
}

.type-bar-fill.bug {
	background: #ef4444;
}

.type-bar-fill.idea {
	background: #3b82f6;
}

.type-bar-fill.general {
	background: #6b7280;
}

.type-bar-fill.testimonial {
	background: #10b981;
}

.loading {
	text-align: center;
	padding: 40px;
	color: #6b7280;
}

.error {
	background: #fee2e2;
	color: #991b1b;
	padding: 12px;
	border-radius: 8px;
	margin-bottom: 16px;
}

.success {
	background: #d1fae5;
	color: #065f46;
	padding: 12px;
	border-radius: 8px;
	margin-bottom: 16px;
}

.content-preview {
	max-width: 300px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Modal */
.modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.modal-overlay.active {
	display: flex;
}

.modal {
	background: white;
	border-radius: 12px;
	max-width: 700px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
	padding: 24px;
	border-bottom: 1px solid #e5e5e5;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.modal-title {
	font-size: 20px;
	font-weight: 600;
}

.modal-close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #6b7280;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
}

.modal-close:hover {
	background: #f3f4f6;
}

.modal-body {
	padding: 24px;
}

.modal-section {
	margin-bottom: 24px;
}

.modal-section-title {
	font-size: 14px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.modal-content {
	background: #f9fafb;
	padding: 16px;
	border-radius: 8px;
	line-height: 1.6;
	color: #1a1a1a;
}

.modal-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}

.meta-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.meta-label {
	font-size: 12px;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.meta-value {
	font-size: 14px;
	font-weight: 500;
	color: #1a1a1a;
}

.suggestions-list {
	display: grid;
	gap: 16px;
}

.suggestion-item {
	padding: 20px;
	border-radius: 12px;
	border: 1px solid #e5e5e5;
	background: white;
	transition: all 0.2s;
}

.suggestion-item:hover {
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.suggestion-item.immediate {
	border-left: 4px solid #ef4444;
	background: #fef2f2;
}

.suggestion-item.bug {
	border-left: 4px solid #f59e0b;
	background: #fffbeb;
}

.suggestion-item.product {
	border-left: 4px solid #3b82f6;
	background: #eff6ff;
}

.suggestion-item.documentation {
	border-left: 4px solid #8b5cf6;
	background: #f5f3ff;
}

.suggestion-item.communication {
	border-left: 4px solid #10b981;
	background: #ecfdf5;
}

.suggestion-item.follow-up {
	border-left: 4px solid #6b7280;
	background: #f9fafb;
}

.suggestion-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.suggestion-action {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 16px;
	color: #1a1a1a;
}

.suggestion-icon {
	width: 24px;
	height: 24px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
}

.suggestion-icon.immediate {
	background: #fee2e2;
	color: #991b1b;
}

.suggestion-icon.bug {
	background: #fef3c7;
	color: #92400e;
}

.suggestion-icon.product {
	background: #dbeafe;
	color: #1e40af;
}

.suggestion-icon.documentation {
	background: #ede9fe;
	color: #5b21b6;
}

.suggestion-icon.communication {
	background: #d1fae5;
	color: #065f46;
}

.suggestion-icon.follow-up {
	background: #f3f4f6;
	color: #374151;
}

.suggestion-meta {
	display: flex;
	gap: 12px;
	align-items: center;
}

.suggestion-badge {
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.suggestion-badge.priority-high {
	background: #fee2e2;
	color: #991b1b;
}

.suggestion-badge.priority-medium {
	background: #fef3c7;
	color: #92400e;
}

.suggestion-badge.priority-low {
	background: #e0e7ff;
	color: #3730a3;
}

.suggestion-badge.theme {
	background: #f3f4f6;
	color: #4b5563;
}

.suggestion-description {
	color: #4b5563;
	line-height: 1.6;
	font-size: 14px;
}

.suggestions-loading {
	padding: 20px;
	text-align: center;
	color: #6b7280;
}

tr.clickable-row {
	cursor: pointer;
}

tr.clickable-row:hover {
	background: #f0f4ff !important;
}

/* Integrations */
.integrations-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
}

.integration-item {
	padding: 20px;
	background: #f9fafb;
	border-radius: 12px;
	border: 1px solid #e5e5e5;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: all 0.2s ease;
}

.clickable-integration {
	cursor: pointer;
}

.clickable-integration:hover {
	background: #f3f4f6;
	border-color: #F38020;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(243, 128, 32, 0.1);
}

.integration-logo {
	width: 32px;
	height: 32px;
	object-fit: contain;
	border-radius: 6px;
}

.integration-header {
	display: flex;
	align-items: center;
	gap: 12px;
}

.integration-icon {
	font-size: 24px;
}

.integration-info {
	flex: 1;
}

.integration-name {
	font-weight: 600;
	font-size: 14px;
	color: #1a1a1a;
}

.integration-status {
	font-size: 12px;
	color: #10b981;
	display: flex;
	align-items: center;
	gap: 4px;
}

.integration-status::before {
	content: "●";
	color: #10b981;
	font-size: 8px;
}

.integration-count {
	font-size: 24px;
	font-weight: 700;
	color: #1a1a1a;
}

.integration-label {
	font-size: 12px;
	color: #6b7280;
}

/* AI Confidence & Reasoning */
.ai-metadata {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #e5e5e5;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ai-confidence {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
}

.confidence-badge {
	padding: 4px 8px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 11px;
}

.confidence-badge.high {
	background: #d1fae5;
	color: #065f46;
}

.confidence-badge.medium {
	background: #fef3c7;
	color: #92400e;
}

.confidence-badge.low {
	background: #fee2e2;
	color: #991b1b;
}

.ai-reasoning {
	font-size: 12px;
	color: #6b7280;
	font-style: italic;
	padding: 8px;
	background: #f9fafb;
	border-radius: 6px;
	border-left: 3px solid #F38020;
}

/* Urgency Ranking */
.urgency-rank {
	font-weight: 700;
	color: #F38020;
	font-size: 14px;
}

/* Integration Feedback List */
.integration-feedback-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: 600px;
	overflow-y: auto;
}

.integration-feedback-item {
	padding: 16px;
	background: #f9fafb;
	border-radius: 8px;
	border: 1px solid #e5e5e5;
	cursor: pointer;
	transition: all 0.2s ease;
}

.integration-feedback-item:hover {
	background: #f3f4f6;
	border-color: #F38020;
	transform: translateX(4px);
}

.integration-feedback-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.integration-feedback-id {
	font-weight: 600;
	color: #F38020;
	font-size: 14px;
}

.integration-feedback-content {
	color: #1a1a1a;
	line-height: 1.6;
	margin-bottom: 12px;
}

.integration-feedback-meta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	font-size: 12px;
	color: #6b7280;
}

.integration-feedback-meta span {
	padding: 4px 8px;
	background: #e5e5e5;
	border-radius: 4px;
}
