/* Pitcher Gauge Panel Styles */
.pitcher-gauge-panel {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.pitcher-gauge-panel h3 {
    color: #002d72;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-align: center;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

.gauges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.pitcher-gauge {
    position: relative;
    text-align: center;
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pitcher-gauge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pitcher-gauge canvas {
    margin: 0 auto;
    display: block;
}

.gauge-value {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.gauge-value .value {
    font-size: 24px;
    font-weight: 700;
    color: #002d72;
    font-family: 'Roboto Mono', monospace;
    line-height: 1;
}

.gauge-value .label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    margin-top: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.gauge-value .target {
    font-size: 10px;
    color: #9ca3af;
    margin-top: 2px;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pitcher-gauge-panel {
        padding: 16px;
        margin: 10px 0;
    }

    .gauges-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 16px;
    }

    .pitcher-gauge {
        padding: 12px;
    }

    .gauge-value .value {
        font-size: 20px;
    }

    .gauge-value .label {
        font-size: 11px;
    }

    .gauge-value .target {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .gauges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .pitcher-gauge-panel h3 {
        font-size: 1.25rem;
    }
}

/* Color scheme for performance indicators */
.gauge-excellent {
    border-left: 4px solid #10b981;
}

.gauge-good {
    border-left: 4px solid #3b82f6;
}

.gauge-average {
    border-left: 4px solid #f59e0b;
}

.gauge-poor {
    border-left: 4px solid #ef4444;
}

/* Loading state */
.pitcher-gauge-panel.loading {
    opacity: 0.6;
    pointer-events: none;
}

.pitcher-gauge-panel.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #002d72;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Error state */
.pitcher-gauge-panel.error {
    border: 2px solid #ef4444;
    background: #fef2f2;
}

.pitcher-gauge-panel.error h3 {
    color: #dc2626;
}

/* Success animations */
.pitcher-gauge.animate-in {
    animation: gaugeSlideIn 0.5s ease-out forwards;
}

@keyframes gaugeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}