/* VIN Decoder Enhanced Styles - Dark Theme */

/* Decoder Results Container */
.decoder-results {
    margin-top: 2rem;
    animation: fadeIn 0.3s ease-in;
}

/* Vehicle Identity Header */
.decode-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18) 0%, rgba(139, 92, 246, 0.18) 100%);
    border: 2px solid rgba(59, 130, 246, 0.25);
    border-radius: 24px;
    color: var(--text-primary);
    margin-bottom: 2rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4),
                0 0 60px rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.decode-result-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.15), transparent 60%);
    pointer-events: none;
}

.vehicle-identity {
    position: relative;
    z-index: 1;
}

.vehicle-identity h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.vin-display {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 3px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
    color: #93c5fd;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: 1.5px solid rgba(59, 130, 246, 0.3);
    display: inline-block;
    margin: 0;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.vehicle-trim {
    font-size: 1rem;
    margin: 0.5rem 0 0 0;
    color: var(--text-secondary);
    font-weight: 500;
}

#add-to-garage-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    padding: 0.85rem 1.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35),
                0 0 30px rgba(59, 130, 246, 0.15);
    white-space: nowrap;
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

#add-to-garage-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.45),
                0 0 40px rgba(59, 130, 246, 0.2);
    background: linear-gradient(135deg, #4c8bf5 0%, #9d6ff7 100%);
}

#add-to-garage-btn:active {
    transform: translateY(-1px);
}

/* Tabs Navigation */
.decode-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.5rem;
}

.decode-tabs::-webkit-scrollbar {
    height: 4px;
}

.decode-tabs::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.decode-tabs::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 2px;
}

.tab-btn {
    padding: 0.85rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px solid rgba(59, 130, 246, 0.15);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    white-space: nowrap;
    position: relative;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.tab-btn.active {
    color: white;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    font-weight: 700;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4),
                0 0 30px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

/* Tab Panels */
.decode-tab-content {
    position: relative;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-panel.active {
    display: block;
}

/* Decode Grid Layout */
.decode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Decode Sections */
.decode-section {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1.5px solid rgba(59, 130, 246, 0.15);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25),
                inset 0 1px 2px rgba(255, 255, 255, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.decode-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.decode-section:hover::before {
    opacity: 1;
}

.decode-section:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35),
                0 0 40px rgba(59, 130, 246, 0.1),
                inset 0 1px 2px rgba(255, 255, 255, 0.05);
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.35);
}

.section-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 1.2rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    margin-right: 0.75rem;
    border-radius: 2px;
}

/* Detail Grid */
.detail-grid {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(100, 116, 139, 0.15);
    align-items: center;
}

.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

