@import "tailwindcss";

/* 
   Configuração de Tema para Tailwind v4
   As cores e fontes devem ser definidas aqui se necessário, 
   mas o @theme abaixo garante compatibilidade.
*/

@theme {
  --color-totvs-blue: #00549f;
  --color-totvs-orange: #f29100;
  --color-totvs-dark: #1e293b;
}

/* --- RESET & GLOBAL --- */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden; /* Evita scroll lateral indesejado */
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Garante que cada seção ocupe a largura total e não fiquem lado a lado */
main {
  display: block;
  width: 100%;
}

section {
  width: 100%;
  display: block;
  clear: both;
}

/* --- FLASHCARDS 3D ANIMATION --- */
.flashcard {
  perspective: 1200px;
  cursor: pointer;
  min-height: 250px;
}

.flashcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flashcard.flipped .flashcard-inner {
  transform: rotateY(180deg);
}

.flashcard-front, .flashcard-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.flashcard-front {
  background-color: white;
  z-index: 2;
}

.dark .flashcard-front {
  background-color: #1e293b;
}

.flashcard-back {
  background-color: var(--color-totvs-blue);
  color: white;
  transform: rotateY(180deg);
  z-index: 1;
}

/* Scrollbar interno para respostas longas */
.scrollbar-thin::-webkit-scrollbar {
  width: 4px;
}

.scrollbar-thin::-webkit-scrollbar-track {
  background: transparent;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

/* --- SCROLLBAR GLOBAL --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: var(--color-totvs-blue);
  border-radius: 4px;
}
