/* Dashboard Specific Styles for Bad News Bears */

/* Dashboard Layout */
.dashboard-main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.dashboard-header {
    margin-bottom: 2rem;
    text-align: center;
}

.dashboard-header h1 {
    color: #004080;
    margin-bottom: 1rem;
}

.dashboard-intro {
    max-width: 800px;
    margin: 0 auto;
    color: #004080;
}

/* Summary Cards */
.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.summary-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.summary-card h3 {
    color: #004080;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.summary-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.summary-change {
    font-size: 0.9rem;
}

.summary-change.positive {
    color: #009933;
}

.summary-change.negative {
    color: #cc0000;
}

.total-stolen .summary-value {
    color: #cc0000;
}

.incidents .summary-value {
    color: #0066cc;
}

.avg-theft .summary-value {
    color: #ff6600;
}

.recovery-rate .summary-value {
    color: #009933;
}

/* Top Thefts Table */
.top-thefts {
    margin-bottom: 2.5rem;
}

.top-thefts h2 {
    color: #004080;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #99d6ff;
    padding-bottom: 0.5rem;
}

.table-container {
    overflow-x: auto;
}

.theft-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.theft-table th,
.theft-table td {
    padding: 1rem;
    text-align: left;
}

.theft-table th {
    background-color: #0066cc;
    color: white;
    font-weight: bold;
}

.theft-table tr:nth-child(even) {
    background-color: #f5f5f5;
}

.theft-table tr:hover {
    background-color: #e6f7ff;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.chart-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.chart-card h3 {
    color: #004080;
    margin-bottom: 1rem;
    text-align: center;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Perpetrator Impact */
.perpetrator-impact {
    margin-bottom: 2.5rem;
}

.perpetrator-impact h2 {
    color: #004080;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #99d6ff;
    padding-bottom: 0.5rem;
    text-align: center;
}

.perpetrator-card {
    display: flex;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.perpetrator-image {
    flex: 1;
    max-width: 300px;
}

.perpetrator-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.perpetrator-info {
    flex: 2;
    padding: 2rem;
}

.perpetrator-info h3 {
    color: #004080;
    margin-bottom: 1rem;
}

.perpetrator-stats {
    display: flex;
    justify-content: space-between;
    margin: 1.5rem 0;
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #cc0000;
    display: block;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.perpetrator-chart {
    margin-top: 1.5rem;
    height: 200px;
}

/* Historical Analysis */
.historical-analysis {
    margin-bottom: 2.5rem;
}

.historical-analysis h2 {
    color: #004080;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #99d6ff;
    padding-bottom: 0.5rem;
    text-align: center;
}

.historical-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.historical-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.historical-card h3 {
    color: #004080;
    margin-bottom: 1rem;
    text-align: center;
}

.chart-insight {
    margin-top: 1rem;
    font-style: italic;
    color: #666;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .dashboard-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .historical-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .perpetrator-card {
        flex-direction: column;
    }
    
    .perpetrator-image {
        max-width: 100%;
        height: 200px;
    }
    
    .dashboard-summary {
        grid-template-columns: 1fr;
    }
}
