/* Mouse Sensor Quality Test Specific Styles */
:root {
    --primary-color: #2a5298;
    --primary-light: rgba(42, 82, 152, 0.1);
    --primary-dark: #1e3c72;
    --accent-color: #4CAF50;
    --accent-light: rgba(76, 175, 80, 0.1);
    --accent-dark: #2E7D32;
    --text-dark: #333333;
    --text-medium: #555555;
    --text-light: #777777;
    --border-color: #e0e0e0;
    --background-light: #f5f5f5;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

.sensor-test-container {
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.test-tabs {
    display: flex;
    background-color: var(--background-light);
    border-bottom: 1px solid var(--border-color);
}

.test-tab {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-medium);
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
}

.test-tab:hover {
    background-color: rgba(42, 82, 152, 0.05);
}

.test-tab.active {
    color: var(--primary-color);
    background-color: var(--white);
}

.test-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.test-content {
    padding: 30px;
    display: none;
}

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

.test-header {
    text-align: center;
    margin-bottom: 25px;
}

.test-header h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.test-header p {
    color: var(--text-medium);
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
}

.test-area {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    position: relative;
    height: 400px;
    margin-bottom: 20px;
    overflow: hidden;
}

.tracking-area {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: crosshair;
}

.tracking-path {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.tracking-point {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.tracking-line {
    position: absolute;
    height: 2px;
    background-color: var(--primary-color);
    pointer-events: none;
    transform-origin: left center;
}

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

.test-button {
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.test-button:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}

.test-button:disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
}

.test-button i {
    font-size: 16px;
}

.test-options {
    display: flex;
    gap: 15px;
}

.option-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-label {
    font-size: 14px;
    color: var(--text-medium);
}

.option-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--white);
    color: var(--text-dark);
    font-size: 14px;
}

.option-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(42, 82, 152, 0.1);
}

.test-results {
    background-color: var(--background-light);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 30px;
}

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

.results-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.results-actions {
    display: flex;
    gap: 10px;
}

.action-button {
    padding: 8px 12px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-medium);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-button:hover {
    background-color: var(--background-light);
    border-color: var(--text-light);
}

.action-button i {
    font-size: 14px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.result-card {
    background-color: var(--white);
    border-radius: var(--radius-sm);
    padding: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.result-label {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 5px;
}

.result-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
}

.result-unit {
    font-size: 14px;
    color: var(--text-light);
    margin-left: 2px;
}

.result-rating {
    margin-top: 5px;
    font-size: 14px;
    font-weight: 500;
}

.rating-excellent {
    color: #388E3C;
}

.rating-good {
    color: #1976D2;
}

.rating-average {
    color: #FFA000;
}

.rating-poor {
    color: #D32F2F;
}

.chart-container {
    background-color: var(--white);
    border-radius: var(--radius-sm);
    padding: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.chart-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.sensor-info {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.sensor-info h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.sensor-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.sensor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.sensor-card {
    background-color: var(--background-light);
    border-radius: var(--radius-sm);
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sensor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.sensor-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.sensor-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.sensor-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.sensor-card p {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .test-tabs {
        flex-wrap: wrap;
    }
    
    .test-tab {
        flex: 1 0 50%;
    }
    
    .test-content {
        padding: 20px;
    }
    
    .test-area {
        height: 300px;
    }
    
    .test-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .test-options {
        flex-direction: column;
        width: 100%;
    }
    
    .option-group {
        width: 100%;
    }
    
    .option-select {
        flex: 1;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
}
