/* Analytics Styles - Extracted from analytics components */

/* Chart Containers */
.analytics-chart {
    height: 300px;
    width: 100%;
}

.chart-container {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.chart-description {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Usage Trends Chart */
#usage-trends-chart {
    height: 300px;
}

.no-data-message {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6b7280;
    font-size: 14px;
}

/* Hourly Patterns Chart */
#hourly-patterns-chart {
    height: 300px;
}

/* Feed Comparison Chart */
#feed-comparison-chart {
    height: 300px;
}

/* Response Quality Indicators */
.quality-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.quality-label {
    flex: 1;
    font-size: 14px;
    color: #374151;
    margin-right: 16px;
}

.quality-bar {
    flex: 2;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.indicator-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.indicator-fill.success {
    background: linear-gradient(90deg, #10b981, #059669);
}

.indicator-fill.warning {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.indicator-fill.danger {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.quality-value {
    margin-left: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    min-width: 40px;
    text-align: right;
}

/* Top Feeds Performance */
.feed-performance {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.feed-name {
    flex: 1;
    font-size: 14px;
    color: #374151;
    margin-right: 16px;
}

.performance-bar {
    flex: 2;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.performance-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.performance-value {
    margin-left: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    min-width: 30px;
    text-align: right;
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.analytics-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.analytics-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.analytics-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.analytics-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.analytics-card-icon.primary {
    background: #dbeafe;
    color: #1d4ed8;
}

.analytics-card-icon.success {
    background: #dcfce7;
    color: #16a34a;
}

.analytics-card-icon.warning {
    background: #fef3c7;
    color: #d97706;
}

.analytics-card-icon.danger {
    background: #fee2e2;
    color: #dc2626;
}

.analytics-card-value {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.analytics-card-change {
    font-size: 14px;
    font-weight: 500;
}

.analytics-card-change.positive {
    color: #16a34a;
}

.analytics-card-change.negative {
    color: #dc2626;
}

/* Analytics Filters */
.analytics-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    min-width: 120px;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Analytics Summary */
.analytics-summary {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.analytics-summary h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

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

.summary-stat {
    text-align: center;
}

.summary-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.summary-stat-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-filters {
        flex-direction: column;
    }
    
    .filter-select {
        min-width: auto;
    }
    
    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .analytics-chart {
        height: 250px;
    }
} 