/* =========================================
   SISTEMA DE GABINETE - ALÉM PARAÍBA
   style.css - v1.0
   ========================================= */

/* =========================================
   VARIÁVEIS E RESET
   ========================================= */
:root {
  /* Cores principais */
  --primary: #3b7ddd;
  --primary-dark: #2e67b7;
  --secondary: #6c757d;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;
  --light: #f8f9fa;
  --dark: #343a40;
  
  /* Tons de azul para gradientes */
  --blue-gradient-1: #1a274e;
  --blue-gradient-2: #0a122a;
  
  /* Tons neutros */
  --gray-100: #f5f7fa;
  --gray-200: #e5e9f2;
  --gray-300: #d3dcef;
  --gray-400: #b7c2d6;
  --gray-500: #96a5bf;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  
  /* Espaçamentos */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  
  /* Raios de borda */
  --border-radius-sm: 4px;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  
  /* Sombras */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  
  /* Tipografia */
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  
  /* Transições */
  --transition-fast: 0.15s ease;
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset básico */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--gray-800);
  background-color: var(--gray-100);
  min-height: 100vh;
}

/* =========================================
   LAYOUT GERAL
   ========================================= */
.container-fluid {
  width: 100%;
  padding-right: var(--spacing-md);
  padding-left: var(--spacing-md);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

/* =========================================
   SIDEBAR
   ========================================= */
.sidebar {
  background: linear-gradient(135deg, var(--blue-gradient-1) 0%, var(--blue-gradient-2) 100%);
  color: white;
  height: 100vh;
  position: sticky;
  top: 0;
  padding-top: var(--spacing-lg);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  z-index: 1000;
}

.sidebar-header {
  padding: 0 var(--spacing-lg) var(--spacing-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--spacing-md);
}

.sidebar-header h5 {
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.sidebar .nav-link, 
.sidebar a {
  color: rgba(255, 255, 255, 0.7);
  padding: var(--spacing-sm) var(--spacing-lg);
  margin-bottom: var(--spacing-xs);
  margin-left: var(--spacing-sm);
  margin-right: var(--spacing-sm);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  transition: all var(--transition);
  text-decoration: none;
}

.sidebar .nav-link:hover, 
.sidebar a:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.sidebar .nav-link.active, 
.sidebar a.active {
  color: white;
  background: linear-gradient(90deg, rgba(59, 125, 221, 0.8), rgba(59, 125, 221, 0.4));
  box-shadow: var(--shadow-sm);
  font-weight: 500;
}

.sidebar .nav-link i, 
.sidebar a i {
  width: 24px;
  margin-right: var(--spacing-md);
  font-size: 1.1rem;
}

/* =========================================
   CONTEÚDO PRINCIPAL
   ========================================= */
.content {
  padding: var(--spacing-xl);
  transition: all var(--transition);
  animation: fadeIn var(--transition-slow);
}

.content-header {
  margin-bottom: var(--spacing-xl);
}

.content-header h2 {
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: var(--spacing-xs);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin-bottom: var(--spacing-md);
  list-style: none;
  font-size: 0.85rem;
}

.breadcrumb-item {
  display: flex;
}

.breadcrumb-item + .breadcrumb-item {
  padding-left: var(--spacing-sm);
}

.breadcrumb-item + .breadcrumb-item::before {
  display: inline-block;
  padding-right: var(--spacing-sm);
  color: var(--gray-600);
  content: "/";
}

.breadcrumb-item a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--gray-600);
}

/* =========================================
   CARDS E COMPONENTES
   ========================================= */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  margin-bottom: var(--spacing-lg);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  padding: var(--spacing-lg);
  background-color: white;
  border-bottom: 1px solid var(--gray-200);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h5 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.card-body {
  flex: 1 1 auto;
  padding: var(--spacing-lg);
}

