:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-blue: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* Top Header */
.top-header {
    font-size: 0.875rem;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.top-header a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.top-header a:hover {
    color: #ffd700;
}

/* Navbar Styling */
.navbar {
    padding: 1rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: none;
    z-index: 1050;
    position: relative;
}

.navbar-light .navbar-nav .nav-link {
    color: white !important;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
    border-radius: 10px;
    margin: 0 0.2rem;
}

.navbar-light .navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white !important;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.navbar-brand:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.navbar-brand img {
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.5));
}

.nav-link {
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.6rem 1.2rem !important;
    margin: 0 0.2rem;
    border-radius: 10px;
    color: white !important;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: middle;
    color: white;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.3);
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Add Listing Button */
.btn-primary.nav-link {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    font-weight: 700;
    padding: 0.6rem 1.5rem !important;
}

.btn-primary.nav-link:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

/* Dropdown Menu */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    margin-top: 0.5rem;
    padding: 0.5rem;
    z-index: 1060;
    position: relative;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #2d3748 !important;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    transform: translateX(5px);
}

.dropdown-item:focus,
.dropdown-item:active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Navbar Toggle Button */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* Button in Navbar */
.navbar .btn-light {
    background: white;
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 10px;
    padding: 0.5rem 1.5rem;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.navbar .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5);
    background: #f8f9fa;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 3rem !important;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Vehicle Cards */
.vehicle-image {
    height: 220px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    transition: all 0.4s ease;
}

.card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.hover-shadow:hover {
    transform: translateY(-10px) scale(1.02);
}

.hover-shadow:hover .vehicle-image {
    transform: scale(1.1);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

/* Search Box */
.search-box {
    background: white;
    border-radius: 20px;
    padding: 2rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Buttons */
.btn {
    transition: all 0.3s ease;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.6rem 1.5rem;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--gradient-success);
}

/* Form Controls */
.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    transform: translateY(-2px);
}

/* Badges */
.badge {
    font-size: 0.875rem;
    padding: 0.5em 1em;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge.bg-success {
    background: var(--gradient-success) !important;
    box-shadow: 0 4px 10px rgba(17, 153, 142, 0.3);
}

/* Price Display */
.text-primary.fw-bold {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem !important;
}

/* Alerts */
.alert {
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-radius: 10px;
    margin: 0 0.25rem;
    border: none;
    font-weight: 600;
}

.pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
}

/* Card Headers */
.card-header {
    background: var(--gradient-primary);
    border: none;
    border-radius: 15px 15px 0 0 !important;
    padding: 1.25rem;
}

.card-header h5 {
    margin: 0;
    font-weight: 700;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-success);
}

footer a {
    transition: all 0.3s ease;
    position: relative;
}

footer a:hover {
    transform: translateX(5px);
    color: #fff !important;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

/* Carousel */
.carousel {
    border-radius: 20px;
    overflow: hidden;
}

.carousel-inner {
    border-radius: 20px;
}

.carousel-inner img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    padding: 25px;
    transition: all 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: rgba(102, 126, 234, 0.8);
    transform: scale(1.1);
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background: var(--gradient-primary);
    width: 40px;
    border-radius: 10px;
}

/* Sticky Elements */
.sticky-top {
    position: sticky;
    z-index: 1020;
}

/* Text Effects */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Shadows */
.bg-light {
    background-color: #f8f9fa !important;
}

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

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
    border-radius: 20px;
}

/* Loading Animation */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0.5rem 0;
}

/* Icon Animations */
.bi {
    transition: all 0.3s ease;
}

.btn:hover .bi {
    transform: scale(1.2);
}

/* Price Tag Effect */
.fs-5 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem !important;
    }
    
    .vehicle-image {
        height: 180px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .search-box {
        padding: 1.5rem !important;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .text-primary.fw-bold {
        font-size: 1.25rem !important;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--gradient-primary);
    color: white;
}

::-moz-selection {
    background: var(--gradient-primary);
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.carousel-inner img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 20px;
}

.carousel-indicators button {
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-indicators button.active {
    background-color: #0d6efd;
}

/* Admin Panel Nav Tabs */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
    color: #495057 !important;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 0.375rem 0.375rem 0 0;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.1);
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: #0d6efd !important;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    border-bottom: 2px solid #0d6efd;
}
