/* EDUCA FÁCIL - Estilos Globais */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

* {
  font-family: 'Nunito', sans-serif;
}

/* Form labels */
.label-form {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #4b5563;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Form inputs padrão */
.input-form {
  width: 100%;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  background: white;
  transition: all 0.2s;
  outline: none;
}

.input-form:focus {
  border-color: #2d6a9f;
  box-shadow: 0 0 0 3px rgba(45, 106, 159, 0.15);
}

textarea.input-form {
  resize: vertical;
  min-height: 70px;
}

/* Notas inputs */
.nota-input:focus {
  border-color: #7c3aed !important;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15);
}

/* Tabelas */
table {
  border-collapse: separate;
  border-spacing: 0;
}

tbody tr:last-child td:first-child { border-bottom-left-radius: 0; }
tbody tr:last-child td:last-child { border-bottom-right-radius: 0; }

/* Cards de stat */
.card-stat {
  cursor: default;
}

/* Animações */
.fade-in {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scrollbar customizado */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Impressão */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white;
  }
  
  .main-content {
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Carteirinha prévia */
#previaCarteirinha > div {
  width: 320px;
  min-width: 300px;
}

/* Linha clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

/* Badge pulsante para alertas */
.badge-alert-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Mobile responsive */
@media (max-width: 640px) {
  .grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* Hover effects para nav items mobile */
.nav-item:active {
  background: rgba(255,255,255,0.3) !important;
}

/* Focus visible para acessibilidade */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #2d6a9f;
  outline-offset: 2px;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #1e3a5f, #4a9fd4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
