/* Loading Indicator Styling */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

.loading-indicator p {
    margin-top: 15px;
    font-size: 16px;
    color: var(--light-gray);
    font-weight: 500;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(108, 99, 255, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary);
    /* Animation removed to reduce CPU usage */
}

/* Animation removed to reduce CPU usage */

/* Add a subtle overlay to the page while loading */
.car-details-container {
    position: relative;
}

.car-details-container.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 24, 0.7);
    backdrop-filter: blur(3px);
    z-index: 99;
}

/* Simple loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 15, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.loading-overlay .loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(108, 99, 255, 0.2);
    border-radius: 50%;
    border-top-color: #6c63ff;
    animation: spin 1s linear infinite;
}

/* Fade-in animation for car container */
.car-container {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.car-container.loaded {
    opacity: 1;
}
