/* Search Analytics Dashboard Styles */

.analytics-dashboard {
    padding: 30px 0;
}

.dashboard-header {
    margin-bottom: 30px;
    text-align: center;
}

.dashboard-header h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.dashboard-header .lead {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 20px;
}

.search-info {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    display: inline-block;
}

.search-query-info {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.results-count-info {
    color: #555;
}

/* Metrics Cards */
.metrics-overview {
    margin-bottom: 40px;
}

.metric-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: transform 0.3s;
    margin-bottom: 20px;
}

.metric-card:hover {
    transform: translateY(-5px);
}

.metric-icon {
    font-size: 2.5rem;
    color: #1e88e5;
    margin-right: 20px;
}

.metric-content {
    flex: 1;
}

.metric-title {
    font-size: 1rem;
    color: #555;
    margin-bottom: 5px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
}

.metric-note {
    font-size: 0.85rem;
    color: #777;
    margin-top: 5px;
}

/* Chart Cards */
.charts-row {
    margin-bottom: 40px;
}

.chart-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.chart-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.chart-title i {
    margin-right: 10px;
    color: #1e88e5;
}

.chart-container {
    height: 300px;
    margin: 0 auto;
}

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    color: #333;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.section-title i {
    margin-right: 10px;
    color: #1e88e5;
}

/* Readability Analysis Table */
.readability-analysis {
    margin-bottom: 40px;
}

.readability-analysis .table {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.readability-analysis .table th {
    background-color: #f8f9fa;
}

.badge-warning {
    background-color: #ffb74d;
}

.badge-success {
    background-color: #66bb6a;
}

.progress {
    height: 20px;
    border-radius: 10px;
}

.bg-danger {
    background-color: #ef5350 !important;
}

.bg-warning {
    background-color: #ffb74d !important;
}

.bg-success {
    background-color: #66bb6a !important;
}

/* Common Issues Cards */
.readability-issues {
    margin-bottom: 40px;
}

.issue-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: 100%;
    margin-bottom: 20px;
    display: flex;
}

.issue-icon {
    font-size: 2rem;
    color: #ff7043;
    margin-right: 15px;
}

.issue-content {
    flex: 1;
}

.issue-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
}

.issue-frequency {
    color: #555;
    margin-bottom: 10px;
    font-weight: 500;
}

.issue-example {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
}

.issue-recommendation {
    font-size: 0.9rem;
    color: #1e88e5;
}

/* No Data Message */
.no-data-message {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.no-data-icon {
    font-size: 4rem;
    color: #bdbdbd;
    margin-bottom: 20px;
}

.no-data-message h3 {
    color: #555;
    margin-bottom: 15px;
}

.no-data-message p {
    color: #777;
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .metric-card {
        flex-direction: column;
        text-align: center;
    }
    
    .metric-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .issue-card {
        flex-direction: column;
    }
    
    .issue-icon {
        margin-right: 0;
        margin-bottom: 15px;
        text-align: center;
    }
}