/**
 * Public styles for Voyager2 Cartões de Memória
 */

/* Main container */
.voyager2cartoes-container {
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
  min-height: 50px; /* Ensure container is visible even when empty */
}

/* Notificação (bubble) */
.voyager2cartoes-notification {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px !important;
  height: 40px !important;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  border: 2px solid transparent;
  background-image: linear-gradient(white, white), linear-gradient(135deg, #ff00cc, #3333ff);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.voyager2cartoes-notification.has-flashcards {
  opacity: 1;
  visibility: visible;
}

.voyager2cartoes-notification:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Adicionar o ícone de flashcard */
.voyager2cartoes-notification::before {
   content: "";
  display: block;
  width: 20px;
  height: 20px;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='9' y1='3' x2='9' y2='21'%3E%3C/line%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='9' y1='3' x2='9' y2='21'%3E%3C/line%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  background-image: linear-gradient(90deg, #00c6ff, #8d00ff, #ff00e5, #00c6ff);
  background-size: 300% 100%;
  animation: iconAnimation 6s ease infinite;
}

/* Estilo para o contador de notificações */
.voyager2cartoes-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #C50491;
  color: white;
  font-size: 12px;
  font-weight: bold;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Animação para o movimento das cores da borda */
@keyframes borderAnimation {
  0% {
    background-position: 0% 50%, 0% 50%;
  }
  50% {
    background-position: 0% 50%, 100% 50%;
  }
  100% {
    background-position: 0% 50%, 0% 50%;
  }
}



/* Animação para o gradiente do ícone */
@keyframes iconAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Atualizar o hover para manter a transformação correta sem o pulso */

/* Atualizar o estilo do número para ter o mesmo gradiente animado da borda */

/* Remover a classe pulse da notificação */
.voyager2cartoes-pulse {
  animation: none;
  
}

@keyframes voyager2cartoes-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.7);
    transform: translateY(-50%) scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(66, 133, 244, 0);
    transform: translateY(-50%) scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(66, 133, 244, 0);
    transform: translateY(-50%) scale(1);
  }
}

/* Modal */
.voyager2cartoes-modal,
.voyager2cartoes-history-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  animation: voyager2cartoes-fadein 0.3s;
}

@keyframes voyager2cartoes-fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.voyager2cartoes-modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 700px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
}

.voyager2cartoes-close,
.voyager2cartoes-history-close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #888;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 10;
}

.voyager2cartoes-close:hover,
.voyager2cartoes-history-close:hover {
  color: #333;
}

/* Flashcard */
.voyager2cartoes-flashcard-container {
  margin: 20px 0;
}

.voyager2cartoes-flashcard,
.voyager2cartoes-history-flashcard {
  perspective: 1000px;
  min-height: 350px;
}

.voyager2cartoes-flashcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

.voyager2cartoes-flashcard-inner.flipped {
  transform: rotateY(180deg);
}

.voyager2cartoes-flashcard-front,
.voyager2cartoes-flashcard-back {
  position: absolute;
  width: 100%;
  min-height: 350px;
  backface-visibility: hidden;
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  box-sizing: border-box; /* Garante que o padding não aumente o tamanho */
}

.voyager2cartoes-flashcard-front {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border-left: 5px solid #4285f4;
}

.voyager2cartoes-flashcard-back {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border-left: 5px solid #8d00ff;
  transform: rotateY(180deg);
}

.voyager2cartoes-subject {
  font-size: 14px;
  color: #4285f4;
  margin-bottom: 15px;
  text-align: left;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.voyager2cartoes-question,
.voyager2cartoes-answer {
  flex-grow: 1;
  margin-bottom: 25px;
  text-align: left;
  font-size: 18px;
  line-height: 1.6;
  overflow-y: auto;
  max-height: 250px;
  padding-right: 10px;
  color: #333;
  word-wrap: break-word; /* Garante que palavras longas quebrem */
  overflow-wrap: break-word; /* Suporte adicional para quebra de palavras */
  width: 100%; /* Garante que o conteúdo não ultrapasse o contêiner */
  box-sizing: border-box; /* Inclui padding no cálculo da largura */
}

/* Melhorias na formatação da questão */
.voyager2cartoes-question {
  font-weight: 600;
  font-size: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
}

/* Melhorias na formatação da resposta */
.voyager2cartoes-answer {
  font-weight: 400;
  padding: 15px;
  background-color: #f0f7ff;
  border-radius: 8px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
  max-height: 300px; /* Aumentado para mostrar mais conteúdo */
}

/* Formatação de parágrafos na resposta */
.voyager2cartoes-answer p {
  margin-bottom: 16px;
}

/* Formatação de listas na resposta */
.voyager2cartoes-answer ul,
.voyager2cartoes-answer ol {
  margin-bottom: 16px;
  padding-left: 25px;
}

.voyager2cartoes-answer li {
  margin-bottom: 8px;
}

/* Formatação de títulos na resposta */
.voyager2cartoes-answer h1,
.voyager2cartoes-answer h2,
.voyager2cartoes-answer h3,
.voyager2cartoes-answer h4 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 600;
  color: #1a73e8;
}

