/* Correções específicas para Chrome */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  /* Força o Chrome a usar o box-model correto em todos os elementos */
  * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  /* Corrige problemas de flexbox no Chrome */
  .form-row,
  .admin-actions,
  .stats-grid,
  .dosha-cards,
  .recommendations-grid {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
  }

  /* Corrige problemas de renderização de texto */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* Corrige problemas com bordas arredondadas */
  .button,
  .card,
  .stats-card,
  .dosha-badge,
  .modal-content,
  .results-table,
  .activity-log-container,
  .chart-container {
    -webkit-border-radius: 10px;
    border-radius: 10px;
    overflow: hidden;
  }

  /* Corrige problemas com transições */
  .button,
  .nav-links a,
  .dosha-card,
  .resource-card,
  .action-button {
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }

  /* Corrige problemas com sombras */
  .card,
  .stats-card,
  .modal-content,
  .results-table,
  .activity-log-container,
  .chart-container {
    -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  /* Corrige problemas com tabelas no Chrome */
  .results-table,
  .log-table {
    table-layout: fixed;
    width: 100%;
  }

  /* Corrige problemas com inputs */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  select,
  textarea {
    -webkit-appearance: none;
    appearance: none;
  }
}

/* Correção para problemas de layout em dispositivos móveis no Chrome */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (max-width: 768px) {
  .form-row,
  .admin-actions {
    -webkit-flex-direction: column;
    flex-direction: column;
  }

  .stats-grid {
    -webkit-grid-template-columns: 1fr;
    grid-template-columns: 1fr;
  }
}