.card-footer {
  padding: var(--spacing-md) var(--spacing-lg);
  background-color: rgba(0, 0, 0, 0.02);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Dashboard Cards */
.dashboard-card {
  border-left: 4px solid;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.card-blue {
  border-left-color: var(--primary);
}

.card-green {
  border-left-color: var(--success);
}

.card-yellow {
  border-left-color: var(--warning);
}

.card-red {
  border-left-color: var(--danger);
}

.card-icon {
  font-size: 2.2rem;
  opacity: 0.2;
  transition: all var(--transition);
}

.dashboard-card:hover .card-icon {
  transform: scale(1.2) rotate(5deg);
  opacity: 0.3;
}

/* =========================================
   TABELAS
   ========================================= */
.table {
  width: 100%;
  margin-bottom: var(--spacing-lg);
  color: var(--gray-700);
  border-collapse: separate;
  border-spacing: 0;
}

.table th,
.table td {
  padding: var(--spacing-md);
  vertical-align: middle;
  border-top: 1px solid var(--gray-200);
}

.table thead th {
  background-color: var(--gray-100);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  color: var(--gray-600);
  border-top: 0;
  border-bottom: 1px solid var(--gray-300);
}

.table tbody tr {
  transition: all var(--transition-fast);
}

.table-hover tbody tr:hover {
  background-color: rgba(59, 125, 221, 0.05);
}

.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* =========================================
   FORMULÁRIOS
   ========================================= */
.form-label {
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
}

.form-control, 
.form-select {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--gray-700);
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(59, 125, 221, 0.1);
  outline: 0;
}

.form-text {
  margin-top: var(--spacing-xs);
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* =========================================
   BOTÕES
   ========================================= */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  border-radius: var(--border-radius);
  transition: all var(--transition);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1d4e8f 100%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  color: #fff;
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.btn-success {
  color: #fff;
  background-color: var(--success);
  border-color: var(--success);
}

.btn-danger {
  color: #fff;
  background-color: var(--danger);
  border-color: var(--danger);
}

.btn-warning {
  color: #212529;
  background-color: var(--warning);
  border-color: var(--warning);
}

.btn-info {
  color: #fff;
  background-color: var(--info);
  border-color: var(--info);
}

.btn-light {
  color: #212529;
  background-color: var(--light);
  border-color: var(--light);
}

.btn-dark {
  color: #fff;
  background-color: var(--dark);
  border-color: var(--dark);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  color: #fff;
  background-color: var(--primary);
}

.btn-outline-secondary {
  color: var(--secondary);
  border-color: var(--secondary);
}

.btn-outline-secondary:hover {
  color: #fff;
  background-color: var(--secondary);
}

.btn-outline-success {
  color: var(--success);
  border-color: var(--success);
}

.btn-outline-success:hover {
  color: #fff;
  background-color: var(--success);
}

.btn-outline-danger {
  color: var(--danger);
  border-color: var(--danger);
}

.btn-outline-danger:hover {
  color: #fff;
  background-color: var(--danger);
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
}

/* =========================================
   ALERTAS
   ========================================= */
.alert {
  position: relative;
  padding: 1rem 1.5rem;
  margin-bottom: var(--spacing-lg);
  border: none;
  border-radius: var(--border-radius);
}

.alert-primary {
  color: #004085;
  background-color: #cce5ff;
}

.alert-secondary {
  color: #383d41;
  background-color: #e2e3e5;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
}

.alert-warning {
  color: #856404;
  background-color: #fff3cd;
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
}

/* =========================================
   BADGES
   ========================================= */
.badge {
  display: inline-block;
  padding: 0.4em 0.65em;
  font-size: 0.75em;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: var(--border-radius-sm);
}

.bg-primary {
  background-color: var(--primary) !important;
  color: white;
}

.bg-secondary {
  background-color: var(--secondary) !important;
  color: white;
}

.bg-success {
  background-color: var(--success) !important;
  color: white;
}

.bg-danger {
  background-color: var(--danger) !important;
  color: white;
}

.bg-warning {
  background-color: var(--warning) !important;
  color: #212529;
}

.bg-info {
  background-color: var(--info) !important;
  color: white;
}

.bg-light {
  background-color: var(--light) !important;
  color: #212529;
}

.bg-dark {
  background-color: var(--dark) !important;
  color: white;
}

/* =========================================
   UTILITÁRIOS
   ========================================= */
/* Margens */
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.ms-auto { margin-left: auto !important; }

.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.me-auto { margin-right: auto !important; }

/* Padding */
.p-3 { padding: 1rem !important; }

/* Exibição */
.d-flex { display: flex !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.d-grid { display: grid !important; }

/* Flexbox */
.flex-column { flex-direction: column !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }

/* Texto */
.text-center { text-align: center !important; }
.text-end { text-align: right !important; }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }
.text-light { color: var(--light) !important; }
.text-dark { color: var(--dark) !important; }
.text-muted { color: var(--gray-600) !important; }

.fw-bold { font-weight: 700 !important; }
.fw-normal { font-weight: 400 !important; }

/* =========================================
   COMPONENTES ESPECIAIS
   ========================================= */
/* Calendário FullCalendar personalizado */
.fc-event {
  cursor: pointer;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
  border: none !important;
  padding: 2px;
}

.fc-daygrid-day {
  transition: all var(--transition-fast);
}

.fc-daygrid-day:hover {
  background-color: rgba(59, 125, 221, 0.05);
}

.fc-button {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.fc-button:hover {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

/* Login */
.login-container {
  max-width: 400px;
  margin: 100px auto;
  padding: 30px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  background-color: white;
  animation: fadeIn var(--transition-slow);
}

.login-title {
  color: var(--primary);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 600;
}

.logo {
  text-align: center;
  margin-bottom: 20px;
}

/* Avatar de usuário */
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 0.75rem;
}

.user-card {
  display: flex;
  align-items: center;
}

.user-card .user-info {
  flex: 1;
}

.user-role {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 0.25rem;
}

/* =========================================
   ANIMAÇÕES
   ========================================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* =========================================
   RESPONSIVIDADE
   ========================================= */
/* Tamanhos de colunas */
.col-md-2 { width: 16.6666%; }
.col-md-3 { width: 25%; }
.col-md-4 { width: 33.3333%; }
.col-md-6 { width: 50%; }
.col-md-8 { width: 66.6666%; }
.col-md-10 { width: 83.3333%; }
.col-md-12 { width: 100%; }
.col-12 { width: 100%; }

/* Regras responsivas */
@media (max-width: 992px) {
  .sidebar {
    width: 250px;
    position: fixed;
    left: -250px;
    transition: left var(--transition);
  }
  
  .sidebar.show {
    left: 0;
  }
  
  .content {
    width: 100%;
    padding: var(--spacing-md);
  }
  
  .col-md-2, .col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-10 {
    width: 100%;
  }
}

/* Menu responsivo - regras essenciais */
@media (max-width: 992px) {
  body {
    position: relative;
    overflow-x: hidden;
  }
  
  .sidebar {
    position: fixed;
    left: -280px; /* Esconde a sidebar fora da tela */
    width: 280px;
    height: 100%;
    z-index: 1050;
    transition: all 0.3s ease;
    overflow-y: auto;
  }
  
  .sidebar.active {
    left: 0; /* Quando ativo, mostra a sidebar */
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
  }
  
  .content-wrapper {
    width: 100% !important;
    padding-left: 0 !important;
    transition: all 0.3s;
  }
  
  .mobile-nav-toggle {
    display: block !important;
  }
  
  .overlay {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1040;
    opacity: 0;
    transition: all 0.5s ease-in-out;
    top: 0;
    left: 0;
  }
  
  .overlay.active {
    display: block;
    opacity: 1;
  }
  
  /* Ajuste das colunas */
  .col-md-2, .col-md-10 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
}

/* Botão Hambúrguer */
.mobile-nav-toggle {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1060;
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 8px;
  color: white;
  border: none;
  display: none; /* Inicialmente oculto, mostrado apenas em dispositivos móveis */
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s;
}

.mobile-nav-toggle:hover, .mobile-nav-toggle:focus {
  background: var(--primary-dark);
  outline: none;
}

.mobile-nav-toggle i {
  font-size: 1.5rem;
}

/* Ajuste para o conteúdo principal */
.mobile-nav-active .content {
  margin-left: 0;
}

/* Logo e cabeçalho do menu para dispositivos móveis */
.mobile-header {
  display: none;
  padding: 15px;
  background-color: var(--primary);
  color: white;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1040;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  justify-content: center;
  align-items: center;
  text-align: center;
}

@media (max-width: 992px) {
  .mobile-header {
    display: flex;
  }
  
  .content {
    margin-top: 70px; /* Espaço para o cabeçalho móvel */
  }
}

@media (max-width: 768px) {
  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .card-header .badge {
    margin-top: var(--spacing-sm);
  }
}

/* Correção para o menu móvel - IMPORTANTE, adicione isso ao final do arquivo CSS */
@media (max-width: 992px) {
  /* Forçar menu a ficar escondido inicialmente em dispositivos móveis */
  .sidebar {
    width: 280px !important;
    position: fixed !important;
    left: -280px !important; /* Fora da tela */
    height: 100% !important;
    top: 0 !important;
    transition: left 0.3s ease !important;
    z-index: 1000 !important;
    overflow-y: auto !important;
    background: linear-gradient(135deg, #1a274e 0%, #0a122a 100%);
  }
  
  /* Classe que mostra o menu quando o botão é clicado */
  .sidebar.active {
    left: 0 !important;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2) !important;
  }
  
  /* Garantir que o conteúdo ocupe toda a largura */
  .col-md-10.content-wrapper {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
  
  
  /* Forçar o container a mostrar o conteúdo corretamente */
  .container-fluid .row {
    display: block !important;
  }
  
  /* Ajuste para o espaço do topo onde fica o header móvel */
  body {
    padding-top: 60px !important;
  }
  
  /* Mostrar o botão hamburger e o header móvel */
  .mobile-nav-toggle {
    display: flex !important;
  }
  
  .mobile-header {
    display: flex !important;
  }
}


/* Correção para tornar os links do menu clicáveis em dispositivos móveis */
@media (max-width: 992px) {
    /* Ajuste de z-index para garantir que o menu esteja acima de outros elementos */
    .sidebar {
        z-index: 1050 !important; /* Valor maior que o overlay */
    }
    
    /* Garantir que os links dentro do menu sejam clicáveis */
    .sidebar .nav-link, 
    .sidebar a {
        position: relative;
        z-index: 1060 !important; /* Maior que a sidebar */
        pointer-events: auto !important;
    }
    
    /* Garantir que o overlay não bloqueia cliques no menu quando ele está aberto */
    .overlay.active {
        z-index: 1040; /* Menor que a sidebar */
        pointer-events: auto;
    }
    
    /* Tornar links do menu mais fáceis de clicar em dispositivos móveis */
    .sidebar .nav-link, 
    .sidebar a {
        padding: 12px 20px !important;
        margin-bottom: 5px !important;
    }
    
    /* Correção para garantir que eventos de toque funcionem */
    .sidebar, .sidebar .nav-link, .sidebar a {
        touch-action: auto !important;
    }
}

@media (max-width: 576px) {
  .content {
    padding: var(--spacing-sm);
  }
  
  .table th, .table td {
    padding: var(--spacing-sm);
  }
  
  .btn {
    padding: 0.4rem 0.8rem;
  }
  
  /* Melhorias para PWA em mobile */
  body {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Esconder barra de endereço em modo standalone */
  @media (display-mode: standalone) {
    body {
      padding-top: env(safe-area-inset-top);
      padding-bottom: env(safe-area-inset-bottom);
      padding-left: env(safe-area-inset-left);
      padding-right: env(safe-area-inset-right);
    }
  }
  
  /* Melhorar toque em botões */
  .btn, .nav-link, .card {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Melhorar espaçamento em mobile */
  .card-body {
    padding: var(--spacing-md);
  }
  
  .card-header {
    padding: var(--spacing-md);
  }
  
  /* Melhorar navegação móvel */
  .sidebar .nav-link {
    padding: var(--spacing-md);
    margin: var(--spacing-xs) var(--spacing-md);
    min-height: 50px;
    display: flex;
    align-items: center;
  }
  
  /* Melhorar formulários em mobile */
  .form-control, .form-select {
    font-size: 16px; /* Evita zoom no iOS */
    padding: var(--spacing-md);
    min-height: 44px;
  }
  
  /* Melhorar tabelas em mobile */
  .table-responsive {
    border-radius: var(--border-radius);
    overflow: hidden;
  }
  
  .table th, .table td {
    padding: var(--spacing-sm);
    font-size: 0.9rem;
  }
  
  /* Melhorar modais em mobile */
  .modal-content {
    border-radius: var(--border-radius-lg);
    margin: var(--spacing-md);
  }
  
  .modal-header {
    padding: var(--spacing-md);
  }
  
  .modal-body {
    padding: var(--spacing-md);
  }
  
  .modal-footer {
    padding: var(--spacing-md);
  }
}