/* Formatação de código na resposta */
.voyager2cartoes-answer code,
.voyager2cartoes-answer pre {
  font-family: "Courier New", Courier, monospace;
  background-color: #f5f5f5;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.9em;
}

.voyager2cartoes-answer pre {
  padding: 15px;
  overflow-x: auto;
  margin: 16px 0;
}

/* Formatação de tabelas na resposta */
.voyager2cartoes-answer table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.voyager2cartoes-answer th,
.voyager2cartoes-answer td {
  border: 1px solid #e0e0e0;
  padding: 8px 12px;
  text-align: left;
}

.voyager2cartoes-answer th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.voyager2cartoes-answer tr:nth-child(even) {
  background-color: #f8f9fa;
}

/* Formatação de citações na resposta */
.voyager2cartoes-answer blockquote {
  border-left: 4px solid #4285f4;
  padding: 10px 20px;
  margin: 16px 0;
  background-color: #f8f9fa;
  font-style: italic;
}

/* Estilos para fórmulas matemáticas */
.MathJax,
.MathJax_Display {
  overflow-x: auto;
  max-width: 100%;
  margin: 10px 0 !important;
}

/* Estilo para fórmulas LaTeX não renderizadas */
.voyager2cartoes-answer span.math-tex,
#voyager2cartoes-history-answer span.math-tex,
.voyager2cartoes-answer span:contains("\\$\\$"),

#voyager2cartoes-history-answer span:contains("\\$\\$") {
  font-family: 'Cambria Math', serif;
  background-color: #f0f7ff;
  padding: 2px 5px;
  border-radius: 4px;
  font-style: italic;
  display: inline-block;
  margin: 2px 0;
}

/* Aumentar o espaço para a resposta no card */
.voyager2cartoes-answer {
  max-height: 350px !important; /* Aumentado para mostrar mais conteúdo */
  overflow-y: auto;
  padding: 20px !important;
  line-height: 1.7 !important;
}

/* Melhorar a exibição de fórmulas em linha */
.voyager2cartoes-answer .MathJax_Display {
  text-align: center !important;
  margin: 15px 0 !important;
  padding: 5px 0 !important;
  background-color: #f8f9fa;
  border-radius: 8px;
}

/* Garantir que o conteúdo da resposta seja exibido corretamente */
.voyager2cartoes-answer p,
#voyager2cartoes-history-answer p {
  margin-bottom: 16px !important;
  line-height: 1.7 !important;
}

.voyager2cartoes-flip-btn,
.voyager2cartoes-history-flip-btn {
  background: linear-gradient(135deg, #4285f4, #8d00ff);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  align-self: center;
}

.voyager2cartoes-flip-btn:hover,
.voyager2cartoes-history-flip-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Navigation */
.voyager2cartoes-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
}

.voyager2cartoes-prev,
.voyager2cartoes-next {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  padding: 10px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #333;
}

.voyager2cartoes-prev:hover,
.voyager2cartoes-next:hover {
  background: #f1f3f4;
  border-color: #d0d0d0;
}

.voyager2cartoes-prev:disabled,
.voyager2cartoes-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.voyager2cartoes-counter {
  font-size: 14px;
  color: #666;
}

/* No flashcards message */
.voyager2cartoes-no-flashcards {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  background: #f9f9f9;
  border-radius: 8px;
  margin: 20px 0;
}

/* History view */
.voyager2cartoes-history-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
}

.voyager2cartoes-filters {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 25px;
  
}

