/* Cores personalizadas */
:root {
    --primary: #4158D0;
    --primary-dark: #2a3a9e;
    --secondary: #C850C0;
    --dark: #2C3E50;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.bg-opacity-20 {
    --bs-bg-opacity: 0.2;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #b13ea9 100%);
    transform: scale(0.98);
}

/* Cards de fretes otimizados para mobile */
.frete-item {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 0.875rem;
    margin-bottom: 0.75rem;
}

.frete-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.frete-motorista {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}

.frete-data {
    font-size: 0.7rem;
    color: #999;
    background: #f5f5f5;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
}

.frete-detalhes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.5rem;
}

.frete-detalhes div {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--dark);
}

.frete-detalhes i {
    color: var(--primary);
    width: 16px;
    font-size: 0.9rem;
}

.frete-enderecos {
    font-size: 0.75rem;
    color: #666;
}

.frete-enderecos p {
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.frete-enderecos i {
    color: var(--primary);
    width: 14px;
}

/* Loading e Empty State */
.loading, .empty-state {
    text-align: center;
    padding: 1.5rem;
    color: #999;
    font-size: 0.9rem;
}

.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* GPS Status */
#gps-status.alert-success {
    background-color: #e3f9e5;
    border: none;
    color: #198754;
}

#gps-status.alert-warning {
    background-color: #fff3cd;
    border: none;
    color: #856404;
}

#gps-status.alert-danger {
    background-color: #f8d7da;
    border: none;
    color: #842029;
}

/* Modal fullscreen no mobile */
@media (max-width: 768px) {
    .modal-fullscreen {
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
    }
    
    .modal-fullscreen .modal-content {
        height: 100%;
        border: none;
        border-radius: 0;
    }
}

/* Ajustes Leaflet */
.leaflet-container {
    border-radius: 0;
}

/* Animações suaves */
.btn, .card {
    transition: all 0.2s ease;
}

.card:active {
    transform: scale(0.98);
}

/* ============================================
   ESTILOS DO GOOGLE MAPS
   ============================================ */

/* Estilos para as janelas de informação do Google Maps */
.gm-style .gm-style-iw-c {
    padding: 12px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}

.gm-style .gm-style-iw-d {
    overflow: auto !important;
    max-height: 200px !important;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important;
}

.gm-ui-hover-effect {
    top: 8px !important;
    right: 8px !important;
    opacity: 0.7 !important;
}

.gm-ui-hover-effect:hover {
    opacity: 1 !important;
}

/* Container do mapa */
.map-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* Loading overlay para o mapa */
.map-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(3px);
}

