/* Custom Styles for Car Selling Website */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-brand i {
    color: #ffc107;
    margin-right: 8px;
}

.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    background-color: #e9ecef;
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.card-text {
    color: #6c757d;
    font-size: 0.9rem;
}

.price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #28a745;
}

.brand-badge {
    background-color: #007bff;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.fuel-badge {
    background-color: #6f42c1;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.transmission-badge {
    background-color: #fd7e14;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.mileage-info {
    color: #6c757d;
    font-size: 0.85rem;
}

.seller-info {
    color: #495057;
    font-style: italic;
    font-size: 0.9rem;
}

.btn-view {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

.btn-view:hover {
    background-color: #138496;
    border-color: #117a8b;
    color: white;
}

.modal-header {
    background-color: #343a40;
    color: white;
    border-bottom: none;
}

.modal-header .close {
    color: white;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.alert {
    border-radius: 8px;
    border: none;
}

.search-section {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.loading-spinner {
    margin: 50px 0;
}

.car-details-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.car-details-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.car-details-info h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 10px;
}

.car-details-info p {
    color: #6c757d;
    margin-bottom: 15px;
}

.no-cars-message {
    text-align: center;
    padding: 50px 20px;
    color: #6c757d;
}

.no-cars-message i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-img-top {
        height: 150px;
    }
    
    .search-section {
        padding: 15px;
    }
    
    .modal-dialog {
        margin: 10px;
    }
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
