/* Chrome Extension Security Analyzer - Chart.js Styles */
/* File Analysis Charts Styling */

/* Chart Container Styles */
#fileAnalysisCharts {
    margin: 2rem 1rem;
}

#fileAnalysisCharts h3 {
    color: #342e7c;
    margin-bottom: 2rem;
    font-size: 1.4rem;
    font-weight: 600;
}

/* Chart Grid Layout */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 8rem 1fr;
    gap: 0;
    max-width: 1400px;
    margin: auto;
    width: 100%;
}

/* Individual Chart Cards */
.chart-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    width: 100%;
}

.chart-card h4 {
    margin: 0 0 1.2rem 0;
    color: #1f2937;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

/* Chart Canvas Container */
.chart-canvas-container {
    position: relative;
    height: 350px;
    width: 100%;
}

/* Error Display Styles */
.chart-error {
    text-align: center;
    padding: 2rem;
    color: #ef4444;
}

.chart-error h3 {
    color: #ef4444;
    margin-bottom: 1rem;
}

.chart-error p {
    margin-bottom: 0.5rem;
}

.chart-error .error-details {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .chart-card {
        padding: 1.5rem;
    }
    
    .chart-canvas-container {
        height: 300px;
    }
}

@media (max-width: 768px) {
    #fileAnalysisCharts {
        margin: 1rem 0.5rem;
    }

    #fileAnalysisCharts h3 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .chart-card {
        padding: 1rem;
    }

    .chart-card h4 {
        font-size: 1.1rem;
    }

    .chart-canvas-container {
        height: 275px;
    }
}

/* ========== MOBILE ONLY - 480px ========== */
@media (max-width: 480px) {
    #fileAnalysisCharts {
        width: 100% !important;
        margin: 0.5rem 0 !important;
        padding: 0 0.25rem !important;
    }

    #fileAnalysisCharts h3 {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .charts-grid {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .chart-card {
        width: 100% !important;
        margin-bottom: 1rem !important;
        padding: 0.5rem !important;
    }

    .chart-card h4 {
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem !important;
    }

    .chart-canvas-container {
        height: 200px !important;
        width: 100% !important;
    }
}