/* Custom CSS variables for premium theme */
:root {
    --bg-dark: #0a0e17;
    --card-bg: rgba(13, 20, 35, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    
    /* Neon Glow Palette */
    --accent-purple: #ab47bc;
    --accent-cyan: #00e5ff;
    --accent-blue: #2979ff;
    --gradient-accent: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 50%, var(--accent-cyan) 100%);
    
    /* States */
    --color-danger: #ef5350;
    --color-warning: #ffb74d;
    --color-success: #66bb6a;
    
    --shadow-glow: 0 0 20px rgba(171, 71, 188, 0.25);
    --shadow-cyan-glow: 0 0 20px rgba(0, 229, 255, 0.25);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Glow Effects */
.glow-bg-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(171, 71, 188, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: -200px;
    left: -200px;
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

.glow-bg-2 {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.12) 0%, rgba(0, 0, 0, 0) 75%);
    bottom: -300px;
    right: -300px;
    z-index: -1;
    pointer-events: none;
    filter: blur(100px);
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -0.05em;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
}

.logo-icon {
    font-size: 2.2rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-accent {
    font-weight: 500;
    opacity: 0.9;
}

.header-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* Utilities */
.hidden {
    display: none !important;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-search {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(171, 71, 188, 0.4), 0 0 15px rgba(0, 229, 255, 0.3);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-back {
    background: transparent;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
}

.btn-back:hover {
    color: var(--text-main);
}

/* Search Card */
.search-section {
    max-width: 650px;
    margin: 0 auto 3rem auto;
}

.search-card {
    text-align: center;
    background: rgba(13, 20, 35, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    padding: 2.5rem;
}

.search-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.search-input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

#vin-input {
    width: 100%;
    padding: 1.1rem 4rem 1.1rem 3.2rem;
    border-radius: 14px;
    background: rgba(5, 10, 20, 0.7);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 1.15rem;
    font-family: monospace;
    letter-spacing: 0.15em;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

#vin-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-cyan-glow);
    background: rgba(5, 10, 20, 0.9);
}

#vin-input:focus + .search-input-icon {
    color: var(--accent-cyan);
}

.char-count {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-body);
    letter-spacing: 0;
    pointer-events: none;
}

.validation-msg {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--color-danger);
    min-height: 1.2rem;
    text-align: left;
    padding-left: 0.5rem;
}

/* Loading Card */
.loading-section {
    max-width: 600px;
    margin: 2rem auto;
}

.loader-card {
    text-align: center;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

.spinner {
    width: 60px;
    height: 60px;
    position: relative;
    margin-bottom: 2rem;
}

.double-bounce1, .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--accent-cyan);
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
    background-color: var(--accent-purple);
    animation-delay: -1.0s;
}

@keyframes sk-bounce {
    0%, 100% { 
        transform: scale(0.0);
    } 50% { 
        transform: scale(1.0);
    }
}

.loading-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.loading-status {
    color: var(--accent-cyan);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.loading-info-box {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 12px;
    padding: 1rem;
    text-align: left;
    max-width: 480px;
    color: #e2e8f0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.loading-info-box i {
    color: var(--accent-cyan);
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

/* Error Card */
.error-section {
    max-width: 550px;
    margin: 2rem auto;
}

.error-card {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(239, 83, 80, 0.05);
    border: 1px solid rgba(239, 83, 80, 0.2);
    border-radius: 20px;
}

.error-icon {
    font-size: 3rem;
    color: var(--color-danger);
    margin-bottom: 1.5rem;
}

.error-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.error-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Results Section styling */
.results-section {
    animation: fadeIn 0.4s ease-out;
}

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

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

/* Alert Banner */
.alert-banner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid rgba(239, 83, 80, 0.3);
    background: linear-gradient(90deg, rgba(239, 83, 80, 0.15) 0%, rgba(239, 83, 80, 0.05) 100%);
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.2);
}

.alert-banner.risk-critical {
    border-color: rgba(239, 83, 80, 0.3);
    background: linear-gradient(90deg, rgba(239, 83, 80, 0.15) 0%, rgba(239, 83, 80, 0.05) 100%);
}

