:root {
  --cor-fundo: #DBD2D2;
  --cor-primaria: #00613B;
  --cor-destaque: #038351;
  --cor-suave: #98D0331A;
  --cor-texto: #1C1C1C;
  --cor-card: #F0F4F2;
  --cor-borda: #C8D4CE;
  --fonte-base: 'Inter', sans-serif;
}

body {
  font-family: var(--fonte-base);
  background-color: var(--cor-fundo);
  color: var(--cor-texto);
}

/* Cores de fundo */
.bg-fundo     { background-color: var(--cor-fundo); }
.bg-primario  { background-color: var(--cor-primaria); }
.bg-destaque  { background-color: var(--cor-destaque); }
.bg-card      { background-color: var(--cor-card); }
.bg-white     { background-color: white; }

/* Texto */
.text-texto     { color: var(--cor-texto); }
.text-destaque  { color: var(--cor-destaque); }
.text-primario  { color: var(--cor-primaria); }
.text-white     { color: white; }
.text-muted     { color: #666; }

/* Bordas */
.border-borda   { border-color: var(--cor-borda); }
.border         { border-width: 1px; border-style: solid; }
.rounded        { border-radius: .5rem; }
.rounded-lg     { border-radius: 1rem; }
.rounded-full   { border-radius: 9999px; }

/* Card */
.card {
  background-color: var(--cor-card);
  border: 1px solid var(--cor-borda);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Botões */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-destaque {
  background-color: var(--cor-destaque);
  color: white;
}

.btn-destaque:hover {
  opacity: 0.9;
}

.btn-primario {
  background-color: var(--cor-primaria);
  color: white;
}

.btn-primario:hover {
  opacity: 0.9;
}

.btn-white {
  background-color: white;
  color: var(--cor-primaria);
  border: 1px solid var(--cor-primaria);
}

.btn-white:hover {
  background-color: #f0f0f0;
}

/* Títulos */
.titulo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--cor-destaque);
}

/* Utilitários */
.shadow        { box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.shadow-lg     { box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.text-center   { text-align: center; }
.text-right    { text-align: right; }
.text-left     { text-align: left; }
.mt-4          { margin-top: 1rem; }
.mb-4          { margin-bottom: 1rem; }
.p-4           { padding: 1rem; }
.p-2           { padding: 0.5rem; }
.w-full        { width: 100%; }
.max-w-sm      { max-width: 24rem; }

/* ===== NOVA NAVEGAÇÃO MOBILE-FIRST ===== */

/* Menu Inferior Principal */
.nav-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--cor-primaria);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Estado quando submenu está ativo */
.nav-bottom.submenu-active {
  background: var(--cor-destaque);
}

/* Itens ativos */
.nav-item.active {
  color: white !important;
  background: rgba(255, 255, 255, 0.2);
}

/* Feedback visual quando submenu está aberto */
.nav-bottom.submenu-active .nav-item.active {
  background: rgba(255, 255, 255, 0.3);
}

.nav-bottom-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0;
  min-height: 60px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  min-width: 60px;
  min-height: 44px; /* Área de toque mínima */
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0.5rem;
}

.nav-item:hover,
.nav-item:active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
  color: white;
  background: rgba(255, 255, 255, 0.15);
}

.nav-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 0.25rem;
}

.nav-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
}

/* Overlay e Container de Submenu */
.submenu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.submenu-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 1rem 1rem 0 0;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Header do Submenu */
.submenu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--cor-borda);
  background: var(--cor-card);
  position: sticky;
  top: 0;
  z-index: 10;
}

.submenu-back,
.submenu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--cor-texto);
  cursor: pointer;
  border-radius: 0.5rem;
  transition: background 0.2s ease;
}

.submenu-back:hover,
.submenu-close:hover {
  background: var(--cor-borda);
}

.submenu-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--cor-primaria);
  margin: 0;
}

/* Itens do Submenu */
.submenu-items {
  padding: 0.5rem;
}

