@charset "UTF-8";
/**
 * PAINEL ADMINISTRATIVO - NOVA LARANJEIRAS
 * Design DattaTech - VERSÃO COMPLETA E COMPATÍVEL
 * Desenvolvido e administrado pela DattaTech
 * 
 * CORREÇÃO ESTRUTURAL: Este CSS cobre TODAS as classes e elementos
 * existentes no sistema administrativo para garantir compatibilidade total
 */

/* ===================================================================
   IMPORTS E FONTES
   =================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@400;500;700;900&display=swap');

/* ===================================================================
   VARIÁVEIS CSS - PALETA DATTATECH
   =================================================================== */
:root {
  /* Cores Primárias DattaTech */
  --dt-primary: #38b6ff;
  --dt-primary-dark: #0b436a;
  --dt-primary-light: rgba(56, 182, 255, 0.1);
  --dt-primary-hover: rgba(56, 182, 255, 0.8);
  
  /* Cores Secundárias */
  --dt-secondary: #2c3e50;
  --dt-accent: #3498db;
  --dt-success: #27ae60;
  --dt-warning: #f39c12;
  --dt-danger: #e74c3c;
  --dt-info: #17a2b8;
  
  /* Cores de Fundo */
  --dt-bg-primary: #f8fafc;
  --dt-bg-secondary: #ffffff;
  --dt-bg-dark: #1a202c;
  --dt-bg-sidebar: #2d3748;
  --dt-bg-card: rgba(255, 255, 255, 0.95);
  
  /* Cores de Texto */
  --dt-text-primary: #2d3748;
  --dt-text-secondary: #4a5568;
  --dt-text-muted: #718096;
  --dt-text-light: #ffffff;
  
  /* Borders e Sombras */
  --dt-border: #e2e8f0;
  --dt-border-hover: var(--dt-primary);
  --dt-shadow: rgba(0, 0, 0, 0.1);
  --dt-shadow-lg: rgba(0, 0, 0, 0.15);
  --dt-shadow-xl: rgba(0, 0, 0, 0.25);
  
  /* Fontes */
  --dt-font-primary: 'Inter', sans-serif;
  --dt-font-heading: 'Orbitron', sans-serif;
  
  /* Transições */
  --dt-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --dt-transition-fast: all 0.15s ease;
}

/* ===================================================================
   RESET E BASE GLOBAL
   =================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--dt-font-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--dt-text-primary);
  background: linear-gradient(135deg, var(--dt-bg-primary) 0%, #e3f2fd 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===================================================================
   LAYOUT PRINCIPAL - CORRIGIDO
   =================================================================== */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 280px;
  background: var(--dt-bg-sidebar);
  color: var(--dt-text-light);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  transition: var(--dt-transition);
  box-shadow: 2px 0 20px var(--dt-shadow);
  /* CORREÇÃO: Usar flexbox ao invés de absolute positioning */
  display: flex;
  flex-direction: column;
}

.admin-content {
  margin-left: 280px;
  width: calc(100% - 280px);
  min-height: 100vh;
  background: var(--dt-bg-primary);
  flex: 1;
}

/* ===================================================================
   SIDEBAR CORRIGIDA - SEM ABSOLUTE POSITIONING
   =================================================================== */
.admin-sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  flex-shrink: 0;
}

.admin-nav {
  padding: 1rem 0;
  flex: 1;
  overflow-y: auto;
}

