/* Styles pour la gestion des moyens de transport */

/* Layout des sièges en forme de bus */
.bus-layout {
    margin: 20px 0;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 15px;
    background: #f8f9fa;
}

.bus-container {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    border: 2px solid #333;
    border-radius: 20px;
    padding: 15px;
}

.bus-header {
    text-align: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}

.driver-area {
    background: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
}

.seat-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.row-label {
    width: 30px;
    font-weight: bold;
    font-size: 12px;
}

.seats-in-row {
    display: flex;
    gap: 5px;
    flex: 1;
}

.seat-item {
    width: 35px;
    height: 35px;
    border: 2px solid #007bff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #e3f2fd;
    transition: all 0.2s;
    font-size: 10px;
}

.seat-item:hover {
    background: #bbdefb;
    transform: scale(1.1);
}

.seat-label {
    font-weight: bold;
    font-size: 9px;
}

.seat-class {
    font-size: 8px;
    color: #666;
}

/* Contrôles d'ajout en masse */
.bulk-add-controls {
    margin-bottom: 15px;
}

.sieges-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.input-group .form-control {
    max-width: 150px;
}

.input-group label {
    margin-right: 10px;
    font-weight: 500;
}

/* Liste détaillée des sièges */
.sieges-list-detailed {
    margin-top: 20px;
}

.siege-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    background: white;
}

.siege-fields {
    display: flex;
    gap: 15px;
    flex: 1;
    flex-wrap: wrap;
}

.siege-fields .form-group {
    min-width: 120px;
    flex: 1;
}

/* Mini bus layout pour l'aperçu */
.mini-bus-layout {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 200px;
}

.mini-seat-row {
    display: flex;
    gap: 2px;
    justify-content: center;
}

.mini-seat {
    width: 20px;
    height: 20px;
    border: 1px solid #007bff;
    border-radius: 3px;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.1s;
}

.mini-seat:hover {
    transform: scale(1.2);
}

.mini-seat.available {
    background: #e3f2fd;
}

.mini-seat.occupied {
    background: #ffcdd2;
}

.more-rows {
    text-align: center;
    font-size: 10px;
    color: #666;
    margin-top: 5px;
}

/* Aperçu des sièges dans l'index */
.seats-preview {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.seats-preview h5 {
    margin-bottom: 10px;
    font-size: 14px;
    color: #495057;
}

/* Styles pour les cartes de transport */
.transport-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
    background: white;
}

.transport-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.transport-info h3 {
    margin: 0;
    font-size: 18px;
    color: #212529;
}

.transport-numero {
    background: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.transport-category {
    background: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .bus-container {
        max-width: 300px;
        padding: 10px;
    }
    
    .seat-item {
        width: 25px;
        height: 25px;
        font-size: 8px;
    }
    
    .seat-label {
        font-size: 7px;
    }
    
    .seat-class {
        font-size: 6px;
    }
    
    .siege-fields {
        flex-direction: column;
    }
    
    .input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .input-group .form-control {
        max-width: none;
    }
}

/* Animations */
@keyframes seatPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.seat-item.new-seat {
    animation: seatPulse 0.6s ease-in-out;
}

/* États des sièges */
.seat-item.premium {
    border-color: #ffc107;
    background: #fff3cd;
}

.seat-item.economy {
    border-color: #007bff;
    background: #e3f2fd;
}

.seat-item.business {
    border-color: #6f42c1;
    background: #e2d9f3;
}