.alert-banner.risk-warning {
    border-color: rgba(255, 183, 77, 0.3);
    background: linear-gradient(90deg, rgba(255, 183, 77, 0.15) 0%, rgba(255, 183, 77, 0.05) 100%);
}

.alert-banner.risk-clean {
    border-color: rgba(102, 187, 106, 0.3);
    background: linear-gradient(90deg, rgba(102, 187, 106, 0.15) 0%, rgba(102, 187, 106, 0.05) 100%);
}

.alert-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-banner.risk-critical .alert-icon-wrapper {
    background: var(--color-danger);
    color: #fff;
    box-shadow: 0 0 15px rgba(239, 83, 80, 0.4);
}

.alert-banner.risk-warning .alert-icon-wrapper {
    background: var(--color-warning);
    color: #1e293b;
    box-shadow: 0 0 15px rgba(255, 183, 77, 0.4);
}

.alert-banner.risk-clean .alert-icon-wrapper {
    background: var(--color-success);
    color: #fff;
    box-shadow: 0 0 15px rgba(102, 187, 106, 0.4);
}

.alert-content {
    flex-grow: 1;
}

.alert-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.alert-desc {
    font-size: 0.95rem;
    color: var(--text-main);
    opacity: 0.9;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-risk {
    background: rgba(239, 83, 80, 0.2);
    color: #ff8a80;
    border: 1px solid rgba(239, 83, 80, 0.4);
}

/* Results Grid Layout */
.results-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 2rem;
}

.grid-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.card-title i {
    color: var(--accent-cyan);
}

/* Specifications details */
.spec-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.spec-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.spec-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.spec-value {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.highlight-value {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
}

.vin-copy-text {
    font-family: monospace;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.highlight-warning {
    color: var(--color-warning);
    font-weight: 700;
}

.highlight-price {
    color: var(--accent-cyan);
    font-weight: 800;
    font-size: 1.1rem;
}

/* Advice/Safety Card */
.advice-card {
    background: rgba(0, 229, 255, 0.02);
    border-color: rgba(0, 229, 255, 0.12);
}

.advice-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.advice-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Gallery and images Card */
.gallery-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.gallery-header .card-title {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.gallery-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.main-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 12px;
    overflow: hidden;
    background: #050811;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1rem;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.main-image-container:hover img {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-expand {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-expand:hover {
    background: rgba(255, 255, 255, 0.3);
}

.thumbnails-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

/* Custom scrollbar for thumbnails */
.thumbnails-container::-webkit-scrollbar {
    height: 6px;
}

.thumbnails-container::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}

.thumbnail-wrapper {
    flex: 0 0 76px;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: #050811;
    transition: all 0.2s ease;
}

.thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-wrapper:hover {
    opacity: 0.8;
}

.thumbnail-wrapper.active {
    border-color: var(--accent-cyan);
    transform: scale(0.95);
}

/* Fullscreen Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(5, 8, 17, 0.95);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
    animation: zoom 0.25s ease-out;
}

@keyframes zoom {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f5f9;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-cyan);
    text-decoration: none;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--text-muted);
    padding: 10px 0;
    font-size: 1rem;
    font-weight: 500;
}

/* Footer styling */
footer {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
}

.footer-info i {
    color: var(--accent-purple);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .logo-container {
        font-size: 2rem;
    }
    .logo-icon {
        font-size: 1.8rem;
    }
    .search-card {
        padding: 1.5rem;
    }
    #vin-input {
        font-size: 1rem;
        padding: 1rem 3.5rem 1rem 2.8rem;
    }
    .search-input-icon {
        left: 1rem;
    }
    .alert-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem;
    }
    .badge {
        align-self: flex-start;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Print CSS Styles */
@media print {
    body {
        background: #fff;
        color: #000;
    }
    .app-container {
        padding: 0;
        max-width: 100%;
    }
    .glow-bg-1, .glow-bg-2, footer, .results-actions, .advice-card, .btn-expand, .thumbnails-container {
        display: none !important;
    }
    .glass-card {
        background: none !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        color: #000 !important;
        page-break-inside: avoid;
    }
    .results-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    .alert-banner {
        background: #f8d7da !important;
        border: 2px solid #f5c2c7 !important;
        color: #842029 !important;
    }
    .alert-banner * {
        color: #842029 !important;
    }
    .spec-value {
        color: #000 !important;
    }
    .main-image-container {
        aspect-ratio: auto;
        height: 350px;
        border: 1px solid #ccc;
    }
    .main-image-container img {
        object-fit: contain;
    }
    
    /* Print Timeline Styles */
    .timeline-wrapper::before {
        background: #ccc !important;
    }
    .timeline-badge {
        background: #fff !important;
        border-color: #000 !important;
        color: #000 !important;
    }
    .timeline-card-content {
        background: none !important;
        border: 1px solid #ccc !important;
        color: #000 !important;
    }
    .timeline-odometer {
        background: none !important;
        border-color: #000 !important;
        color: #000 !important;
    }
}

/* ==========================================================================
   CEPiK & Timeline Additional Styles
   ========================================================================== */

/* Tab Switcher Styles */
.tab-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    color: var(--accent-cyan);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -0.58rem;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

/* CEPiK Form Styling */
.form-row-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem;
    width: 100%;
}