/* CORREÇÃO: Sidebar footer agora no final natural, sem absolute */
.sidebar-footer {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
  margin-top: auto;
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer-brand {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.25rem;
}

.sidebar-footer-tech {
  font-family: var(--dt-font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dt-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ===================================================================
   COMPATIBILIDADE COM CSS ANTIGO - MANTÉM FUNCIONALIDADES
   =================================================================== */

/* Header antigo - ainda funciona mas com estilo novo */
.topo {
  background: linear-gradient(135deg, var(--dt-primary) 0%, var(--dt-primary-dark) 100%);
  color: var(--dt-text-light);
  padding: 1rem;
  margin-bottom: 0;
}

.topo h1, .topo h5 {
  color: var(--dt-text-light);
  margin: 0;
  font-family: var(--dt-font-heading);
}

/* Container principal - compatibilidade total */
.bg_container {
  background: var(--dt-bg-secondary);
  margin: 1.5rem;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 25px var(--dt-shadow);
  border: 1px solid var(--dt-border);
  width: calc(100% - 3rem);
}

/* ===================================================================
   CARDS E DIVS - COMPATIBILIDADE ESTENDIDA
   =================================================================== */
.div_square, .div_round {
  background: var(--dt-bg-card);
  border: 1px solid var(--dt-border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px var(--dt-shadow);
  transition: var(--dt-transition);
}

.div_square:hover, .div_round:hover {
  box-shadow: 0 4px 20px var(--dt-shadow-lg);
  transform: translateY(-2px);
}

/* Títulos H2 - estilo consistente */
.div_square h2, .div_round h2, h2 {
  font-family: var(--dt-font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--dt-primary-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--dt-primary-light);
}

/* ===================================================================
   LINKS ANTIGOS - ESTILIZAÇÃO COMPATÍVEL
   =================================================================== */
.a1, .a2 {
  color: var(--dt-text-primary);
  text-decoration: none;
  display: block;
  transition: var(--dt-transition);
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
}

.a1:hover, .a2:hover {
  color: var(--dt-primary);
  text-decoration: none;
  background: var(--dt-primary-light);
  transform: translateY(-3px);
}

.a1 h5, .a2 h5 {
  color: var(--dt-text-primary);
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0;
  transition: var(--dt-transition);
}

.a1:hover h5, .a2:hover h5 {
  color: var(--dt-primary-dark);
}

/* ===================================================================
   ÍCONES - COMPATIBILIDADE TOTAL
   =================================================================== */
.fa-gradient {
  background: linear-gradient(135deg, var(--dt-primary) 0%, var(--dt-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Ícones grandes do sistema antigo */
.fa-8x {
  font-size: 4rem !important;
  margin-bottom: 1rem;
  transition: var(--dt-transition);
}

.a1:hover .fa-8x, .a2:hover .fa-8x {
  transform: scale(1.1);
}

/* ===================================================================
   FORMULÁRIOS - COMPATIBILIDADE ESTENDIDA
   =================================================================== */
.form-control, input[type="text"], input[type="email"], input[type="password"], 
input[type="date"], input[type="number"], input[type="tel"], input[type="url"],
select, textarea {
  background: var(--dt-bg-secondary);
  border: 2px solid var(--dt-border);
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-family: var(--dt-font-primary);
  font-size: 0.9rem;
  transition: var(--dt-transition);
  color: var(--dt-text-primary);
  width: 100%;
}

.form-control:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--dt-primary);
  box-shadow: 0 0 0 3px rgba(56, 182, 255, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.form-control:hover, input:hover, select:hover, textarea:hover {
  border-color: var(--dt-primary-hover);
}

/* Labels */
label, .form-label {
  font-weight: 600;
  color: var(--dt-text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  display: block;
}

/* ===================================================================
   BOTÕES - COMPATIBILIDADE TOTAL
   =================================================================== */
.btn, button, input[type="submit"], input[type="button"] {
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-family: var(--dt-font-primary);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--dt-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  text-align: center;
}

.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--dt-shadow-lg);
  text-decoration: none;
}

/* Botões por tipo */
.btn-primary, input[type="submit"] {
  background: linear-gradient(135deg, var(--dt-primary) 0%, var(--dt-accent) 100%);
  color: var(--dt-text-light);
}

.btn-success {
  background: linear-gradient(135deg, var(--dt-success) 0%, #2ecc71 100%);
  color: var(--dt-text-light);
}

.btn-danger {
  background: linear-gradient(135deg, var(--dt-danger) 0%, #c0392b 100%);
  color: var(--dt-text-light);
}

.btn-warning {
  background: linear-gradient(135deg, var(--dt-warning) 0%, #e67e22 100%);
  color: var(--dt-text-light);
}

.btn-info {
  background: linear-gradient(135deg, var(--dt-info) 0%, #3498db 100%);
  color: var(--dt-text-light);
}

.btn-secondary {
  background: var(--dt-bg-secondary);
  color: var(--dt-text-primary);
  border: 2px solid var(--dt-border);
}

.btn-secondary:hover {
  background: var(--dt-primary-light);
  border-color: var(--dt-primary);
  color: var(--dt-primary-dark);
}

/* ===================================================================
   TABELAS - ESTILO DATTATECH APLICADO
   =================================================================== */
.table, table {
  width: 100%;
  margin-bottom: 1.5rem;
  background: var(--dt-bg-secondary);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--dt-shadow);
}

.table th, table th {
  background: linear-gradient(135deg, var(--dt-primary-dark) 0%, var(--dt-secondary) 100%);
  color: var(--dt-text-light);
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  border: none;
  font-family: var(--dt-font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table td, table td {
  padding: 1rem;
  border-bottom: 1px solid var(--dt-border);
  color: var(--dt-text-primary);
  vertical-align: middle;
}

.table tbody tr, table tbody tr {
  transition: var(--dt-transition-fast);
}

.table tbody tr:hover, table tbody tr:hover {
  background: var(--dt-primary-light);
}

/* ===================================================================
   ALERTAS E MENSAGENS - COMPATIBILIDADE
   =================================================================== */
.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  border: none;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.alert h3, .alert h4, .alert h5 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.alert-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border-left: 4px solid var(--dt-success);
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da 0%, #f1c2c7 100%);
  color: #721c24;
  border-left: 4px solid var(--dt-danger);
}

.alert-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
  border-left: 4px solid var(--dt-warning);
}

.alert-info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  color: #0c5460;
  border-left: 4px solid var(--dt-info);
}

/* ===================================================================
   NAVEGAÇÃO SIDEBAR - CORRIGIDA
   =================================================================== */
.admin-sidebar {
  width: 280px;
  background: var(--dt-bg-sidebar);
  color: var(--dt-text-light);
  position: fixed;
  height: 100vh;
  z-index: 1000;
  transition: var(--dt-transition);
  box-shadow: 2px 0 20px var(--dt-shadow);
  /* CORREÇÃO PRINCIPAL: Flexbox layout */
  display: flex;
  flex-direction: column;
}

.admin-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.admin-logo-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--dt-primary) 0%, #ffffff 100%);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--dt-primary-dark);
  font-weight: 900;
  font-family: var(--dt-font-heading);
}

.admin-logo-text {
  font-family: var(--dt-font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dt-text-light);
  text-align: center;
  line-height: 1.3;
}

.admin-logo-subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.admin-nav-section {
  margin-bottom: 1.5rem;
}

.admin-nav-title {
  padding: 0.5rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: var(--dt-transition);
  border-left: 3px solid transparent;
  gap: 1rem;
}

.admin-nav-item:hover {
  background: rgba(56, 182, 255, 0.1);
  border-left-color: var(--dt-primary);
  color: var(--dt-text-light);
  text-decoration: none;
  transform: translateX(5px);
}

.admin-nav-item.active {
  background: rgba(56, 182, 255, 0.2);
  border-left-color: var(--dt-primary);
  color: var(--dt-text-light);
}

.admin-nav-icon {
  width: 18px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ===================================================================
   HEADER ADMINISTRATIVO
   =================================================================== */
.admin-header {
  background: linear-gradient(135deg, var(--dt-primary) 0%, var(--dt-primary-dark) 100%);
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 20px var(--dt-shadow);
  position: sticky;
  top: 0;
  z-index: 900;
}

.admin-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-header h1 {
  font-family: var(--dt-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dt-text-light);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--dt-text-light);
}

.admin-user-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===================================================================
   COMPONENTES DE DASHBOARD
   =================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stats-card {
  background: var(--dt-bg-card);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 3px 15px var(--dt-shadow);
  border: 1px solid var(--dt-border);
  transition: var(--dt-transition);
  position: relative;
  overflow: hidden;
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--dt-primary) 0%, var(--dt-accent) 100%);
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--dt-shadow-lg);
}

.stats-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--dt-primary) 0%, var(--dt-accent) 100%);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dt-text-light);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
}

