/* Veículos Page Specific Styles */

/* Metrics Grid - Top Cards */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.metric-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#meta-card {
    background-color: #7DDF64;
}
#realizado-card {
    background-color: #FFBC42;
}
#previsto-card {
    background-color: #6290C3;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.metric-icon {
    font-size: 64px;
    color: #333;
    margin-bottom: 16px;
    line-height: 1;
}

.metric-label {
    font-size: 18px;
    font-weight: 100;
    letter-spacing: 0.8px;
    color: #000000;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.metric-number {
    font-size: 56px;
    font-weight: 600;
    color: #000;
    line-height: 1;
}

/* Chart Card */
.chart-card {
    margin-bottom: 40px;
}

.card-subtitle {
    font-size: 14px;
    color: #999;
    margin-bottom: 24px;
    margin-top: -10px;
}

.line-chart-container {
    position: relative;
    height: 300px;
    padding: 20px 0;
}

/* Table Card */
.table-card {
    margin-bottom: 40px;
}

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

.dealership-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.dealership-table thead {
    background-color: #f9f9f9;
}

.dealership-table th {
    text-align: left;
    padding: 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #666;
    border-bottom: 2px solid #e0e0e0;
}

.dealership-table td {
    padding: 18px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.dealership-table tbody tr:hover {
    background-color: #f9f9f9;
}

.dealership-table td:first-child {
    font-weight: 600;
    color: #000;
}

.dealership-table td:not(:first-child) {
    text-align: left;
}

/* Map Card */
.map-card {
    margin-bottom: 40px;
}

.map-container {
    position: relative;
    height: 300px;
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

/* Heatmap simulation overlay */
#map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 60% 35%, rgba(255, 87, 34, 0.6) 0%, transparent 15%),
        radial-gradient(circle at 70% 45%, rgba(255, 152, 0, 0.5) 0%, transparent 18%),
        radial-gradient(circle at 35% 55%, rgba(139, 195, 74, 0.5) 0%, transparent 20%),
        radial-gradient(circle at 25% 40%, rgba(139, 195, 74, 0.4) 0%, transparent 15%),
        radial-gradient(circle at 50% 60%, rgba(255, 193, 7, 0.5) 0%, transparent 17%),
        radial-gradient(circle at 80% 70%, rgba(139, 195, 74, 0.4) 0%, transparent 14%);
    opacity: 0.8;
}

/* Map controls mockup */
.map-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.map-control-btn {
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
    transition: background-color 0.2s ease;
}

.map-control-btn:hover {
    background-color: #f5f5f5;
}

/* Map overlay info */
.map-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    max-width: 250px;
    z-index: 10;
}

.map-overlay h4 {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.map-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #333;
}

.legend-color {
    width: 24px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.high {
    background: linear-gradient(90deg, rgba(255, 87, 34, 0.8), rgba(255, 152, 0, 0.8));
}

.legend-color.medium {
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.8), rgba(139, 195, 74, 0.8));
}

.legend-color.low {
    background: linear-gradient(90deg, rgba(139, 195, 74, 0.6), rgba(139, 195, 74, 0.3));
}

/* Responsive Design */
@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .metric-card {
        padding: 24px;
    }
    
    .metric-number {
        font-size: 32px;
    }
    
    .line-chart-container {
        height: 250px;
    }
    
    .map-container {
        height: 300px;
    }
    
    .map-overlay {
        bottom: 10px;
        left: 10px;
        padding: 12px;
        max-width: 200px;
    }
    
    .table-container {
        overflow-x: scroll;
    }
    
    .dealership-table {
        font-size: 12px;
    }
    
    .dealership-table th,
    .dealership-table td {
        padding: 12px 8px;
    }
}

/* Chart.js custom styling */
.line-chart-container canvas {
    max-height: 300px;
}

