.widget-cercas {
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.widget-header {
    background-color: #f5f5f5;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.badge-online {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.cerca-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 600px;
    overflow-y: auto;
    flex: 1;
}

.cerca-item {
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.cerca-item:last-child {
    border-bottom: none;
}

.cerca-item:hover {
    background-color: #f9f9f9;
}

.cerca-row {
    display: flex;
    padding: 12px 15px;
    cursor: pointer;
    align-items: center;
    gap: 15px;
}

.bullet {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #007bff;
    border-radius: 50%;
    flex-shrink: 0;
}

.cerca-nome {
    flex: 1;
    font-weight: 600;
    color: #333;
    min-width: 150px;
    text-transform: uppercase;
}

.embarcador {
    flex: 1;
    color: #666;
    min-width: 150px;
}

.total {
    background-color: #007bff;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 14px;
    min-width: 50px;
    text-align: center;
    flex-shrink: 0;
}

.veiculo-list {
    list-style: none;
    padding: 10px 15px;
    margin: 0;
    background-color: #f9f9f9;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.veiculo-list li {
    padding: 8px 10px;
    color: #555;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 35px;
    text-transform: uppercase;
}

.veiculo-list li:before {
    content: "";
}

.loading-spinner {
    text-align: center;
    padding: 20px;
    color: #999;
}

.erro-mensagem {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 15px;
}

.vazio-mensagem {
    text-align: center;
    padding: 30px;
    color: #999;
}

/* Responsividade para diferentes tamanhos */
@media (max-width: 1200px) {
    .veiculo-list {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
}

@media (max-width: 992px) {
    .veiculo-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .cerca-row {
        gap: 10px;
    }

    .embarcador,
    .cerca-nome {
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .veiculo-list {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 8px;
        padding: 8px 10px;
    }

    .veiculo-list li {
        font-size: 12px;
        min-height: 32px;
        padding: 6px 8px;
    }

    .cerca-row {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px;
    }

    .embarcador,
    .cerca-nome {
        flex: 0 0 100%;
        min-width: auto;
        font-size: 14px;
    }

    .total {
        flex: 0 0 auto;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .veiculo-list {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 6px;
    }

    .veiculo-list li {
        font-size: 11px;
        min-height: 30px;
        padding: 4px 6px;
    }

    .widget-header {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .widget-header h3 {
        font-size: 16px;
    }
}