.search-panel {
    animation: fadeIn 0.3s ease-out;
}

.cepik-form input {
    width: 100%;
    padding: 1.1rem 1.25rem 1.1rem 3.2rem;
    border-radius: 14px;
    background: rgba(5, 10, 20, 0.7);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

#cepik-vin {
    font-family: monospace;
    font-size: 1.15rem;
    letter-spacing: 0.15em;
    font-weight: 600;
    text-transform: uppercase;
    padding-right: 4rem;
}

.cepik-form input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-cyan-glow);
    background: rgba(5, 10, 20, 0.9);
}

.cepik-form input:focus + .search-input-icon {
    color: var(--accent-cyan);
}

/* Chronological Timeline Styles */
.timeline-wrapper {
    position: relative;
    padding-left: 2rem;
    margin-top: 1rem;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 7.5px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: rgba(255, 255, 255, 0.08);
}

.timeline-event {
    position: relative;
    margin-bottom: 2rem;
    animation: fadeIn 0.3s ease-out;
}

.timeline-event:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    position: absolute;
    left: -2rem;
    top: 0.1rem;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2.5px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-badge i {
    display: none;
}

.timeline-badge:hover,
.timeline-badge.event-registration,
.timeline-badge.event-inspection,
.timeline-badge.event-owner,
.timeline-badge.event-theft,
.timeline-badge.event-damage {
    width: 32px;
    height: 32px;
    left: -2.48rem;
    top: -0.3rem;
    border-width: 2px;
}

.timeline-badge.event-registration i,
.timeline-badge.event-inspection i,
.timeline-badge.event-owner i,
.timeline-badge.event-theft i,
.timeline-badge.event-damage i {
    display: block;
    font-size: 0.85rem;
}

.timeline-badge.event-registration {
    border-color: var(--accent-blue);
    background: rgba(41, 121, 255, 0.1);
    color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(41, 121, 255, 0.2);
}

.timeline-badge.event-inspection {
    border-color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.timeline-badge.event-owner {
    border-color: var(--accent-purple);
    background: rgba(171, 71, 188, 0.1);
    color: var(--accent-purple);
    box-shadow: 0 0 10px rgba(171, 71, 188, 0.2);
}

.timeline-badge.event-theft {
    border-color: var(--color-danger);
    background: rgba(239, 83, 80, 0.1);
    color: var(--color-danger);
    box-shadow: 0 0 10px rgba(239, 83, 80, 0.3);
}

.timeline-badge.event-damage {
    border-color: var(--color-warning);
    background: rgba(255, 183, 77, 0.1);
    color: var(--color-warning);
    box-shadow: 0 0 10px rgba(255, 183, 77, 0.3);
}

.timeline-card-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.timeline-card-content:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    flex-grow: 1;
    text-align: right;
}

.timeline-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    text-align: left;
}

.timeline-odometer {
    margin-top: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--color-warning);
    background: rgba(255, 183, 77, 0.05);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 183, 77, 0.15);
}

.timeline-odometer i {
    font-size: 0.9rem;
}

.no-events {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 0;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .form-row-grid {
        grid-template-columns: 1fr;
    }
}
