/**
 * NexWhip 2.0 Styles
 */

/* ===== CSS RESET AND BASE STYLES ===== */
:root {
    --primary-color: #1e3a5f;
    --primary-dark: #15293f;
    --primary-light: #2a4e7d;
    --secondary-color: #f7a928;
    --secondary-dark: #d89421;
    --secondary-light: #ffc156;
    --background-color: #f8f9fa;
    --text-color: #333333;
    --text-light: #6c757d;
    --border-color: #dee2e6;
    --border-radius: 4px;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 8px 16px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ===== COMMON COMPONENTS ===== */

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover, .primary-btn:focus {
    background-color: var(--primary-dark);
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: white;
}

.secondary-btn:hover, .secondary-btn:focus {
    background-color: var(--secondary-dark);
}

.danger-btn {
    background-color: var(--danger-color);
    color: white;
}

.danger-btn:hover, .danger-btn:focus {
    background-color: #bd2130;
}

.btn.small {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.icon-btn {
    background-color: transparent;
    color: var(--primary-color);
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.icon-btn:hover, .icon-btn:focus {
    background-color: rgba(0, 0, 0, 0.05);
}

.icon-btn.danger {
    color: var(--danger-color);
}

.icon-btn.danger:hover, .icon-btn.danger:focus {
    background-color: rgba(220, 53, 69, 0.1);
}

.btn[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: white;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.2);
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

#app {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

/* Floating footer styles */
.site-footer {
    flex-shrink: 0;
    background-color: var(--primary-dark);
    color: white;
    padding: 3rem 0 1.5rem;
    width: 100%;
}

/* If you prefer a truly floating footer at the bottom of the viewport */
.floating-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--primary-dark);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* For a condensed floating footer, use this alternative */
.mini-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--primary-dark);
    color: white;
    padding: 0.5rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
}

.mini-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mini-footer a {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 1rem;
}

.mini-footer a:hover {
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    /* For the mini footer on mobile */
    .mini-footer .container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .mini-footer a {
        margin: 0 0.5rem;
    }
}
.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
}

/* Error messages */
.error-message {
    color: var(--danger-color);
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: var(--border-radius);
}

/* Loading indicator */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: var(--text-light);
}

.loading i {
    margin-right: 0.5rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background-color: white;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-large);
}

.small-modal {
    max-width: 400px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.25rem;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--text-color);
}

.modal-body {
    padding: 1rem;
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 350px;
    z-index: 1001;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    border-left: 4px solid var(--success-color);
}

.notification.error {
    border-left: 4px solid var(--danger-color);
}

.notification.info {
    border-left: 4px solid var(--info-color);
}