.voyager2cartoes-filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.voyager2cartoes-filter-group select {
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background-color: white;
  font-size: 14px;
  color: #333;
  min-width: 200px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.voyager2cartoes-filter-btn {
  background: linear-gradient(135deg, #4285f4, #8d00ff);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.voyager2cartoes-filter-btn:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

/* Updated grid layout with better spacing and definition */
.voyager2cartoes-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.voyager2cartoes-history-item {
  background: #fff;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.voyager2cartoes-history-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Garantir que os cards do histórico sejam clicáveis */
.voyager2cartoes-history-item {
  cursor: pointer !important;
  position: relative;
  z-index: 10;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.voyager2cartoes-history-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Garantir que todos os elementos dentro do item também sejam clicáveis */
.voyager2cartoes-history-item * {
  pointer-events: none;
}

/* Adicionar um efeito de clique para feedback visual */
.voyager2cartoes-history-item:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.voyager2cartoes-history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(to right, #f8f9fa, #ffffff);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.voyager2cartoes-history-item-subject {
  font-weight: bold;
  color: #4285f4;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-left: 12px;
  height: 100%;
}

#voyager2cartoes-subject-filter {
    height: 100%;
}

.voyager2cartoes-history-item-subject:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: #4285f4;
  border-radius: 2px;
}

.voyager2cartoes-history-item-date {
  color: #888;
  font-size: 12px;
}

.voyager2cartoes-history-item-question {
  font-weight: 600;
  padding: 20px 20px 10px;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  flex-grow: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.voyager2cartoes-history-item-preview {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  padding: 0 20px 20px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 1) 100%);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.voyager2cartoes-loading {
  text-align: center;
  padding: 30px;
  color: #666;
  grid-column: 1 / -1;
}

.voyager2cartoes-error {
  text-align: center;
  padding: 30px;
  color: #d93025;
  background: #fce8e6;
  border-radius: 8px;
  grid-column: 1 / -1;
}

/* Pagination */
.voyager2cartoes-pagination {
  margin: 30px 0;
  display: flex;
  justify-content: center;
}

/* Nova estrutura de paginação com container */
.voyager2cartoes-pagination-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
  background: #fff;
  padding: 12px 15px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.voyager2cartoes-pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
}

.voyager2cartoes-pagination-pages {
  display: flex;
  align-items: center;
  gap: 5px;
}

.voyager2cartoes-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #333;
  transition: all 0.2s ease;
}

.voyager2cartoes-page-btn:hover:not(.disabled):not(.active) {
  background: #f1f3f4;
}

.voyager2cartoes-page-btn.active {
  background: #4285f4;
  color: #fff;
  font-weight: bold;
}

.voyager2cartoes-page-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.voyager2cartoes-page-ellipsis {
  padding: 0 5px;
  color: #666;
}

/* Estilo para o dropdown de salto de página */
.voyager2cartoes-page-jump-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid #e0e0e0;
}

.voyager2cartoes-page-jump-container label {
  font-size: 14px;
  color: #666;
}

#voyager2cartoes-page-jump {
  padding: 6px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: white;
  font-size: 14px;
  color: #333;
  min-width: 100px;
  max-width: 150px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .voyager2cartoes-modal-content {
    width: 95%;
    margin: 5% auto;
    padding: 20px;
  }

  .voyager2cartoes-notification {
    
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  border: 2px solid transparent;
  background-image: linear-gradient(white, white), linear-gradient(90deg, #00c6ff, #8d00ff, #ff00e5, #00c6ff);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: 300% 100%;
  animation: borderAnimation 6s ease infinite;
}

  .voyager2cartoes-count {
    font-size: 16px;
  }

  .voyager2cartoes-history-grid {
    grid-template-columns: 1fr;
  }

  .voyager2cartoes-filters {
    flex-direction: column;
  }

  .voyager2cartoes-filter-group {
    width: 100%;
    margin-bottom: 10px;
  }

  .voyager2cartoes-filter-btn {
    width: 100%;
  }

  .voyager2cartoes-pagination-container {
    flex-direction: column;
    padding: 10px;
  }

  .voyager2cartoes-page-jump-container {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid #e0e0e0;
    padding-top: 10px;
    margin-top: 5px;
    width: 100%;
    justify-content: center;
  }

  .voyager2cartoes-pagination-pages {
    gap: 3px;
  }

  .voyager2cartoes-page-btn {
    min-width: 32px;
    height: 32px;
    font-size: 12px;
  }
}

/* MathJax styling */
.MathJax {
  overflow-x: auto;
  max-width: 100%;
}

