/* Custom CSS for Car Dealer Website */

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
/*  padding-top: 30px; /* adjust if your navbar is taller */

}


.navbar-brand img {
    height: 55px;
    width: auto;
}

.navbar-dark {
    background-color: #ffffff !important;
}

.navbar.bg-primary {
    background-color: #ffffff !important;
}

.navbar-dark.bg-primary {
    background-color: #ffffff !important;
}



.navbar-nav {
    align-items: left;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23082640' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}


.navbar-nav .nav-link {
    color:#082640;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.75rem 1rem;
}

.navbar-nav .nav-link:hover {
    color: #082640!important;
}

.navbar-toggler {
     border-color: #082640;
    color:#082640;
    margin-top: 0.5rem;
}

.navbar-collapse {
    color:#082640;
    margin-top: 0.5rem;
}

/* Hero Section */
.hero-section {
    padding-top: 140px; /* space below fixed navbar */
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
}

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

.card-img-top {
    border-radius: 10px 10px 0 0;
}

/* Vehicle Cards */
.vehicle-card {
    height: 100%;
}

.vehicle-card .card-body {
    display: flex;
    flex-direction: column;
}

.vehicle-card .card-body .mt-auto {
    margin-top: auto;
}

/* Price Styling */
.text-primary {
    color: #007bff !important;
}

/* Badge Styling */
.badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
}

/* Form Styling */
.form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Button Styling */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
    transform: translateY(-2px);
}

/* Carousel Styling */
.carousel-item img {
    border-radius: 10px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

/* Feature Icons */
.feature-icon {
    transition: transform 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1);
}

/* Search Form */
.search-form {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
}

/* Pagination */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    color: #007bff;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    

    .navbar-brand img {
    width: 100%;
  }

    .hero-section {
        padding-top: 100px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .card-body h5 {
        font-size: 1.1rem;
    }
    
    .card-body h4 {
        font-size: 1.3rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
      
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Stack form elements vertically on mobile */
    .row .col-md-6,
    .row .col-md-4,
    .row .col-md-3 {
        margin-bottom: 1rem;
    }
    
    /* Adjust carousel height on mobile */
    .carousel-item img {
        height: 300px !important;
    }
    
    /* Make vehicle details more compact on mobile */
    .vehicle-details .row {
        margin-bottom: 0.5rem;
    }
    
    .vehicle-details .col-6 {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .card-body h5 {
        font-size: 1rem;
    }
    
    .card-body h4 {
        font-size: 1.2rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
    
    /* Make search form more compact */
    .search-form .row {
        margin-bottom: 0.5rem;
    }
    
    .search-form .col-md-3,
    .search-form .col-md-2 {
        margin-bottom: 0.5rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Image Upload Styling */
.image-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s ease;
}

.image-upload-area:hover {
    border-color: #007bff;
}

.image-upload-area.dragover {
    border-color: #007bff;
    background-color: rgba(0, 123, 255, 0.05);
}

/* Alert Styling */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Breadcrumb Styling */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

/* Utility Classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    body {
        padding-top: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}