.notification-content {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.notification-content i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.notification.success i {
    color: var(--success-color);
}

.notification.error i {
    color: var(--danger-color);
}

.notification.info i {
    color: var(--info-color);
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    transition: var(--transition);
}

.notification-close:hover {
    color: var(--text-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination-btn {
    background-color: white;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.pagination-btn:hover, .pagination-btn:focus {
    background-color: var(--background-color);
}

.pagination-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== HEADER AND NAVIGATION ===== */
.header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: block;
}

.logo img {
    height: 40px;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 1.5rem;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.main-nav a:hover, .main-nav a:focus {
    color: var(--primary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-nav a:hover::after, .main-nav a:focus::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
}

/* ===== HERO SECTION ===== */
.hero {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-box {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.search-box form {
    display: flex;
    gap: 0.75rem;
}

.search-box select, .search-box input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: white;
}

.search-box button {
    padding: 0.75rem 1.5rem;
}

/* ===== SEARCH AND FILTERS ===== */
.search-section {
    padding: 2rem 0;
}

.search-filters {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.search-filters h2 {
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

.filter-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group {
    flex: 1;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.filter-group input, .filter-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.search-results h2 {
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* ===== CAR CARDS ===== */
.car-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.car-image-gallery {
    position: relative;
    height: 200px;
}

.main-image {
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    opacity: 0;
    transition: var(--transition);
}

.car-image-gallery:hover .gallery-controls {
    opacity: 1;
}

.gallery-arrow {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--text-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-arrow:hover {
    background-color: white;
}

.thumbnails {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.05);
}

.thumbnails img {
    width: 50px;
    height: 40px;
    object-fit: cover;
    border-radius: 2px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.thumbnails img:hover, .thumbnails img.active {
    opacity: 1;
}

.more-photos {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    font-size: 0.75rem;
    color: var(--text-color);
}

.car-details {
    padding: 1rem;
}

.car-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.spec {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

.spec i {
    margin-right: 0.25rem;
}

.description {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== CAR DETAILS PAGE ===== */
.car-details-section {
    padding: 2rem 0;
}

.back-link {
    margin-bottom: 1.5rem;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    color: var(--text-light);
}

.back-link a i {
    margin-right: 0.5rem;
}

.car-details-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.car-gallery {
    width: 100%;
}

.car-gallery .main-image {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
}

.car-gallery .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnails-container {
    width: 100%;
    overflow-x: auto;
}

.thumbnail-scroller {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.thumbnail-scroller img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 2px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.thumbnail-scroller img:hover, .thumbnail-scroller img.active {
    opacity: 1;
    border: 2px solid var(--primary-color);
}

.car-info {
    display: flex;
    flex-direction: column;
}

.car-header {
    margin-bottom: 1.5rem;
}

.car-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.car-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.car-specs {
    margin-bottom: 1.5rem;
}

.spec-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.car-specs .spec {
    display: flex;
    align-items: center;
    font-size: 1rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
}

.car-specs .spec i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    color: var(--primary-color);
}

.spec-info {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.spec-value {
    font-weight: 500;
}

.description-box {
    margin-bottom: 1.5rem;
}

.description-box h3 {

    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.description-content {
    line-height: 1.7;
    color: var(--text-light);
}

.contact-seller {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background-color: #f8f9fa;
    margin-top: auto;
}

.contact-seller h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.contact-seller .btn {
    margin-right: 1rem;
}

/* ===== DASHBOARD ===== */
.dashboard-section {
    padding: 2rem 0;
}

.dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-light);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.dashboard-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.listings-grid, .favorites-grid {
    display: grid;
    gap: 1.5rem;
}

.listing-card {
    display: flex;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.listing-image {
    width: 200px;
    flex-shrink: 0;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-details {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.listing-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.status.available {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.status.sold {
    background-color: rgba(108, 117, 125, 0.1);
    color: var(--text-light);
}

.listing-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

/* Photo upload */
.photo-upload-container {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    position: relative;
    transition: var(--transition);
}

.photo-upload-container:hover {
    border-color: var(--primary-color);
}

.photo-upload-container input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.photo-upload-prompt {
    text-align: center;
    color: var(--text-light);
}

.photo-upload-prompt i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.selected-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.selected-photo {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 100px;
}

.selected-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-photo {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--danger-color);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.remove-photo:hover {
    background-color: white;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 3rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .car-details-container {
        grid-template-columns: 1fr;
    }
    
    .car-gallery .main-image {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background-color: white;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        transition: 0.3s ease;
        z-index: 1000;
        padding: 1rem;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        margin-top: 2rem;
    }
    
    .main-nav li {
        margin-left: 0;
        margin-bottom: 1rem;
    }
	/* Text Logo */
.text-logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
}

.logo-nex {
    color: var(--primary-color);
}

.logo-whip {
    color: var(--secondary-color);
}

/* Hover effect */
.text-logo:hover .logo-nex {
    color: var(--primary-dark);
}

.text-logo:hover .logo-whip {
    color: var(--secondary-dark);
}
    
    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-box form {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .listing-card {
        flex-direction: column;
    }
    
    .listing-image {
        width: 100%;
        height: 150px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .car-grid {
        grid-template-columns: 1fr;
    }
    
    .car-gallery .main-image {
        height: 250px;
    }
    
    .dashboard-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        padding: 0.5rem;
        font-size: 0.875rem;
        text-align: center;
    }
    
    .selected-photos {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .selected-photo {
        height: 80px;
    }
    
    .pagination-btn {
        padding: 0.4rem 0.5rem;
        font-size: 0.875rem;
    }
}
	/* Fix dropdown option colors */
select, select option {
    color: var(--text-color);
}

.search-box select {
    color: var(--text-color);
}

.filter-group select {
    color: var(--text-color);
}
/* Text Logo */
.text-logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
}

.logo-nex {
    color: var(--primary-color);
}

.logo-whip {
    color: var(--secondary-color);
}

/* Hover effect */
.text-logo:hover .logo-nex {
    color: var(--primary-dark);
}

.text-logo:hover .logo-whip {
    color: var(--secondary-dark);
}
/* Replace the previous CSS with this updated version */
.car-details {
    position: relative;
    z-index: 2; /* Higher z-index */
    background-color: white;
    padding-top: 15px; /* Add some padding instead of negative margin */
}

.thumbnails {
    display: flex; /* Ensure display flex is still applied */
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    overflow: visible; /* Make sure it's visible */
}

/* Add extra specificity to ensure these rules are applied */
.car-card .thumbnails {
    opacity: 1 !important;
    visibility: visible !important;
}

.car-card .thumbnails img {
    display: block !important;
    width: 50px;
    height: 40px;
    object-fit: cover;
}
/* Add to your styles.css */
.current-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.current-photo {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.current-photo img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.photo-actions {
    display: flex;
    justify-content: space-between;
    padding: 5px;
    background-color: #f8f9fa;
}

.photo-actions .btn {
    padding: 3px 5px;
    font-size: 0.75rem;
}
/* Update the CSS for the mobile close button */
.mobile-close-btn {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
}

/* Only show the close button on mobile */
@media (max-width: 768px) {
    .mobile-close-btn {
        display: block; /* Show on mobile */
    }
}
/* Message styling */
/* Message Card Styles */
.messages-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.message-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.message-card.unread {
    background-color: #e6f7ff;
    border-left: 4px solid #1890ff;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.message-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sender-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

.message-date {
    color: #666;
    font-size: 0.85rem;
}

.message-car {
    font-weight: 500;
    color: #555;
    padding: 4px 8px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    font-size: 0.9rem;
}

.message-body {
    padding: 0.5rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 0.75rem;
}

.message-body p {
    line-height: 1.5;
    margin: 0.5rem 0;
}

.message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.contact-info a {
    color: #1890ff;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.message-actions {
    display: flex;
    gap: 0.5rem;
}

/* Contact Form in Car Details */
.contact-form {
    margin-top: 1rem;
    padding: 1.25rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-seller {
    margin-top: 2rem;
}

/* Badge for unread messages */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #f5222d;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .message-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .message-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .message-actions {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .message-actions .btn {
        flex: 1;
    }
}

/* Empty state for messages */
.dashboard-content .empty-state {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.dashboard-content .empty-state i {
    font-size: 3rem;
    color: #d9d9d9;
    margin-bottom: 1rem;
}

.dashboard-content .empty-state h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.dashboard-content .empty-state p {
    color: #666;
}