.submenu-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  margin-bottom: 0.5rem;
  background: white;
  border: 1px solid var(--cor-borda);
  border-radius: 0.75rem;
  text-decoration: none;
  color: var(--cor-texto);
  transition: all 0.2s ease;
  cursor: pointer;
}

.submenu-item:hover {
  background: var(--cor-card);
  border-color: var(--cor-destaque);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.submenu-item-danger {
  border-color: #ef4444;
  color: #ef4444;
}

.submenu-item-danger:hover {
  background: #fef2f2;
  border-color: #dc2626;
}

.submenu-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--cor-suave);
  border-radius: 0.75rem;
  margin-right: 1rem;
  color: var(--cor-destaque);
  flex-shrink: 0;
}

.submenu-item-content {
  flex: 1;
  min-width: 0;
}

.submenu-item-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: var(--cor-texto);
}

.submenu-item-description {
  font-size: 0.875rem;
  color: var(--cor-texto);
  opacity: 0.7;
  margin: 0;
  line-height: 1.4;
}

/* Conteúdo Principal */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  padding-bottom: 5rem; /* Espaço para o menu inferior */
  min-height: calc(100vh - 120px); /* Altura mínima considerando header + menu */
}

/* Ajuste do conteúdo principal para não ficar atrás do menu */
body {
  padding-bottom: 0; /* Removido, agora o main-content cuida disso */
}

/* Responsividade */
@media (min-width: 768px) {
  .submenu-container {
    max-width: 400px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1rem;
    margin: 2rem auto;
    max-height: 80vh;
  }
  
  .submenu-container {
    animation: fadeInScale 0.3s ease-out;
  }
  
  @keyframes fadeInScale {
    from {
      opacity: 0;
      transform: translateX(-50%) scale(0.9);
    }
    to {
      opacity: 1;
      transform: translateX(-50%) scale(1);
    }
  }
}

/* Animações de transição */
.transition {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.ease-in {
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}

.duration-200 {
  transition-duration: 200ms;
}

.duration-150 {
  transition-duration: 150ms;
}

/* Opacity transitions */
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }

/* ===== CARDS DE MÓDULO ===== */

.module-card {
  display: flex;
  align-items: center;
  padding: 1.25rem;
  background: white;
  border: 1px solid var(--cor-borda);
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--cor-texto);
  position: relative;
  overflow: hidden;
}

.module-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--cor-destaque);
}

.module-card:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.module-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--cor-suave);
  border-radius: 1rem;
  margin-right: 1rem;
  color: var(--cor-destaque);
  flex-shrink: 0;
  font-size: 1.5rem;
}

.module-card-content {
  flex: 1;
  min-width: 0;
}

.module-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: var(--cor-primaria);
  line-height: 1.3;
}

.module-card-description {
  font-size: 0.875rem;
  color: var(--cor-texto);
  opacity: 0.7;
  margin: 0;
  line-height: 1.4;
}

.module-card-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: var(--cor-destaque);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.25rem;
  margin-top: 0.5rem;
}

.module-card-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--cor-card);
  border-radius: 0.5rem;
  color: var(--cor-texto);
  opacity: 0.5;
  margin-left: 0.75rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.module-card:hover .module-card-action {
  opacity: 1;
  background: var(--cor-destaque);
  color: white;
}

/* Variações de Cards */
.module-card.highlight {
  background: linear-gradient(135deg, var(--cor-destaque), var(--cor-primaria));
  color: white;
  border-color: var(--cor-primaria);
}

.module-card.highlight .module-card-title {
  color: white;
}

.module-card.highlight .module-card-description {
  color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

.module-card.highlight .module-card-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.module-card.danger {
  border-color: #ef4444;
  color: #ef4444;
}

.module-card.danger .module-card-icon {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.module-card.danger:hover {
  border-color: #dc2626;
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.15);
}

/* Grid de Cards */
.module-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .module-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Grid com coluna destacada */
.module-grid-featured {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .module-grid-featured {
    grid-template-columns: 2fr 1fr;
  }
}

@media (min-width: 1024px) {
  .module-grid-featured {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ===== FORMULÁRIOS ===== */

.form-container {
  max-width: 800px;
  margin: 0 auto;
}

.form-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cor-borda);
  margin-top: 2rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

.form-row-2 { grid-template-columns: repeat(2, 1fr); }
.form-row-3 { grid-template-columns: repeat(3, 1fr); }
.form-row-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .form-row-2,
  .form-row-3,
  .form-row-4 {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .form-actions .btn {
    width: 100%;
  }
}

/* Estilos para campos de formulário */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--cor-borda);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  background: white;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--cor-primaria);
  box-shadow: 0 0 0 3px rgba(0, 97, 59, 0.1);
}