.stats-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dt-primary-dark);
  margin-bottom: 0.5rem;
  font-family: var(--dt-font-heading);
  text-align: center;
}

.stats-label {
  color: var(--dt-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

/* ===================================================================
   TÍTULOS DE PÁGINAS
   =================================================================== */
.page-title {
  font-family: var(--dt-font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--dt-primary-dark);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ===================================================================
   RESPONSIVIDADE CORRIGIDA
   =================================================================== */
@media (max-width: 768px) {
  .admin-sidebar {
    width: 100%;
    transform: translateX(-100%);
    z-index: 1500;
  }
  
  .admin-sidebar.open {
    transform: translateX(0);
  }
  
  .admin-content {
    margin-left: 0;
    width: 100%;
  }
  
  .admin-header {
    padding: 1rem;
  }
  
  .bg_container {
    margin: 1rem;
    padding: 1.5rem;
    width: calc(100% - 2rem);
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .admin-header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .page-title {
    font-size: 1.5rem;
    text-align: center;
    justify-content: center;
  }
}

/* ===================================================================
   UTILIDADES E HELPERS
   =================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* ===================================================================
   BRANDING DATTATECH - POSIÇÃO CORRIGIDA
   =================================================================== */
.dattatech-brand {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--dt-primary-dark) 0%, var(--dt-primary) 100%);
  color: var(--dt-text-light);
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1001;
  box-shadow: 0 4px 15px var(--dt-shadow-lg);
  cursor: pointer;
  transition: var(--dt-transition);
  text-align: center;
  min-width: 120px;
}

.dattatech-brand:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px var(--dt-shadow-xl);
}

/* ===================================================================
   SCROLLBAR PERSONALIZADA
   =================================================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dt-bg-primary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--dt-primary) 0%, var(--dt-accent) 100%);
  border-radius: 10px;
  transition: var(--dt-transition);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--dt-primary-hover) 0%, #2980b9 100%);
}

/* ===================================================================
   ANIMAÇÕES E TRANSIÇÕES
   =================================================================== */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in {
  animation: slideInUp 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.4s ease-in;
}

/* ===================================================================
   CORREÇÕES ESPECÍFICAS PARA BOOTSTRAP ANTIGO
   =================================================================== */
.container-fluid {
  padding: 0;
  margin: 0;
}

.row {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, 
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
  padding: 0.75rem;
}

/* Grid Bootstrap - compatibilidade */
.col-1 { flex: 0 0 8.333333%; }
.col-2 { flex: 0 0 16.666667%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.333333%; }
.col-5 { flex: 0 0 41.666667%; }
.col-6 { flex: 0 0 50%; }
.col-7 { flex: 0 0 58.333333%; }
.col-8 { flex: 0 0 66.666667%; }
.col-9 { flex: 0 0 75%; }
.col-10 { flex: 0 0 83.333333%; }
.col-11 { flex: 0 0 91.666667%; }
.col-12 { flex: 0 0 100%; }

/* ===================================================================
   FALLBACKS E COMPATIBILIDADE TOTAL
   =================================================================== */

/* Garantir que elementos antigos não quebrem */
.fa, .fas, .far, .fab {
  display: inline-block;
  font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands";
  font-weight: 900;
}

/* Links gerais */
a {
  color: var(--dt-primary);
  text-decoration: none;
  transition: var(--dt-transition-fast);
}

a:hover {
  color: var(--dt-primary-dark);
  text-decoration: underline;
}

/* Títulos gerais */
h1, h2, h3, h4, h5, h6 {
  color: var(--dt-text-primary);
  font-weight: 600;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* Parágrafo */
p {
  margin-bottom: 1rem;
  color: var(--dt-text-primary);
}

/* ===================================================================
   OVERRIDE PARA PROBLEMAS ESPECÍFICOS
   =================================================================== */

/* Corrigir z-index issues */
.admin-sidebar {
  z-index: 1000 !important;
}

.admin-header {
  z-index: 999 !important;
}

.dattatech-brand {
  z-index: 1001 !important;
}

/* Garantir que sidebar não quebre em mobile */
@media (max-width: 768px) {
  .mobile-menu-btn {
    position: fixed !important;
    top: 20px !important;
    left: 20px !important;
    z-index: 1002 !important;
    background: var(--dt-primary) !important;
    color: white !important;
    border: none !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 10px !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    transition: var(--dt-transition) !important;
  }
  
  .mobile-menu-btn:hover {
    transform: scale(1.1) !important;
    background: var(--dt-primary-hover) !important;
  }
  
  .admin-content {
    padding-top: 80px !important;
  }
  
  .admin-sidebar.open {
    transform: translateX(0) !important;
  }
}

/* ===================================================================
   FIX URGENTE - MENU LATERAL ADMIN
   =================================================================== */

/* Garantir que seções não se sobreponham */
.admin-nav-section {
  margin-bottom: 25px !important;
  clear: both !important;
  display: block !important;
  width: 100% !important;
}

/* Títulos dos grupos bem definidos */
.admin-nav-title {
  display: block !important;
  padding: 12px 20px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin-bottom: 8px !important;
  font-size: 0.85rem !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}

/* Items do menu bem separados */
.admin-nav-item {
  display: block !important;
  padding: 12px 20px !important;
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  border-left: 3px solid transparent !important;
  margin-bottom: 2px !important;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  border-left-color: var(--dt-primary) !important;
  padding-left: 24px !important;
  text-decoration: none !important;
}

/* Rodapé DattaTech separado */
.sidebar-footer {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  padding: 20px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(0, 0, 0, 0.3) !important;
  text-align: center !important;
  z-index: 100 !important;
}

/* Navegação com espaço para rodapé */
.admin-nav {
  padding-bottom: 140px !important;
  overflow-y: auto !important;
  max-height: calc(100vh - 200px) !important;
  display: block !important;
}

/* Força exibição do link Mensagens */
a[href="mensagens.php"].admin-nav-item {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Limpar floats que podem causar problemas */
.admin-nav-section::after {
  content: "" !important;
  display: table !important;
  clear: both !important;
}