/* Loading States */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.spinner-large {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-state p {
    margin-top: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Spinner Animation for Decode Button */
.spinner {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Character Counter Styling */
.char-counter {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    background: rgba(59, 130, 246, 0.1);
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.search-input-wrapper {
    position: relative;
}

/* Responsive Design */
@media (max-width: 768px) {
    .decode-result-header {
        flex-direction: column;
        padding: 1.5rem;
    }

    .vehicle-identity h2 {
        font-size: 1.5rem;
    }

    .decode-grid {
        grid-template-columns: 1fr;
    }

    .detail-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .detail-value {
        text-align: left;
    }

    .decode-tabs {
        gap: 0.25rem;
    }

    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    #add-to-garage-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .decode-section {
        padding: 1.25rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .detail-label,
    .detail-value {
        font-size: 0.85rem;
    }

    .vehicle-identity h2 {
        font-size: 1.3rem;
    }

    .vin-display {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        letter-spacing: 1px;
    }
}

/* Print Styles */
@media print {
    .decode-tabs,
    #add-to-garage-btn,
    .page-header {
        display: none;
    }

    .tab-panel {
        display: block !important;
        page-break-inside: avoid;
    }

    .decode-section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .decode-result-header {
        background: white !important;
        color: black !important;
        border: 2px solid #333;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .decode-section {
        border-width: 2px;
    }

    .detail-row {
        border-bottom-width: 2px;
    }

    .tab-btn.active {
        border-bottom-width: 3px;
    }
}

/* Colors Tab Styles */
.colors-container {
    padding: 1.5rem 0;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.color-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.color-card:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.2);
}

.color-swatch {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.color-card:hover .color-swatch {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.color-info {
    text-align: center;
}

.color-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

/* Equipment Tab Styles */
.equipment-list {
    padding: 1rem 0;
}

.equipment-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.equipment-list li {
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 8px;
    font-size: 0.9375rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.equipment-list li:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(4px);
}

/* Recalls Tab Styles */
.recalls-container {
    padding: 1.5rem 0;
}

.recalls-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.recall-card {
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.08);
    border-left: 4px solid rgba(59, 130, 246, 0.4);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.recall-card.recall-critical {
    background: rgba(239, 68, 68, 0.12);
    border-left-color: #ef4444;
}

.recall-card.recall-warning {
    background: rgba(245, 158, 11, 0.12);
    border-left-color: #f59e0b;
}

.recall-card.recall-moderate {
    background: rgba(59, 130, 246, 0.08);
    border-left-color: rgba(59, 130, 246, 0.4);
}

.recall-card:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.recall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.recall-severity {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.recall-card.recall-critical .recall-severity {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.recall-card.recall-warning .recall-severity {
    background: rgba(245, 158, 11, 0.2);
    color: #fed7aa;
}

.recall-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.recall-description {
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
    line-height: 1.5;
}

.recall-card p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Pricing & Market Tab Styles */
.cost-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.cost-item {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cost-item:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.1);
}

.cost-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

/* Maintenance Tab Styles */
.maintenance-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.maintenance-item {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.maintenance-item:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(4px);
}

.maintenance-item p {
    margin: 0.25rem 0;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.maintenance-item p:first-child {
    font-weight: 600;
    color: #60a5fa;
}

.maintenance-item p:last-child {
    color: var(--text-secondary);
}

/* Vehicle Summary Styling */
.vehicle-summary {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0.5rem 0 0 0;
    line-height: 1.5;
}

/* Text Utility Classes */
.text-muted {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-style: italic;
    margin-top: 1rem;
}

/* ========================================
   ENHANCED VIN DECODER UI STYLES
   ======================================== */

/* Vehicle Header - Large Enhanced Header */
.vehicle-header-large {
    display: grid;
    grid-template-columns: 300px 1fr auto;
    gap: 24px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(59, 130, 246, 0.1));
    border-bottom: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px 16px 0 0;
    margin-bottom: 0;
}

/* Vehicle Image */
.vehicle-image-large {
    width: 300px;
    height: 200px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-image-large img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.vehicle-image-placeholder {
    width: 300px;
    height: 200px;
    background: rgba(124, 58, 237, 0.15);
    border-radius: 12px;
    border: 2px dashed rgba(124, 58, 237, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #9ca3af;
}

.image-placeholder-content svg {
    stroke: #9ca3af;
}

/* Vehicle Title Section */
.vehicle-title-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vehicle-title-main {
    font-size: 32px;
    font-weight: 700;
    color: #e5e7eb;
    margin: 0;
}

.vehicle-subtitle {
    font-size: 18px;
    color: #9ca3af;
    margin: 0;
}

/* VIN Display */
.vin-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.vin-label {
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vin-code {
    padding: 8px 16px;
    background: rgba(124, 58, 237, 0.25);
    border: 1.5px solid rgba(124, 58, 237, 0.4);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #d8b4fe;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.btn-copy-vin {
    padding: 8px 16px;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 8px;
    color: #a78bfa;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-copy-vin:hover {
    background: rgba(124, 58, 237, 0.35);
    border-color: rgba(124, 58, 237, 0.5);
}

/* Data Source Badge */
.data-source-badge {
    margin-top: 8px;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 8px;
    width: fit-content;
}

.data-source-badge span {
    font-size: 12px;
    color: #60a5fa;
    font-weight: 600;
}

/* Vehicle Actions */
.vehicle-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: flex-start;
}

.vehicle-actions .btn-primary,
.vehicle-actions .btn-secondary,
.vehicle-actions .btn-warning {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: none;
    text-decoration: none;
}

.btn-warning {
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

.btn-warning:hover {
    background: rgba(251, 191, 36, 0.3);
    border-color: rgba(251, 191, 36, 0.5);
}

/* Quick Stats Grid */
.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    padding: 24px 32px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.1);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.stat-card:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.4);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 24px;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #e5e7eb;
}

/* Enhanced Tab Navigation */
/* ======================================
   ACCORDION STYLES (Carfax/Carvertical)
   ====================================== */

/* Hide old tab styles */
.decoder-tabs,
.tab-btn,
.tab-panel,
.tab-badge {
    display: none !important;
}

/* ======================================
   NEW: CONTINUOUS SCROLL LAYOUT
   ====================================== */

.info-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* AI Insights Hero Section */
.ai-insights-hero {
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.15) 0%,
        rgba(139, 92, 246, 0.15) 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2);
    animation: slideInDown 0.6s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.ai-icon {
    font-size: 28px;
    display: flex;
    align-items: center;
}

.ai-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0;
}

.ai-badge {
    margin-left: auto;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.insight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.insight-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.insight-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #93c5fd;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.insight-value {
    font-size: 16px;
    font-weight: 700;
    color: #e2e8f0;
}

.insight-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.insight-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.5;
}

.highlight-list li .check {
    color: #10b981;
    font-weight: bold;
}

.consideration-list li .warning {
    color: #f59e0b;
    font-weight: bold;
}

.comparable-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 20px;
    font-size: 13px;
    color: #93c5fd;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.chip:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.6);
}

/* Information Cards */
.info-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.info-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
    transform: translateY(-4px);
}

.info-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.card-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0;
    flex: 1;
}

