:root {
    --primary-color: #0d6efd;
    --hover-color: #0b5ed7;
    --transition-time: 0.3s;
}

body {
    background-color: #f8f9fa;
}

/* Карточки автомобилей */
.car-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.3s ease-out;
}

.car-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.card {
    transition: all var(--transition-time) ease;
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    height: 220px;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-time);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Счетчик изображений */
.image-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 1;
    backdrop-filter: blur(5px);
}

/* Подсветка поиска */
.highlight {
    background-color: rgba(13, 110, 253, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
    color: var(--primary-color);
    font-weight: bold;
}

/* Статистика */
.stat-item {
    padding: 20px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform var(--transition-time);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    transition: transform var(--transition-time);
}

.stat-item:hover i {
    transform: scale(1.2);
}

/* VIN номер */
.vin-number {
    font-family: monospace;
    font-size: 1.1em;
    color: var(--primary-color);
    letter-spacing: 1px;
}

/* Поиск */
.search-form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.input-group {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 25px;
    overflow: hidden;
}

#searchVin {
    border: 2px solid var(--primary-color);
    border-right: none;
    padding-left: 20px;
    height: 45px;
}

#searchButton {
    height: 45px;
    padding-left: 25px;
    padding-right: 25px;
}

/* Пагинация */
.pagination {
    margin-bottom: 2rem;
}

.pagination .page-link {
    border: none;
    margin: 0 3px;
    border-radius: 6px;
    color: var(--primary-color);
    font-weight: 500;
    padding: 8px 16px;
    transition: all var(--transition-time);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.pagination .page-link:hover {
    background-color: var(--hover-color);
    color: white;
    transform: translateY(-2px);
}

/* Карусель на странице автомобиля */
.carousel {
    border-radius: 8px;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
}

/* Таблицы */
.table {
    margin-bottom: 0;
}

.table th {
    width: 40%;
    color: #495057;
}

.table td {
    color: #212529;
}

.table tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Хлебные крошки */
.breadcrumb {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.breadcrumb-item a {
    color: var(--primary-color);
}

/* Заголовки карточек */
.card-header {
    border-bottom: none;
    padding: 15px 20px;
}

.card-header .card-title {
    margin: 0;
}

/* Кнопки */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    transition: all var(--transition-time);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--hover-color));
    border: none;
    box-shadow: 0 2px 10px rgba(13, 110, 253, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* Изображение-заглушка */
.no-image-placeholder {
    max-width: 150px;
    opacity: 0.5;
}

/* Адаптивность */
@media (max-width: 768px) {
    .carousel-item img {
        height: 300px;
    }
    
    .card-img-wrapper {
        height: 180px;
    }
    
    .table th {
        width: 50%;
    }
    
    .pagination .page-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Footer */
footer {
    background: #343a40;
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

footer a {
    color: white;
    transition: color var(--transition-time);
}

footer a:hover {
    color: var(--primary-color);
}
/* Стили для отсутствующего изображения */
.card-img-wrapper .text-center {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
}

.card-img-wrapper .fas.fa-car {
    color: #dee2e6;
    margin-bottom: 10px;
    transition: transform var(--transition-time);
}

.card:hover .card-img-wrapper .fas.fa-car {
    transform: scale(1.1);
}