input:disabled,
select:disabled,
textarea:disabled {
  background: var(--cor-fundo);
  opacity: 0.6;
  cursor: not-allowed;
}

/* Labels */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cor-texto);
  margin-bottom: 0.5rem;
}

.form-label.required::after {
  content: " *";
  color: #ef4444;
}

.form-help {
  font-size: 0.75rem;
  color: var(--cor-texto);
  opacity: 0.7;
  margin-top: 0.25rem;
}

/* Erros de validação */
.form-error {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.form-error::before {
  content: "⚠";
}

/* ===== ALERTAS ===== */

.alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.4;
  border: 1px solid;
}

.alert-success {
  background: #f0fdf4;
  color: #166534;
  border-color: #86efac;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fca5a5;
}

.alert-warning {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.alert-info {
  background: #f0f9ff;
  color: #075985;
  border-color: #93c5fd;
}

/* ===== MODAIS ===== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--cor-texto);
}

.modal-body {
  color: var(--cor-texto);
  line-height: 1.6;
}

.modal-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cor-borda);
}

/* Estados de carregamento */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--cor-borda);
  border-top: 2px solid var(--cor-primaria);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== STATUS CARDS ===== */

.status-card {
  background: white;
  border: 1px solid var(--cor-borda);
  border-radius: 0.75rem;
  padding: 1rem;
  transition: all 0.2s ease;
}

.status-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== FORM HELP TEXT ===== */

.form-help-text {
  font-size: 0.75rem;
  color: var(--cor-texto);
  opacity: 0.7;
  margin-top: 0.25rem;
}

/* ===== FORM GROUP ===== */

.form-group {
  margin-bottom: 1rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

/* ===== GRID UTILITÁRIO ===== */

.grid {
  display: grid;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 640px) {
  .sm\:grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 640px) {
  .sm\:grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .md\:grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ===== GAP UTILITÁRIO ===== */

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* ===== FOCUS RING ===== */

.focus\:ring-primario:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 97, 59, 0.1);
}

.focus\:ring-destaque:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(3, 131, 81, 0.1);
}

/* ===== TRANSIÇÕES ===== */

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-shadow {
  transition-property: box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* ===== TRANSFORM ===== */

.transform {
  transform: translateX(var(--tw-translate-x, 0)) translateY(var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1));
}

.-translate-y-2 {
  --tw-translate-y: -0.5rem;
  transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1));
}

.translate-y-0 {
  --tw-translate-y: 0px;
  transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1));
}

/* ===== FIXED POSITIONING ===== */

.fixed {
  position: fixed;
}

.inset-0 {
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
}

/* ===== Z-INDEX ===== */

.z-50 {
  z-index: 50;
}

/* ===== DISPLAY ===== */

.hidden {
  display: none;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

/* ===== PADDING ===== */

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.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-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }

/* ===== MARGIN ===== */

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

.ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }

.mr-2 { margin-right: 0.5rem; }
.mr-4 { margin-right: 1rem; }

/* ===== WIDTH ===== */

.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-16 { width: 4rem; }
.w-full { width: 100%; }

.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }

/* ===== HEIGHT ===== */

.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-16 { height: 4rem; }

/* ===== TEXT ===== */

.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-lg { font-size: 1.125rem; line-height: 1.75rem; }
.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; }

/* ===== RING ===== */

