/* Custom styles for STL Turismo */

/* General styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Navbar customization */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Card customization */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

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

.card-header {
    font-weight: bold;
    background-color: #f8f9fa;
}

/* Button customization */
.btn {
    border-radius: 5px;
    padding: 8px 16px;
}

.btn-primary {
    background-color: #0d6efd;
}

.btn-success {
    background-color: #198754;
}

.btn-danger {
    background-color: #dc3545;
}

/* Form customization */
.form-control {
    border-radius: 5px;
    padding: 10px;
}

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

/* Dashboard stats */
.stats-card {
    text-align: center;
    padding: 20px;
}

.stats-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #0d6efd;
}

.stats-card .stats-value {
    font-size: 2rem;
    font-weight: bold;
}

.stats-card .stats-label {
    font-size: 1rem;
    color: #6c757d;
}

/* Trip cards */
.trip-card .destination {
    font-size: 1.25rem;
    font-weight: bold;
}

.trip-card .dates {
    color: #6c757d;
    margin-bottom: 10px;
}

.trip-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.trip-status.agendada {
    background-color: #cff4fc;
    color: #055160;
}

.trip-status.em_andamento {
    background-color: #fff3cd;
    color: #664d03;
}

.trip-status.concluida {
    background-color: #d1e7dd;
    color: #0f5132;
}

.trip-status.cancelada {
    background-color: #f8d7da;
    color: #842029;
}

/* Vehicle cards */
.vehicle-card .model {
    font-size: 1.25rem;
    font-weight: bold;
}

.vehicle-card .plate {
    font-family: monospace;
    font-size: 1.1rem;
    background-color: #f8f9fa;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

/* Seat map */
.seat-map {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.seat {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.seat.available {
    background-color: #ffffff;
    color: #0f5132;
    border: 2px solid #0f5132;
}

.seat.occupied {
    background-color: #f8d7da;
    color: #000000;
    border: 2px solid #842029;
}

.seat:hover {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stats-card i {
        font-size: 2rem;
    }
    
    .stats-card .stats-value {
        font-size: 1.5rem;
    }
    
    .seat {
        width: 50px;
        height: 50px;
    }
}

/* Alinhamento dos botões no mobile */
@media (max-width: 768px) {
    .nav-tabs.card-header-tabs {
        justify-content: flex-end;
    }
}

/* Alinhamento dos botões de ação na view de viagens no mobile */
@media (max-width: 768px) {
    .d-flex.justify-content-between.align-items-center > div {
        text-align: right;
    }
}

/* --- Estilos para Layout de Assentos em Grid --- */

.seat-map-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
    padding: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
}

/* Estilo para cada linha de assentos */
.seat-row {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.seat-preview {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-weight: bold;
    background-color: #ffffff; /* Verde para disponível */
    color: #0f5132;
    border: 1px solid #0f5132;
    font-size: 0.8rem;
    cursor: default; /* Cursor padrão para preview */
    margin: 0; /* Remover margens para melhor alinhamento */
}

.seat-preview.occupied { /* Estilo para assento ocupado (se necessário no futuro) */
    background-color: #f8d7da; /* Vermelho */
    color: #842029;
    border: 1px solid #842029;
}

.seat-spacer {
    width: 35px;
    height: 35px;
    background-color: transparent;
    border: none;
}


 .seat-spacer.feature-space {
    border: 1px dashed #ccc;
    border-radius: 5px;
}

/* Estilos gerais para layout de ônibus DD */
.bus-layout {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 15px; /* Aumentar padding */
    margin-bottom: 15px;
    background-color: #ffffff;
}

.deck {
    margin-bottom: 15px;
    padding: 15px; /* Aumentar padding */
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.deck-title {
    text-align: left;
    margin-bottom: 15px; /* Aumentar margem */
    font-weight: bold;
    color: #495057;
    padding-left: 0; /* Remover padding extra */
    font-size: 1.1rem; /* Aumentar fonte */
}

.deck-divider {
    height: 2px;
    background-color: #adb5bd;
    margin: 25px 0; /* Aumentar margem */
    border: none;
}

.bus-features {
    display: none; /* Ocultar seção antiga */
}

/* Estilos para o layout de seleção de assentos */
.seat-selection-container {
    margin-top: 20px;
}

.bus-layout {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.seat-row {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 5px;
}

.seat {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.seat.available {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
}

.seat.available:hover {
    background-color: #e9ecef;
    transform: scale(1.1);
}

.seat.occupied {
    background-color: #dc3545;
    color: black;
    cursor: not-allowed;
}

.seat.selected {
    background-color: #198754;
    color: white;
    border: 2px solid #146c43;
    transform: scale(1.1);
}

.seat-spacer {
    width: 40px;
    height: 40px;
}

.corridor {
    background-color: transparent;
}

.feature-space {
    background-color: #e9ecef;
    border-radius: 5px;
}

.deck-title {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.deck-divider {
    height: 2px;
    background-color: #dee2e6;
    margin: 15px 0;
}

/* Legenda dos assentos */


.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.seat-demo {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.seat-demo.available {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
}

.seat-demo.occupied {
    background-color: #dc3545;
}

.seat-demo.selected {
    background-color: #198754;
}
