/* Estilos específicos para dispositivos móveis */
@media (max-width: 768px) {
  /* Ajustes para o cabeçalho */
  .navbar-topo {
    margin: 10px auto;
  }
  
  .topo-superior {
    flex-direction: row;
    align-items: center;
    margin-bottom: 10px;
  }
  
  .card-conta-container {
    max-width: 150px;
  }
  
  .logout-btn {
    padding: 6px 12px;
    font-size: 12px;
    height: 36px;
  }
  
  .logout-text {
    display: none;
  }
  
  /* Ajustes para a licença */
  .licenca-wrapper {
    width: 100%;
    padding: 4px 10px;
  }
  
  .licenca-mini {
    gap: 8px;
    justify-content: space-around;
  }
  
  .licenca-mini-item {
    gap: 1px;
  }
  
  .licenca-mini-icone {
    font-size: 10px;
    min-width: 12px;
  }
  
  .licenca-mini-text {
    font-size: 0.5rem;
  }
  
  .licenca-mini-valor {
    font-size: 0.5rem;
  }
  
  /* Ajustes para a barra de informações */
  .info-bar {
    height: auto;
    padding: 15px 20px;
    flex-direction: row;
    gap: 10px;
  }
  
  .info-bar .saldo,
  .info-bar .lucro {
    align-items: center;
    text-align: center;
    min-width: auto;
  }
  
  #saldo-valor,
  #lucro-valor {
    font-size: 1.4em;
  }
  
  /* Ajustes para o controle do robô */
  .modo-meta-wrapper {
    width: 80%;
    padding: 15px 20px;
  }
  
  #bot-control-btn {
    height: 50px;
    font-size: 18px;
  }
  
  /* Ajustes para o log */
  .log-temp {
    padding: 0.8rem 1rem;
    font-size: 0.8rem;
  }
  
  /* Ajustes para a barra de status */
  #barra-status {
    padding: 0.6rem 1rem;
  }
  
  .status-etapas > div {
    width: 60px;
  }
  
  .status-etapas > div span {
    font-size: 0.65rem;
  }
  
  .status-etapas::before,
  .status-etapas::after {
    left: 30px !important;
    right: 30px !important;
    top: 7px;
  }

  .status-etapas::after {
    right: auto !important;
    max-width: calc(100% - 60px) !important;
  }
  
  .bolinha {
    width: 16px;
    height: 16px;
  }
  
  /* Ajustes para o histórico */
  .historico {
    padding: 1rem 1.2rem;
  }
  
  .titulo-historico {
    font-size: 1rem;
  }
  
  .icone-historico {
    font-size: 1.1rem;
  }
  
  #historico-tabela {
    font-size: 0.75rem;
  }
  
  #historico-tabela th,
  #historico-tabela td {
    padding: 0.5rem 0.6rem;
  }
  
  /* Ajustes para o rodapé */
  .rodape-painel {
    padding: 0.6rem 1rem;
    font-size: 0.7rem;
  }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 480px) {
  .info-bar {
    padding: 8px 10px;
  }
  
  #saldo-valor,
  #lucro-valor {
    font-size: 1.2em;
  }
  
  .modo-meta-wrapper {
    width: 90%;
    padding: 12px 15px;
  }
  
  .modo-select,
  .input-meta {
    font-size: 13px;
    height: 30px;
  }
  
  #bot-control-btn {
    height: 45px;
    font-size: 16px;
  }
  
  .log-temp {
    padding: 0.6rem 0.8rem;
    font-size: 0.7rem;
  }
  
  #barra-status {
    padding: 0.5rem 0.8rem;
  }
  
  .status-etapas > div {
    width: 50px;
  }
  
  .status-etapas > div span {
    font-size: 0.6rem;
  }
  
  .status-etapas::before,
  .status-etapas::after {
    left: 25px !important;
    right: 25px !important;
    top: 6px;
  }

  .status-etapas::after {
    right: auto !important;
    max-width: calc(100% - 50px) !important;
  }
  
  .bolinha {
    width: 14px;
    height: 14px;
  }
  
  .historico {
    padding: 0.8rem 1rem;
  }
  
  .titulo-historico {
    font-size: 0.9rem;
  }
  
  .icone-historico {
    font-size: 1rem;
  }
  
  #historico-tabela {
    font-size: 0.7rem;
  }
  
  #historico-tabela th,
  #historico-tabela td {
    padding: 0.4rem 0.5rem;
  }
  
  .rodape-painel {
    padding: 0.5rem 0.8rem;
    font-size: 0.65rem;
  }
  
  /* Ocultar colunas menos importantes em telas muito pequenas */
  .hide-on-mobile {
    display: none;
  }
  
  /* Ajustes para valores longos */
  .valor-longo {
    font-size: 1rem !important;
  }
}

/* Estilos para valores e animações */
#saldo-valor::after {
  content: " USD";
  display: inline-block;
  visibility: visible;
  opacity: 0.7;
  font-weight: normal;
  color: #aaaaaa;
  margin-left: 15px;
  font-size: 1rem;
}

#meta-valor {
  margin-left: 3px !important;
  letter-spacing: 1px !important;
}

.destaque-mobile {
  animation: pulse 1.5s ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
    color: var(--verde-claro);
  }
  100% {
    transform: scale(1);
  }
}