.ring-2 {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.ring-primario\/50 {
  --tw-ring-color: rgba(0, 97, 59, 0.5);
}

/* ===== OPACITY ===== */

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-90 { opacity: 0.9; }
.opacity-100 { opacity: 1; }

/* ===== CURSOR ===== */

.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* ===== BACKGROUND COLOR ===== */

.bg-green-50 { background-color: #f0fdf4; }
.bg-yellow-50 { background-color: #fffbeb; }
.bg-red-50 { background-color: #fef2f2; }
.bg-blue-50 { background-color: #f0f9ff; }
.bg-green-600 { background-color: #16a34a; }
.bg-yellow-500 { background-color: #eab308; }
.bg-red-600 { background-color: #dc2626; }
.bg-blue-600 { background-color: #2563eb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-50 { background-color: #f9fafb; }

/* ===== TEXT COLOR ===== */

.text-green-600 { color: #16a34a; }
.text-yellow-600 { color: #ca8a04; }
.text-red-600 { color: #dc2626; }
.text-blue-600 { color: #2563eb; }
.text-green-500 { color: #22c55e; }
.text-yellow-500 { color: #eab308; }
.text-red-500 { color: #ef4444; }
.text-blue-500 { color: #3b82f6; }
.text-green-800 { color: #166534; }
.text-yellow-800 { color: #92400e; }
.text-red-800 { color: #991b1b; }
.text-blue-800 { color: #1e40af; }

/* ===== BORDER COLOR ===== */

.border-green-200 { border-color: #bbf7d0; }
.border-yellow-200 { border-color: #fde047; }
.border-red-200 { border-color: #fecaca; }
.border-blue-200 { border-color: #bfdbfe; }
.border-red-500 { border-color: #ef4444; }
.border-green-500 { border-color: #22c55e; }
.border-gray-300 { border-color: #d1d5db; }

/* ===== BACKGROUND OPACITY ===== */

.bg-primario\/10 { background-color: rgba(0, 97, 59, 0.1); }

/* ===== BORDER OPACITY ===== */

.border-primario\/30 { border-color: rgba(0, 97, 59, 0.3); }

/* ===== RING COLOR ===== */

.focus\:ring-green-500\/50:focus { --tw-ring-color: rgba(34, 197, 94, 0.5); }
.focus\:ring-yellow-500\/50:focus { --tw-ring-color: rgba(234, 179, 8, 0.5); }
.focus\:ring-red-500\/50:focus { --tw-ring-color: rgba(239, 68, 68, 0.5); }
.focus\:ring-blue-500\/50:focus { --tw-ring-color: rgba(59, 130, 246, 0.5); }

/* ===== DISABLED STATES ===== */

.disabled\:bg-primario\/50:disabled { background-color: rgba(0, 97, 59, 0.5); }
.disabled\:bg-destaque\/50:disabled { background-color: rgba(3, 131, 81, 0.5); }
.disabled\:bg-green-400:disabled { background-color: #4ade80; }
.disabled\:bg-yellow-400:disabled { background-color: #facc15; }
.disabled\:bg-red-400:disabled { background-color: #f87171; }
.disabled\:bg-blue-400:disabled { background-color: #60a5fa; }
.disabled\:bg-gray-100:disabled { background-color: #f3f4f6; }

.disabled\:opacity-50:disabled { opacity: 0.5; }

/* ===== HOVER STATES ===== */

.hover\:bg-primario\/90:hover { background-color: rgba(0, 97, 59, 0.9); }
.hover\:bg-destaque\/90:hover { background-color: rgba(3, 131, 81, 0.9); }
.hover\:bg-green-700:hover { background-color: #15803d; }
.hover\:bg-yellow-600:hover { background-color: #ca8a04; }
.hover\:bg-red-700:hover { background-color: #b91c1c; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }

/* ===== FOCUS STATES ===== */

.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); }

/* ===== ANIMATION ===== */

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== ARIA ===== */

.aria-disabled\:true[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive para formulários */
@media (max-width: 640px) {
  .form-container {
    padding: 0 0.5rem;
  }
  
  .modal-content {
    margin: 1rem;
    padding: 1rem;
  }
  
  .modal-footer {
    flex-direction: column-reverse;
  }
  
  .modal-footer .btn {
    width: 100%;
  }
}
