/* Vehicle Loading Animation Styles */

/* Vehicle Loading Container */
.vehicle-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    margin: 2rem auto;
    max-width: 1200px;
    min-height: 400px;
}

/* Loading Spinner */
.vehicle-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: vehicle-spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

/* Loading Text */
.vehicle-loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    margin-bottom: 1rem;
}

.vehicle-loading-subtext {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
}

/* Loading Progress Bar */
.vehicle-loading-progress {
    width: 100%;
    max-width: 300px;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin: 1rem 0;
}

.vehicle-loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    animation: vehicle-progress 2s ease-in-out infinite;
}

/* Loading Animation */
@keyframes vehicle-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes vehicle-progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Vehicle Cards Loading State */
.vehicle-list.loading {
    position: relative;
    min-height: 400px;
}

.vehicle-list.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    z-index: 10;
}

.vehicle-list.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: vehicle-spin 1s linear infinite;
    z-index: 11;
}

/* Dark Theme Support */
body.dark-theme .vehicle-loading-container {
    background: var(--card-bg);
    border-color: var(--border);
}

body.dark-theme .vehicle-list.loading::before {
    background: rgba(0, 0, 0, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .vehicle-loading-container {
        padding: 2rem 1rem;
        margin: 1rem auto;
        min-height: 300px;
    }
    
    .vehicle-loading-spinner {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .vehicle-loading-text {
        font-size: 1.1rem;
    }
    
    .vehicle-loading-subtext {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .vehicle-loading-container {
        padding: 1.5rem 0.5rem;
        min-height: 250px;
    }
    
    .vehicle-loading-spinner {
        width: 40px;
        height: 40px;
    }
    
    .vehicle-loading-text {
        font-size: 1rem;
    }
}
