/**
 * Inspiro Survey Dashboard Styles
 *
 * @package Inspiro
 */

.inspiro-survey-dashboard {
	background: #fff;
	margin: 20px 0;
}

.inspiro-dashboard-nav {
	border-bottom: 1px solid #ddd;
	margin-bottom: 20px;
}

.nav-tab {
	background: none;
	border: none;
	padding: 10px 15px;
	margin-left: 5px;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	font-size: 14px;
	color: #666;
	transition: all 0.2s ease;
}

.nav-tab:hover,
.nav-tab.nav-tab-active {
	color: #0073aa;
	border-bottom-color: #0073aa;
}

.tab-content {
	display: none;
}

.tab-content.active {
	display: block;
}

/* Dashboard Stats */
.dashboard-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.stat-card {
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px;
	text-align: center;
}

.stat-card h3 {
	margin: 0 0 10px 0;
	font-size: 14px;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.stat-number {
	font-size: 36px;
	font-weight: bold;
	color: #0073aa;
	margin: 10px 0;
}

.stat-text {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin: 10px 0;
}

/* Charts */
.dashboard-charts {
	margin-bottom: 30px;
}

.chart-container {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 20px;
}

.chart-container h3 {
	margin: 0 0 20px 0;
	color: #333;
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
}

.chart-container canvas {
	max-height: 400px;
}

/* Tables */
.reasons-table,
.themes-table {
	margin-top: 20px;
}

.reasons-table h3,
.themes-table h3 {
	margin-bottom: 15px;
	color: #333;
}

/* Feedback */
.feedback-filters {
	display: flex;
	gap: 15px;
	margin-bottom: 20px;
	align-items: center;
}

.feedback-filters select {
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.feedback-list {
	max-height: 600px;
	overflow-y: auto;
	border: 1px solid #ddd;
	border-radius: 8px;
}

.feedback-item {
	padding: 15px;
	border-bottom: 1px solid #eee;
	background: #f9f9f9;
}

.feedback-item:last-child {
	border-bottom: none;
}

.feedback-meta {
	font-size: 12px;
	color: #666;
	margin-bottom: 8px;
}

.feedback-content {
	color: #333;
	line-height: 1.5;
}

.feedback-choices {
	background: #e7f3ff;
	padding: 8px 12px;
	border-radius: 4px;
	margin: 8px 0;
	font-size: 13px;
}

/* Settings */
.form-table th {
	width: 200px;
}

.data-management {
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px;
	margin-top: 20px;
}

.data-management h3 {
	margin-top: 0;
}

.data-management p {
	margin: 10px 0;
}

/* Footer */
.inspiro-dashboard-footer {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #ddd;
	text-align: center;
	color: #666;
	font-size: 13px;
}

/* Loading States */
.loading {
	text-align: center;
	padding: 40px;
	color: #666;
}

.loading::after {
	content: '...';
	animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
	0%, 20% { content: ''; }
	40% { content: '.'; }
	60% { content: '..'; }
	80%, 100% { content: '...'; }
}

/* Responsive */
@media (max-width: 768px) {
	.dashboard-stats {
		grid-template-columns: 1fr;
	}
	
	.feedback-filters {
		flex-direction: column;
		align-items: stretch;
	}
	
	.nav-tab {
		padding: 8px 12px;
		font-size: 13px;
	}
}