.data-badge {
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #93c5fd;
    text-transform: uppercase;
}

.data-badge.complete {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #86efac;
}

.data-badge.partial {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

@media (max-width: 768px) {
    .data-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .data-grid {
        grid-template-columns: 1fr;
    }
}

.data-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.field-value {
    font-size: 16px;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.4;
}

/* Recalls Section */
.recalls-section {
    margin: 2rem 0;
}

.recalls-alert-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(239, 68, 68, 0.08);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 16px;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(239, 68, 68, 0.5);
    }
}

.alert-icon {
    font-size: 28px;
    display: flex;
    align-items: center;
}

.recalls-alert-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #fecaca;
    margin: 0;
    flex: 1;
}

.alert-badge {
    padding: 6px 14px;
    background: #ef4444;
    color: white;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recalls-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recall-item {
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid;
    background: rgba(30, 41, 59, 0.6);
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.recall-item.severity-medium {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}

.recall-item.severity-low {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
}

.recall-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.severity-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.severity-badge.high {
    background: #ef4444;
    color: white;
}

.severity-badge.medium {
    background: #f59e0b;
    color: white;
}

.severity-badge.low {
    background: #3b82f6;
    color: white;
}

.recall-number {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}

.recall-date {
    margin-left: auto;
    font-size: 12px;
    color: #94a3b8;
}

.recall-title {
    font-size: 16px;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0 0 0.75rem 0;
}

.recall-description {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.recall-detail {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.recall-detail .label {
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.recall-detail .value {
    font-size: 14px;
    color: #e2e8f0;
    font-weight: 600;
}

.recall-action-btn {
    margin-top: 1rem;
    padding: 10px 16px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.recall-action-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.no-recalls-hero {
    background: linear-gradient(135deg,
        rgba(16, 185, 129, 0.15),
        rgba(5, 150, 105, 0.15));
    border: 2px solid rgba(16, 185, 129, 0.3);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 16px;
}

.success-icon-large {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
    animation: bounce 0.6s ease-out;
}

@keyframes bounce {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.no-recalls-hero h2 {
    font-size: 24px;
    font-weight: 700;
    color: #10b981;
    margin: 0 0 1rem 0;
}

.no-recalls-hero p {
    font-size: 16px;
    color: #cbd5e1;
    margin: 0;
}

/* Equipment Grid */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

@media (max-width: 768px) {
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .equipment-grid {
        grid-template-columns: 1fr;
    }
}

.equipment-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0.75rem 0;
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.5;
}

.equipment-item .check {
    flex-shrink: 0;
    color: #10b981;
    font-weight: bold;
}

.show-more {
    text-align: center;
    padding: 1rem;
    color: #64748b;
    font-style: italic;
    margin: 1rem 0 0 0;
}

/* No Recalls Success Message */
.no-recalls-message {
    text-align: center;
    padding: 48px 32px;
    background: rgba(16, 185, 129, 0.08);
    border: 1.5px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    margin: 32px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.15));
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    color: #10b981;
    animation: pulse-success 2s ease-in-out infinite;
}

@keyframes pulse-success {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

.no-recalls-message h3 {
    font-size: 24px;
    color: #10b981;
    margin: 0 0 8px 0;
}

.no-recalls-message p {
    font-size: 14px;
    color: #9ca3af;
    margin: 0;
}

/* Recalls Warning */
.recalls-warning {
    padding: 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    color: #f87171;
    margin-bottom: 24px;
    font-weight: 500;
}

/* Enhanced Recall Card */
.recall-card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.recall-card:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.4);
}

.recall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.recall-number {
    font-size: 12px;
    font-weight: 700;
    color: #f87171;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recall-date {
    font-size: 12px;
    color: #9ca3af;
}

.recall-title {
    font-size: 16px;
    font-weight: 600;
    color: #e5e7eb;
    margin: 0 0 8px 0;
}

.recall-description {
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.recall-component,
.recall-solution,
.recall-campaign {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 8px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .vehicle-header-large {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .vehicle-image-large,
    .vehicle-image-placeholder {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .vehicle-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .vehicle-header-large {
        padding: 16px;
        gap: 16px;
    }

    .vehicle-title-main {
        font-size: 24px;
    }

    .quick-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 16px;
    }

    .decoder-tabs {
        flex-wrap: wrap;
        padding: 12px 16px;
    }

    .stat-card {
        padding: 12px;
    }

    .vehicle-actions {
        flex-direction: column;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .decode-section,
    #add-to-garage-btn,
    .tab-btn,
    .tab-panel,
    .color-card,
    .recall-card,
    .cost-item,
    .maintenance-item,
    .equipment-list li {
        transition: none;
        animation: none;
    }

    .spinner,
    .spinner-large {
        animation: none;
        border-top-color: transparent;
    }

    .color-card:hover .color-swatch,
    .color-card:hover,
    .recall-card:hover,
    .cost-item:hover,
    .maintenance-item:hover,
    .equipment-list li:hover {
        transform: none;
    }
}

/* ======================================
   ENHANCED SECTION & DATA DISPLAY STYLES
   ====================================== */

/* Modern Data Card Styles */
.data-section {
    background: rgba(20, 28, 48, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.data-section:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(20, 28, 48, 0.8);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.1);
}

.data-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
}

.data-section-title::before {
    content: '';
    width: 4px;
    height: 1.5rem;
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

/* Data Grid Layout */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

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

/* Data Item Card */
.data-item {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.data-item:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(15, 23, 42, 0.95);
    transform: translateY(-2px);
}

.data-item-label {
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.data-item-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #e2e8f0;
    word-break: break-word;
}

.data-item-value.empty {
    color: #64748b;
    font-style: italic;
}

/* Empty State Styles */
.section-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    background: rgba(30, 41, 59, 0.5);
    border: 2px dashed rgba(100, 116, 139, 0.3);
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.section-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.section-empty-text {
    color: #94a3b8;
    font-size: 1rem;
    margin: 0;
}

/* Data Availability Badge */
.data-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
}

.data-badge.complete {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.data-badge.partial {
    background: rgba(251, 146, 60, 0.15);
    border-color: rgba(251, 146, 60, 0.3);
    color: #fed7aa;
}

/* Section Header with Badge */
.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Data Divider */
.data-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
    margin: 1.5rem 0;
}

/* Enhanced Field Value Rendering */
.field-value {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.field-value-main {
    font-weight: 700;
    color: #e2e8f0;
}

.field-value-unit {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Data Completeness Indicator */
.completeness-bar {
    width: 100%;
    height: 6px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

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

/* Enhanced Typography for Data */
.data-emphasis {
    color: #60a5fa;
    font-weight: 700;
}

.data-muted {
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive Improvements */
@media (max-width: 1024px) {
    .data-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .data-section {
        padding: 1.5rem;
    }

    .accordion-header {
        padding: 18px 20px;
    }

    .accordion-title h2 {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .accordion-container {
        gap: 12px;
    }

    .accordion-section {
        border-radius: 8px;
    }

    .accordion-header {
        padding: 16px 18px;
    }

    .accordion-title {
        gap: 10px;
    }

    .accordion-icon {
        font-size: 18px;
    }

    .accordion-title h2 {
        font-size: 14px;
        font-weight: 500;
    }

    .accordion-badge {
        margin-left: 8px;
        padding: 3px 8px;
        font-size: 10px;
    }

    .accordion-chevron {
        width: 20px;
        height: 20px;
    }

    .accordion-content {
        padding: 16px !important;
    }
}

@media (max-width: 640px) {
    .data-grid {
        grid-template-columns: 1fr;
    }

    .data-section-title {
        font-size: 1rem;
    }

    .data-item-value {
        font-size: 1rem;
    }

    .accordion-title h2 {
        font-size: 13px;
    }

    .accordion-header {
        padding: 14px 16px;
    }

    .quick-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .stat-card {
        padding: 16px !important;
    }

    .stat-value {
        font-size: 1rem !important;
    }

    .stat-label {
        font-size: 11px !important;
    }
}
