/* Test Performance Dashboard Styles */
#test-performance-container {
    margin: 0 auto;
	border-radius: 25px 25px 0px 0px;
}

#performance-content { padding: 30px;}

/* Loading States */
.loading-container {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #dc267f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-container p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Error States */
.error-container {
    text-align: center;
    padding: 60px 20px;
}

.test-performance-error {
    text-align: center;
    padding: 40px 20px;
    border-radius: 8px;
    /*border-left: 4px solid #dc267f;*/
}

.error-icon {
    color: #dc267f;
    margin: 20px auto;
	width: 50px;
	height: 50px;
}

.error-container h3,
.test-performance-error h3 {
    color: #333;
    margin: 20px 0 10px;
    font-size: 24px;
    font-weight: 600;
}

.error-container p,
.test-performance-error p {
    color: #666;
    margin: 0 0 20px;
    font-size: 16px;
}

/* Header */
.performance-header {
    text-align: center;
    padding: 0px 0px 0px 0px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover,
.stat-card-hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 127, 0.15);
    border-color: #dc267f;
}

.stat-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #dc267f, #ffc107);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.stat-sublabel {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

/* Chart Section */
.chart-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.chart-header {
    margin-bottom: 30px;
}

.chart-header h3 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-header h3 svg {
    color: #dc267f;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.chart-subtitle {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 20px;
}

.chart-summary {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #dc267f;
}

.chart-summary p {
    margin: 0;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

/* Insights Section */
.insights-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.insights-section h3 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.insights-section h3 svg {
    color: #dc267f;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.insight-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border-left: 4px solid #e9ecef;
    transition: all 0.3s ease;
}

.insight-card.insight-achievement {
    border-left-color: #28a745;
    background: #f8fff9;
}

.insight-card.insight-positive {
    border-left-color: #17a2b8;
    background: #f0fbff;
}

.insight-card.insight-suggestion {
    border-left-color: #ffc107;
    background: #fffdf0;
}

.insight-card.insight-info {
    border-left-color: #6c757d;
    background: #f8f9fa;
}

.insight-card.insight-encouragement {
    border-left-color: #dc267f;
    background: #fef7fb;
}

.insight-icon {
    flex-shrink: 0;
    color: inherit;
}

.insight-card.insight-achievement .insight-icon {
    color: #28a745;
}

.insight-card.insight-positive .insight-icon {
    color: #17a2b8;
}

.insight-card.insight-suggestion .insight-icon {
    color: #ffc107;
}

.insight-card.insight-info .insight-icon {
    color: #6c757d;
}

.insight-card.insight-encouragement .insight-icon {
    color: #dc267f;
}

.insight-content h4 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
}

.insight-content p {
    color: #555;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.no-insights {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #dc267f, #ffc107);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 127, 0.3);
}

.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Filter Section Styles */
.filters-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    min-width: 150px;
}

.filter-group select:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    #test-performance-container {}
	#performance-content { padding: 15px;}
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-value {
        font-size: 24px;
    }
	
	.performance-header {
    text-align: center;
    padding: 0px 0px 0px 0px;
}
    
    .chart-section,
    .insights-section {
        padding: 20px;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 250px;
    }
}

@media (max-width: 480px) {
    #test-performance-container {
    }
    
    .stat-card {
        gap: 15px;
    }
	
    .chart-container {
        height: 200px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* SVG Icon Styles */
.stat-icon svg,
.error-icon svg,
.insight-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Header and section SVG icons have specific sizes */
.performance-header svg,
.chart-header svg,
.insights-section h3 svg {
    width: auto;
    height: auto;
}

/**/

.tab-container {
    text-align: center;
}

.tab-group {
    display: inline-flex;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.tab-link {
	display: block;
	padding: 12px 24px;
	text-decoration: none;
	color: white;
	font-weight: bold;
	font-size: 14px;
	text-align: center;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
}
.tab-link:first-child {
	background: linear-gradient(135deg, #e74c3c, #c0392b);
}
.tab-link:last-child {
	background: linear-gradient(135deg, #c0392b, #922b21);
}
.tab-link:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.tab-link:active {
	transform: translateY(0);
}