/**
 * Media Analysis Component Styles
 */

.media-analysis-panel {
    margin-top: 1rem;
}

.media-analysis-panel .card {
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.media-analysis-panel .card-header {
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.media-analysis-panel .card-body {
    padding: 1rem;
}

/* Metric row styling */
.metric-row {
    padding: 0.4rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

/* Chart legend styling */
.chart-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
}

.chart-legend span {
    font-size: 0.875rem;
}

/* Loading spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .media-analysis-panel .row {
        row-gap: 1rem;
    }

    .metric-value {
        font-size: 1rem;
    }
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.media-analysis-panel {
    animation: fadeIn 0.3s ease-in;
}