/* Custom scrollbar for flashcard content */
.voyager2cartoes-question::-webkit-scrollbar,
.voyager2cartoes-answer::-webkit-scrollbar {
  width: 6px;
}

.voyager2cartoes-question::-webkit-scrollbar-track,
.voyager2cartoes-answer::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.voyager2cartoes-question::-webkit-scrollbar-thumb,
.voyager2cartoes-answer::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

.voyager2cartoes-question::-webkit-scrollbar-thumb:hover,
.voyager2cartoes-answer::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* Correções para o layout do histórico */
.voyager2cartoes-history-container {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Garantir que não haja cards duplicados abaixo da paginação */
.voyager2cartoes-history-container > .voyager2cartoes-flashcard,
.voyager2cartoes-history-container > .voyager2cartoes-flashcards-wrapper {
  display: none !important; /* Esconde qualquer card fora do grid */
}

/* Melhorias para o layout dos cards no grid */
.voyager2cartoes-history-grid {
  margin-top: 20px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

/* Garantir que imagens e tabelas não ultrapassem os limites */
.voyager2cartoes-question img,
.voyager2cartoes-answer img,
.voyager2cartoes-history-item-question img,
.voyager2cartoes-history-item-preview img,
.voyager2cartoes-question table,
.voyager2cartoes-answer table,
.voyager2cartoes-history-item-question table,
.voyager2cartoes-history-item-preview table {
  max-width: 100%;
  height: auto;
}

/* Melhorar a exibição de tabelas */
.voyager2cartoes-question table,
.voyager2cartoes-answer table {
  border-collapse: collapse;
  width: 100%;
  margin: 10px 0;
}

.voyager2cartoes-question table td,
.voyager2cartoes-answer table td,
.voyager2cartoes-question table th,
.voyager2cartoes-answer table th {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

/* Esconder completamente qualquer contêiner de "nenhum flashcard" fora do grid */
.voyager2cartoes-history-container > .voyager2cartoes-no-flashcards,
.voyager2cartoes-history-container > p,
.voyager2cartoes-history-container
  > div:not(.voyager2cartoes-filters):not(.voyager2cartoes-history-grid):not(.voyager2cartoes-pagination):not(
    .voyager2cartoes-history-modal
  ) {
  display: none !important;
}

/* Esconder qualquer elemento que possa estar sendo adicionado após a paginação */
.voyager2cartoes-pagination ~ * {
  display: none !important;
}

/* Garantir que os cards do histórico sejam clicáveis */
.voyager2cartoes-history-item {
  cursor: pointer !important;
  position: relative;
  z-index: 10;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.voyager2cartoes-history-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Garantir que todos os elementos dentro do item também sejam clicáveis */
.voyager2cartoes-history-item * {
  pointer-events: none;
}

/* Garantir que o modal de histórico apareça corretamente */
.voyager2cartoes-history-modal {
  z-index: 10000 !important;
}

/* Adicionar um efeito de clique para feedback visual */
.voyager2cartoes-history-item:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Garantir que apenas elementos do histórico sejam exibidos */
.voyager2cartoes-history-container
  > *:not(.voyager2cartoes-filters):not(.voyager2cartoes-history-grid):not(.voyager2cartoes-pagination):not(
    .voyager2cartoes-history-modal
  ) {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Adicionar estas regras no final do arquivo */

/* Garantir que o modal de histórico seja exibido corretamente */
.voyager2cartoes-history-modal {
  display: none;
  position: fixed !important;
  z-index: 10000 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: auto !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
}

/* Garantir que os itens do histórico sejam clicáveis */
.voyager2cartoes-history-item {
  cursor: pointer !important;
  position: relative !important;
  z-index: 10 !important;
}

/* Garantir que o modal de histórico seja exibido corretamente */
.voyager2cartoes-history-modal .voyager2cartoes-modal-content {
  z-index: 10001 !important;
  position: relative !important;
  background-color: #fff !important;
  margin: 5% auto !important;
  padding: 30px !important;
  border-radius: 12px !important;
  position: relative !important;
  background-color: #fff !important;
  padding: 30px !important;
  border-radius: 12px !important;
  width: 90% !important;
  max-width: 700px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

/* Garantir que o botão de fechar seja visível */
.voyager2cartoes-history-close {
  position: absolute !important;
  top: 15px !important;
  right: 20px !important;
  color: #888 !important;
  font-size: 28px !important;
  font-weight: bold !important;
  cursor: pointer !important;
  z-index: 10002 !important;
}