.map-loading .spinner {
    background: white;
    padding: 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-loading i {
    font-size: 2rem;
    color: var(--primary);
}

/* Info window customizada */
.route-info-window {
    padding: 5px;
    min-width: 220px;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.route-info-window h6 {
    margin: 0 0 12px 0;
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.route-info-window p {
    margin: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}

.route-info-window i {
    color: var(--primary);
    width: 20px;
    font-size: 1rem;
    margin-top: 2px;
}

.route-info-window .btn {
    margin-top: 12px;
    border-radius: 25px;
    font-size: 0.9rem;
    padding: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    transition: all 0.2s;
}

.route-info-window .btn:hover {
    transform: scale(0.98);
    opacity: 0.9;
}

/* Marcadores customizados */
.custom-marker {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: 3px solid white;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    width: 36px;
    height: 36px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.2s;
}

.custom-marker:hover {
    transform: rotate(-45deg) scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.custom-marker i {
    transform: rotate(45deg);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 18px;
}

/* Marcador de origem/destino */
.marker-label {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    margin-bottom: 5px;
}

.marker-label.origem {
    background: var(--primary);
    color: white;
}

.marker-label.destino {
    background: var(--secondary);
    color: white;
}

/* Painel de direções */
.directions-panel {
    background: white;
    border-radius: 16px;
    padding: 16px;
    max-height: 350px;
    overflow-y: auto;
    margin-top: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.directions-panel h6 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.directions-panel .step {
    padding: 12px 8px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.directions-panel .step:last-child {
    border-bottom: none;
}

.directions-panel .step i {
    color: var(--primary);
    width: 20px;
    font-size: 1rem;
    margin-top: 2px;
}

.directions-panel .step-content {
    flex: 1;
}

.directions-panel .step-content .instruction {
    color: #333;
    line-height: 1.4;
}

.directions-panel .step-content .distance {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
    margin-top: 4px;
    display: inline-block;
    background: #f0f7ff;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Controles customizados do mapa */
.map-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-control-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-control-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* Autocomplete do Google Places */
.pac-container {
    border-radius: 0 0 12px 12px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    margin-top: 2px;
}

.pac-item {
    padding: 8px 12px;
    cursor: pointer;
    border-top: 1px solid #f0f0f0;
}

.pac-item:hover {
    background: #f8f9fa;
}

.pac-item-query {
    font-size: 0.95rem;
    color: #333;
}

.pac-matched {
    font-weight: 600;
    color: var(--primary);
}

.pac-icon {
    margin-right: 8px;
}

/* Ajustes para o modal do mapa */
.modal-fullscreen .modal-body {
    padding: 0;
    position: relative;
    overflow: hidden;
}

.modal-fullscreen #map {
    height: 100%;
    width: 100%;
}

/* Resumo da rota no modal */
.route-summary {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 100;
    display: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.route-summary.show {
    display: block;
    animation: slideUp 0.3s ease;
}

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

.route-summary .distance {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.route-summary .duration {
    font-size: 1rem;
    color: #666;
    margin-bottom: 8px;
}

.route-summary .duration i {
    color: var(--primary);
    margin-right: 5px;
}

.route-summary .fuel {
    background: #f0f7ff;
    padding: 8px 12px;
    border-radius: 30px;
    display: inline-block;
    font-weight: 600;
    color: var(--primary);
    margin-top: 8px;
}

/* Responsividade */
@media (max-width: 768px) {
    .route-info-window {
        min-width: 180px;
    }
    
    .route-info-window h6 {
        font-size: 0.9rem;
    }
    
    .route-info-window p {
        font-size: 0.8rem;
    }
    
    .custom-marker {
        width: 30px;
        height: 30px;
    }
    
    .custom-marker i {
        font-size: 14px;
    }
    
    .directions-panel {
        max-height: 250px;
    }
    
    .directions-panel .step {
        padding: 8px;
        font-size: 0.8rem;
    }
}

/* ============================================
   ESTILOS PARA OS TRECHOS DE FRETE
   ============================================ */

/* Container principal dos cálculos */
.trechos-container {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
}

/* Cabeçalho dos trechos */
.trecho-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #5a6a7a;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.trecho-header i {
    color: var(--primary);
    font-size: 0.9rem;
}

/* Estilo base para cada trecho */
.trecho-item {
    padding: 16px 12px;
    transition: background-color 0.2s ease;
}

/* 1º Trecho - fundo levemente mais claro */
.trecho-item.first {
    background-color: #fafbfc;
    border-radius: 12px 12px 0 0;
}

/* 2º Trecho - fundo branco puro para contraste suave */
.trecho-item.second {
    background-color: #ffffff;
    border-radius: 0 0 12px 12px;
}

/* Linha divisória sutil entre os trechos */
.trecho-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(65, 88, 208, 0.1) 20%, 
        rgba(200, 80, 192, 0.1) 80%, 
        transparent 100%
    );
    margin: 0;
}

/* Cards de valores dentro dos trechos */
.trecho-valores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.trecho-valor-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.03);
}

.trecho-valor-item .label {
    font-size: 0.7rem;
    color: #7f8c8d;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trecho-valor-item .label i {
    color: var(--primary);
    font-size: 0.8rem;
}

.trecho-valor-item .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.trecho-valor-item .value small {
    font-size: 0.7rem;
    font-weight: 400;
    color: #95a5a6;
    margin-left: 2px;
}

/* Seção de totais */
.totais-container {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 16px;
    margin-top: 12px;
    border: 1px solid rgba(65, 88, 208, 0.08);
}

.totais-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.total-item {
    text-align: center;
    padding: 8px;
}

.total-item .label {
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.total-item .label i {
    color: var(--primary);
}

.total-item .value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

.total-item .value small {
    font-size: 0.8rem;
    font-weight: 400;
    color: #64748b;
}

/* Valor total em destaque */
.valor-total-destaque {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(65, 88, 208, 0.2);
}

.valor-total-destaque .label {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.valor-total-destaque .valor {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Campos de entrada em destaque suave */
.input-highlight {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    transition: all 0.2s ease;
}

.input-highlight:hover {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(65, 88, 208, 0.1);
}

.input-highlight:focus-within {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(65, 88, 208, 0.15);
}

.input-highlight label {
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 4px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.input-highlight input {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    width: 100%;
}

.input-highlight input:focus {
    outline: none;
    box-shadow: none;
}

.input-highlight input::placeholder {
    color: #cbd5e1;
    font-weight: 400;
}

/* Badges para identificar trechos */
.trecho-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.trecho-badge.primeiro {
    background: rgba(65, 88, 208, 0.08);
    color: var(--primary);
}

.trecho-badge.segundo {
    background: rgba(200, 80, 192, 0.08);
    color: var(--secondary);
}

/* Indicadores visuais */
.trecho-indicator {
    width: 3px;
    height: 24px;
    border-radius: 3px;
    margin-right: 8px;
}

.trecho-indicator.primeiro {
    background: linear-gradient(135deg, var(--primary) 0%, #5d7ad6 100%);
}

.trecho-indicator.segundo {
    background: linear-gradient(135deg, var(--secondary) 0%, #d669c6 100%);
}

/* Responsividade */
@media (max-width: 768px) {
    .trecho-valor-item .value {
        font-size: 1rem;
    }
    
    .total-item .value {
        font-size: 1.1rem;
    }
    
    .valor-total-destaque .valor {
        font-size: 1.3rem;
    }
    
    .trecho-item {
        padding: 12px 8px;
    }
    
    .trecho-valores {
        gap: 8px;
    }
}

/* Animações suaves */
.trecho-item, .total-item, .valor-total-destaque {
    transition: all 0.2s ease;
}

.trecho-item:hover {
    filter: brightness(0.99);
}

/* Ajuste para o container existente */
.bg-light.rounded-3.p-2.mb-3 {
    background: #ffffff !important;
    border: 1px solid #edf2f7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

/* ============================================
   ESTILOS MELHORADOS PARA CAMPOS DE TROCA
   ============================================ */

/* Container dos campos de troca */
.campos-troca {
    margin-top: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    animation: fadeIn 0.3s ease;
    border: 1px solid #e9ecef;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilo para cada campo de troca */
.campo-troca {
    margin-bottom: 0;
}

.campo-troca label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 4px;
    display: block;
}

.campo-troca label i {
    font-size: 0.7rem;
    margin-right: 3px;
    color: #4158D0;
}

.campo-troca input {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.85rem;
    width: 100%;
    transition: all 0.2s;
}

.campo-troca input:focus {
    outline: none;
    border-color: #4158D0;
    box-shadow: 0 0 0 3px rgba(65, 88, 208, 0.1);
}

.campo-troca input::placeholder {
    color: #adb5bd;
    font-size: 0.8rem;
}

/* Ajuste para os inputs de data e número */
.campo-troca input[type="date"] {
    font-family: inherit;
}

.campo-troca input[type="number"] {
    -moz-appearance: textfield;
}

.campo-troca input[type="number"]::-webkit-inner-spin-button,
.campo-troca input[type="number"]::-webkit-outer-spin-button {
    opacity: 0.5;
}

/* Cards de manutenção melhorados */
.manutencao-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.manutencao-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #4158D0;
}

.manutencao-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 8px;
}

.manutencao-data {
    font-size: 0.85rem;
    font-weight: 500;
    color: #4158D0;
    background: #f0f7ff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.manutencao-km {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2C3E50;
    background: #f8f9fa;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.manutencao-itens {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.manutencao-item-trocado {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: #f8f9fa;
}

.manutencao-item-trocado:hover {
    transform: translateX(4px);
}

.manutencao-item-info {
    flex: 1;
}

.manutencao-item-info strong {
    font-size: 0.9rem;
    color: #2C3E50;
    display: block;
    margin-bottom: 0.25rem;
}

.manutencao-item-detalhes {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
    flex-wrap: wrap;
}

.manutencao-item-detalhes .badge {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    background: #fff !important;
    border: 1px solid #e9ecef;
}

/* Responsividade */
@media (max-width: 768px) {
    .manutencao-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .manutencao-item-trocado {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .manutencao-item-detalhes {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .manutencao-item-detalhes .badge {
        display: inline-block;
        width: fit-content;
    }
    
    /* Ajuste para campos de troca em mobile */
    .campos-troca .row {
        gap: 8px;
    }
    
    .campos-troca .col-6 {
        width: 100%;
        padding: 0;
    }
    
    .campos-troca .row.g-2 {
        flex-direction: column;
    }
}

/* Switch customizado */
.form-switch .form-check-input {
    width: 2.2em;
    height: 1.2em;
    cursor: pointer;
}

.form-switch .form-check-input:checked {
    background-color: #4158D0;
    border-color: #4158D0;
}

.form-switch .form-check-label {
    cursor: pointer;
    margin-left: 8px;
    font-size: 0.85rem;
    color: #495057;
}

/* Melhorias no item de manutenção */
.manutencao-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 12px;
    transition: all 0.2s;
}

.manutencao-item:hover {
    border-color: #4158D0;
    box-shadow: 0 2px 8px rgba(65, 88, 208, 0.08);
}

.manutencao-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Botão Atualizar GPS - estados */
.btn-atualizar-gps {
    height: 42px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
}

/* Estado normal (azul outline) */
.btn-atualizar-gps:not(.loading) {
    background: transparent;
    border: 1px solid #4158D0;
    color: #4158D0;
}

/* Estado de loading (laranja sólido) */
.btn-atualizar-gps.loading {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border: none;
    color: #fff;
    cursor: wait;
    opacity: 0.9;
}

.btn-atualizar-gps.loading i {
    animation: spin 1s linear infinite;
}

/* Garantir que a altura não mude */
.btn-atualizar-gps,
.btn-atualizar-gps.loading {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
}

/* GPS Status - altura fixa */
#gps-status {
    height: 42px;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-size: 0.75rem;
}

#gps-status.alert-success,
#gps-status.alert-warning,
#gps-status.alert-danger {
    height: 42px;
    display: flex;
    align-items: center;
}

/* Remover outline branco após loading */
.btn-atualizar-gps:focus {
    outline: none;
    box-shadow: none;
}

.btn-atualizar-gps.loading:focus {
    outline: none;
    box-shadow: none;
}
