/* Click Accuracy Test Styles */
.accuracy-test-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.test-header {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    color: #fff;
    padding: 20px;
    text-align: center;
}

.test-header h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.test-header p {
    margin: 0;
    opacity: 0.9;
}

.test-modes {
    display: flex;
    flex-wrap: wrap;
    padding: 15px;
    background-color: #f5f7fa;
    border-bottom: 1px solid #e1e5eb;
    align-items: center;
}

.test-mode {
    background-color: #fff;
    border: 2px solid #e1e5eb;
    border-radius: 20px;
    color: #4a5568;
    cursor: pointer;
    font-weight: 500;
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.test-mode:hover {
    border-color: #2a5298;
    color: #2a5298;
}

.test-mode.active {
    background-color: #2a5298;
    border-color: #2a5298;
    color: #fff;
}

.custom-settings {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 10px;
    padding: 10px;
    background-color: #f0f4f8;
    border-radius: 8px;
    width: 100%;
}

.custom-settings label {
    margin-right: 10px;
    font-weight: 500;
}

.custom-settings input {
    margin-right: 20px;
    padding: 5px;
    border: 1px solid #cfd8dc;
    border-radius: 4px;
}

.custom-settings input[type="range"] {
    width: 150px;
}

.custom-settings span {
    margin-right: 20px;
}

.accuracy-test-area {
    position: relative;
    width: 100%;
    height: 500px;
    background-color: #f8fafc;
    overflow: hidden;
}

.test-status {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.status-ready {
    text-align: center;
    padding: 20px;
    max-width: 500px;
}

.status-ready i {
    font-size: 48px;
    color: #2a5298;
    margin-bottom: 20px;
}

.status-ready h3 {
    margin: 0 0 15px;
    color: #2d3748;
}

.status-ready p {
    margin: 0 0 25px;
    color: #4a5568;
}

.status-active {
    width: 100%;
    height: 100%;
    position: relative;
}

.target-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.target {
    position: absolute;
    background: radial-gradient(circle, #2a5298 0%, #1e3c72 100%);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s ease;
    animation: pulse 1.5s infinite;
}

.target:hover {
    transform: scale(1.05);
}

.target.hit {
    background: radial-gradient(circle, #4caf50 0%, #2e7d32 100%);
    animation: hit 0.3s ease-out;
}

.target.miss {
    background: radial-gradient(circle, #f44336 0%, #c62828 100%);
    animation: miss 0.3s ease-out;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(42, 82, 152, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(42, 82, 152, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(42, 82, 152, 0);
    }
}

@keyframes hit {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(0);
    }
}

@keyframes miss {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.test-info {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    display: flex;
    gap: 15px;
}

.info-item {
    text-align: center;
}

.info-label {
    font-size: 12px;
    color: #4a5568;
    margin-bottom: 5px;
}

.info-value {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
}

.status-complete {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    max-width: 600px;
}

.result-header {
    font-size: 28px;
    font-weight: 700;
    color: #2a5298;
    margin-bottom: 20px;
}

.result-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.result-stat {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    min-width: 120px;
}

.result-label {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 5px;
}

.result-value {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
}

.result-rating {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    border-radius: 8px;
    color: #fff;
    padding: 15px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rating-label {
    font-size: 16px;
    margin-bottom: 5px;
}

.rating-value {
    font-size: 28px;
    font-weight: 700;
}

.accuracy-chart-container {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.chart-title {
    margin: 0 0 20px;
    text-align: center;
    color: #2d3748;
}

.chart-container {
    height: 300px;
    margin-bottom: 20px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    margin-right: 8px;
}

.legend-label {
    font-size: 14px;
    color: #4a5568;
}

.accuracy-comparison {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.comparison-title {
    margin: 0 0 20px;
    text-align: center;
    color: #2d3748;
}

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

.comparison-table th,
.comparison-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #e1e5eb;
}

.comparison-table th {
    background-color: #f5f7fa;
    font-weight: 600;
    color: #2d3748;
}

.comparison-table tr.highlight {
    background-color: #f0f7ff;
}

.performance-indicator {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.performance-poor {
    background-color: #ffebee;
    color: #c62828;
}

.performance-average {
    background-color: #fff8e1;
    color: #f57f17;
}

.performance-good {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.performance-excellent {
    background-color: #e3f2fd;
    color: #1565c0;
}

.performance-elite {
    background-color: #ede7f6;
    color: #4527a0;
}

.accuracy-tips {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.accuracy-tips h3 {
    margin: 0 0 20px;
    text-align: center;
    color: #2d3748;
}

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

.tip-card {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tip-icon {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
}

.tip-icon i {
    font-size: 24px;
}

.tip-card h4 {
    margin: 0 0 10px;
    color: #2d3748;
}

.tip-card p {
    margin: 0;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .accuracy-test-area {
        height: 400px;
    }
    
    .test-info {
        top: 10px;
        right: 10px;
        padding: 10px;
        gap: 10px;
    }
    
    .result-stats {
        gap: 10px;
    }
    
    .result-stat {
        min-width: calc(50% - 10px);
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .test-modes {
        justify-content: center;
    }
    
    .custom-settings {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .custom-settings label,
    .custom-settings input,
    .custom-settings span {
        margin-bottom: 10px;
    }
    
    .status-complete {
        padding: 20px;
    }
    
    .result-stat {
        min-width: 100%;
    }
}
