/* Style général */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-weight: bold;
}

/* Hero section */
.hero {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../assets/img/image_actuelle.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 120px 0;
    margin-top: -1.5rem;
    margin-bottom: 3rem;
}

/* Dashboard */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 72px);
    margin-top: 0;
    width: 100%;
}

.dashboard-sidebar {
    width: 250px;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.dashboard-content {
    flex: 1;
    padding: 1.5rem;
    background-color: #fff;
}

.dashboard-submenu {
    margin-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1rem;
}

/* Form elements */
.form-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

.form-select:hover {
    border-color: #80bdff;
}

.form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Navigation */
.nav-pills .nav-link {
    margin-right: 0.5rem;
}

.nav-pills .nav-link.active {
    background-color: var(--bs-primary);
}

/* Dashboard sidebar items */
.dashboard-sidebar .list-group-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 0.9rem;
    text-align: left;
    width: 100%;
}

.dashboard-sidebar .list-group-item i {
    margin-right: 0.75rem;
    font-size: 1.1em;
    width: 1.25em;
    text-align: center;
    flex-shrink: 0;
}

.dashboard-sidebar .list-group-item span {
    text-align: left;
    flex-grow: 1;
}

/* Vehicle cards */
.vehicle-card-mobile {
    display: flex;
    flex-direction: row;
    padding: 0.75rem;
    gap: 1rem;
    margin-bottom: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0;
    background: #fff;
}

.vehicle-card-mobile .vehicle-image {
    width: 45%;
    max-width: 180px;
    flex: 0 0 auto;
    position: relative;
    height: 130px;
}

.vehicle-card-mobile .vehicle-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.25rem;
}

.vehicle-card-mobile .vehicle-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vehicle-card-mobile .vehicle-info p {
    margin: 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vehicle-card-mobile .vehicle-info .vehicle-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.vehicle-card-mobile .vehicle-info .vehicle-price {
    color: #198754;
    font-weight: bold;
}

.vehicle-card-mobile .vehicle-info .vehicle-location {
    color: #6c757d;
    font-size: 0.85rem;
}

.vehicle-card-mobile .vehicle-info .vehicle-status {
    font-size: 0.85rem;
}

/* Responsive styles */
@media (max-width: 767.98px) {
    .hero {
        padding: 50px 0;
    }

    .dashboard-container {
        flex-direction: column;
        margin-top: 1rem;
    }

    .dashboard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        padding: 0;
        margin-bottom: 1rem;
    }

    .dashboard-sidebar .list-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin: 0;
        padding: 0.5rem;
    }

    .dashboard-sidebar .list-group-item {
        flex: 1 1 auto;
        text-align: center;
        white-space: nowrap;
        padding: 0.5rem;
        margin: 0;
        border: 1px solid #dee2e6;
        border-radius: 4px;
    }

    .dashboard-content {
        padding: 1rem 0.5rem;
    }

    .dashboard-sidebar .fas {
        display: block;
        margin: 0 auto 0.25rem;
    }

    /* Mobile vehicle cards */
    .vehicle-card-mobile {
        margin: 0.5rem 0;
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }

    .vehicle-card-mobile .vehicle-image {
        width: 45%;
        max-width: 180px;
        height: 130px;
    }

    .vehicle-card-mobile .vehicle-image img {
        border-radius: 0.25rem;
    }

    .vehicle-card-mobile .vehicle-info {
        flex: 1;
        min-width: 0;
        padding-right: 0.5rem;
    }

    .vehicle-card-mobile .vehicle-info p {
        margin: 0;
        font-size: 0.85rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    transition: transform 0.3s ease;
}

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

/* Formulaires */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}

/* Boutons */
.btn-primary {
    padding: 0.5rem 1.5rem;
}

/* Dashboard */
.dashboard-menu {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
}

.dashboard-menu .nav-link {
    color: #333;
    padding: 0.5rem 1rem;
}

.dashboard-menu .nav-link.active {
    background: #0d6efd;
    color: white;
    border-radius: 0.25rem;
}

/* Tableaux */
.table th {
    background: #f8f9fa;
}

/* Footer */
footer {
    border-top: 1px solid #dee2e6;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 50px 0;
    }
    
    .dashboard-menu {
        margin-bottom: 1rem;
    }
}

/* Véhicule cards */
.vehicle-card {
    margin-bottom: 1.5rem;
}

.vehicle-card img {
    height: 200px;
    object-fit: cover;
}

/* Status badges */
.badge-pending {
    background-color: #ffc107;
    color: #000;
}

.badge-active {
    background-color: #198754;
    color: #fff;
}

.badge-blocked {
    background-color: #dc3545;
    color: #fff;
}

/* Location timeline */
.location-timeline {
    position: relative;
    padding-left: 2rem;
}

.location-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.location-step {
    position: relative;
    margin-bottom: 1.5rem;
}

.location-step::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #0d6efd;
}

/* Photo upload zone */
.photo-upload-zone {
    border: 2px dashed #dee2e6;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.photo-upload-zone:hover {
    border-color: #0d6efd;
}
