/* ════════════════════════════════════════════════════════════
   style.css — estilos customizados
   (Tailwind CSS é carregado via CDN)
════════════════════════════════════════════════════════════ */

/* Fontes */
* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar sutil */
::-webkit-scrollbar        { width: 6px; height: 6px; }
::-webkit-scrollbar-track  { background: #f1f5f9; }
::-webkit-scrollbar-thumb  { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.25s ease-out;
}

/* Progress bar animada */
.progress-bar {
  transition: width 0.6s ease-out;
}

/* Badge de conquista desbloqueada */
.conquista-unlocked {
  animation: pop 0.3s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes pop {
  0%  { transform: scale(1); }
  50% { transform: scale(1.15); }
  100%{ transform: scale(1); }
}

/* Filtro ativo */
.active-filter {
  background-color: #F59E0B;
  color: #ffffff;
  border-color: #F59E0B;
}

/* Inputs — remove outline padrão do browser e aplica ring customizado */
input:focus, select:focus, textarea:focus {
  outline: none;
}

/* Tabela responsiva */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Modal backdrop */
.modal-backdrop {
  backdrop-filter: blur(4px);
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Estatísticas card hover */
.stat-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(0,0,0,0.1);
}

/* Ranking item destaque */
.ranking-me {
  background-color: #fffbeb;
  font-weight: 700;
}

/* Responsive nav links */
@media (max-width: 768px) {
  .nav-link { font-size: 0.8rem; }
}
