.dashboard {
    padding: 2rem 0;
    background: #f8fafc;
    min-height: calc(100vh - 80px);
}

.dashboard-header {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dashboard-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

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

.stat-card {
    background: #f1f5f9;
    padding: 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card i {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--primary-color);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

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

.dashboard .stat-label {
    font-size: 0.875rem;
    color: #64748b;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.dashboard-section {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.reports-grid {
    display: grid;
    gap: 1.25rem;
}

.report-card {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.report-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e2e8f0, #e2e8f0);
    transition: all 0.3s ease;
}

/* Region Indicator Badge */
.report-card::after {
    content: 'Other';
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    background: #94a3b8;
    color: white;
    opacity: 0.9;
    z-index: 1;
}

/* US/CA Region Badge (vdb) */
.report-card[data-api-source="vdb"]::after {
    content: 'US/CA';
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.report-card[data-api-source="vdb"]::before {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

/* EU Region Badge (vindecoder) */
.report-card[data-api-source="vindecoder"]::after {
    content: 'EU';
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.report-card[data-api-source="vindecoder"]::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.report-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.report-card:hover::after {
    opacity: 1;
    transform: scale(1.05);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    z-index: 0;
}

.report-brand {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    flex: 1;
    min-width: 0;
    position: relative;
}

.brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.brand-logo-placeholder {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.brand-logo-placeholder i {
    width: 28px;
    height: 28px;
    color: #94a3b8;
}

.report-card:hover .brand-logo {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.report-card:hover .brand-logo-placeholder {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.vehicle-info {
    flex: 1;
    min-width: 0;
    padding-right: 0.5rem;
}

.vehicle-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.engine {
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 0.8125rem;
    color: #64748b;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.dashboard-section .vin {
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #475569;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    padding: 0.375rem 0.625rem;
    border-radius: 0.5rem;
    display: inline-block;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    border: 1px solid #cbd5e1;
}

.date {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.date::before {
    content: '📅';
    font-size: 0.75rem;
    opacity: 0.7;
}

.report-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    align-items: flex-start;
}

.btn-view,
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-view {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark, #2563eb));
    color: white;
    border: none;
}

.btn-view:hover {
    background: linear-gradient(135deg, var(--primary-dark, #2563eb), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.btn-view:active {
    transform: translateY(0);
}

.btn-download {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.btn-download:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.2s ease;
}

.action-card:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.action-card i {
    width: 2rem;
    height: 2rem;
    color: var(--primary-color);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.empty-state i {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }

    .report-card {
        padding: 1.25rem;
    }

    .report-card::after {
        top: 0.75rem;
        right: 0.75rem;
        font-size: 0.6875rem;
        padding: 0.2rem 0.5rem;
    }

    .report-header {
        flex-direction: column;
        gap: 1.25rem;
    }

    .report-brand {
        width: 100%;
        gap: 1rem;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
        padding: 0.5rem;
    }

    .vehicle-info {
        padding-right: 0;
    }

    .vehicle-info h3 {
        font-size: 1.125rem;
    }

    .report-actions {
        margin-left: 0;
        width: 100%;
        justify-content: stretch;
        padding-top: 0.5rem;
        border-top: 1px solid #e2e8f0;
    }

    .btn-view,
    .btn-download {
        flex: 1;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .report-card {
        padding: 1rem;
    }

    .brand-logo {
        width: 44px;
        height: 44px;
    }

    .vehicle-info h3 {
        font-size: 1rem;
        margin-bottom: 0.375rem;
    }

    .dashboard-section .vin {
        font-size: 0.875rem;
        padding: 0.25rem 0.5rem;
    }

    .engine {
        font-size: 0.75rem;
    }

    .date {
        font-size: 0.8125rem;
    }

    .btn-view,
    .btn-download {
        font-size: 0.8125rem;
        padding: 0.625rem 0.875rem;
    }
}