/* ==================================================================
   TAILWIND SHIM
   Substitui o Tailwind via CDN por CSS estático, cobrindo exatamente
   as classes utilitárias usadas neste projeto (não é o Tailwind
   inteiro — só o subconjunto realmente em uso).

   Por que isso existe: o CDN do Tailwind (https://cdn.tailwindcss.com)
   compila as classes em tempo real no navegador. Se o CDN cair, for
   bloqueado, ou o usuário estiver com internet ruim, todas as telas
   que dependem dele (Disciplinas, Comunidade, Configurações, Suporte)
   ficavam completamente sem estilo. Esse arquivo elimina essa
   dependência externa.
   ================================================================== */

/* --- Display / Posicionamento --- */
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-y-0 { top: 0; bottom: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-5 { right: 1.25rem; }
.bottom-5 { bottom: 1.25rem; }
.z-10 { z-index: 10; }
.z-\[9999\] { z-index: 9999; }
.overflow-hidden { overflow: hidden; }
.pointer-events-none { pointer-events: none; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-8 { width: 2rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-8 { height: 2rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }

/* --- Grid --- */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* --- Espaçamento (padding / margin) --- */
.p-2 { padding: 0.5rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.pt-2 { padding-top: 0.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pl-3 { padding-left: 0.75rem; }
.pl-10 { padding-left: 2.5rem; }
.pr-4 { padding-right: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

/* --- Tipografia --- */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-relaxed { line-height: 1.625; }
.whitespace-nowrap { white-space: nowrap; }

/* --- Cores de texto --- */
.text-white { color: #ffffff; }
.text-blue-100 { color: #dbeafe; }
.text-blue-300 { color: #93c5fd; }
.text-blue-600 { color: #2563eb; }
.text-blue-900 { color: #1e3a8a; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-amber-700 { color: #b45309; }
.text-orange-700 { color: #c2410c; }

/* --- Cores de fundo --- */
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-600 { background-color: #2563eb; }
.bg-blue-800\/60 { background-color: rgba(30, 64, 175, 0.6); }
.bg-amber-100 { background-color: #fef3c7; }
.bg-orange-100 { background-color: #ffedd5; }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to)); }
.from-blue-900 { --tw-gradient-from: #1e3a8a; }
.to-indigo-900 { --tw-gradient-to: #312e81; }

/* --- Bordas --- */
.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-200\/80 { border-color: rgba(229, 231, 235, 0.8); }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* --- Sombras --- */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.shadow-blue-200 { --tw-shadow-color: #bfdbfe; box-shadow: 0 1px 2px 0 rgba(191, 219, 254, 0.4); }

/* --- Outros --- */
.cursor-not-allowed { cursor: not-allowed; }
.resize-vertical { resize: vertical; }
.transition { transition-property: color, background-color, border-color, box-shadow, transform, opacity; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* --- Estados: hover / focus --- */
.hover\:bg-blue-50:hover { background-color: #eff6ff; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.4); }
.focus\:ring-blue-600:focus { box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.5); }

/* --- Responsivo: md (>=768px) --- */
@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:items-center { align-items: center; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:p-4 { padding: 1rem; }
  .md\:p-8 { padding: 2rem; }
  .md\:w-64 { width: 16rem; }
  .md\:w-auto { width: auto; }
}

/* --- Responsivo: lg (>=1024px) --- */
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
}

/* --- Modo escuro (usa o mesmo atributo data-theme já usado no resto do projeto) --- */
html[data-theme="dark"] .dark\:bg-slate-700 { background-color: #334155; }
html[data-theme="dark"] .dark\:bg-slate-800 { background-color: #1e293b; }
html[data-theme="dark"] .dark\:bg-slate-900 { background-color: #0f172a; }
html[data-theme="dark"] .dark\:border-slate-700 { border-color: #334155; }
html[data-theme="dark"] .dark\:text-slate-100 { color: #f1f5f9; }
html[data-theme="dark"] .dark\:text-slate-200 { color: #e2e8f0; }
html[data-theme="dark"] .dark\:text-slate-300 { color: #cbd5e1; }
html[data-theme="dark"] .dark\:text-slate-400 { color: #94a3b8; }
html[data-theme="dark"] .dark\:text-slate-500 { color: #64748b; }
