  /* Estilos gerais */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f9;
  }

  header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
  }

  header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
  }

  header p {
    margin-top: 0.25rem;
    font-size: 1rem;
    opacity: 0.8;
  }

  /* Informações do usuário */
  .user-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    font-size: 0.9rem;
    color: white;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  

  .btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
  }

  /* Login container */
  .login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 130px);
    padding: 2rem;
  }

  .login-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    padding: 2rem;
  }

  .login-card h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
  }

  .form-message {
    margin: 10px 0;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    display: block;
  }

  .form-message.error {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
  }

  .form-message.success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
  }

  .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    position: relative;
  }

  /* Layout com menu lateral */
  .content-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
  }

  .sidebar {
    width: 250px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    flex-shrink: 0;
  }

  .sidebar-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
  }

  .sidebar-header h3 {
    font-size: 1.2rem;
    color: #2c3e50;
  }

  .sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .sidebar-btn {
    background: none;
    border: none;
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #2c3e50;
    transition: background-color 0.2s;
  }


  .sidebar-btn.active {
    background-color: #3498db;
    color: white;
  }

  .sidebar-btn i {
    width: 20px;
    text-align: center;
  }

  .main-content {
    flex: 1;
  }

  /* Dashboard com indicadores */
  .dashboard {
    margin-bottom: 1.5rem;
  }

  .card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 1rem;
  }

  .card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 200px;
  }

  .card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
  }

  .card-content {
    flex: 1;
  }

  .card-content h3 {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 5px;
  }

  .card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
  }

  /* Controles do mapa */
  .controls {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s, transform 0.1s;
  }


  .btn:active {
    transform: translateY(1px);
  }

  .btn-primary {
    background-color: #3498db;
    color: white;
  }


  .btn-primary.active {
    background-color: #2c3e50;
  }

  .btn-success {
    background-color: #2ecc71;
    color: white;
  }


  .btn-secondary {
    background-color: #95a5a6;
    color: white;
  }


  /* Mapa */
  #map {
    height: 70vh;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
  }

  /* Legenda em linha */
  .legend-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    flex-wrap: wrap;
  }

  .legend-inline h3 {
    font-size: 1rem;
    margin-right: 15px;
    font-weight: 600;
  }

  .legend-items {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
  }

  .legend-item {
    display: flex;
    align-items: center;
  }

  .legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 8px;
  }

  /* Popups */
  .popup-content {
    padding: 5px;
  }

  .popup-content h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #2c3e50;
  }

  .popup-content p {
    margin-bottom: 5px;
    font-size: 0.9rem;
  }

  /* Painel de adicionar interdição */
  #add-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
    transition: right 0.3s ease;
    padding: 1rem;
  }

  #add-panel.active {
    right: 0;
  }

  .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
  }

  .panel-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
  }

  .btn-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #7f8c8d;
  }


  /* Formulário */
  .form-group {
    margin-bottom: 1rem;
  }

  .form-row {
    display: flex;
    gap: 10px;
  }

  .form-row .form-group {
    flex: 1;
  }

  .form-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
  }

  .form-section h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #2c3e50;
  }

  .form-actions-small {
    align-self: flex-end;
    margin-bottom: 1rem;
  }

  .form-actions-link {
    font-size: 0.85rem;
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
  }

  .form-actions-link a {
    color: #3498db;
    text-decoration: none;
  }


  label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #2c3e50;
  }

  input, select, textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
  }

  input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
  }

  /* Campo de apenas leitura */
  input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
  }

  .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
  }

  /* Controles de desenho de trecho */
  .trecho-controls {
    border: 1px solid #e0e0e0;
    padding: 10px;
    border-radius: 4px;
    background-color: #f9f9f9;
  }

  .btn-group {
    display: flex;
    gap: 8px;
    margin-top: 8px;
  }

  .dica {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-top: 6px;
    font-style: italic;
  }

  /* Footer */
  footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
  }

  /* Responsividade */
  @media (max-width: 768px) {
    .content-wrapper {
      flex-direction: column;
    }
    
    .sidebar {
      width: 100%;
      margin-bottom: 1rem;
    }
    
    .controls {
      flex-direction: column;
    }
    
    #map {
      height: 60vh;
    }
    
    #add-panel {
      width: 100%;
      right: -100%;
    }
    
    .form-row {
      flex-direction: column;
      gap: 0;
    }
    
    .btn-group {
      flex-direction: column;
    }
    
    .user-info {
      position: static;
      margin-top: 0.5rem;
      transform: none;
      justify-content: center;
    }
    
    .legend-inline {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .legend-inline h3 {
      margin-bottom: 10px;
      margin-right: 0;
    }
  }

  /* Estilos para a página de cadastro de usuários */
  .page-header {
    margin-bottom: 1.5rem;
  }

  .page-header h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .page-header p {
    color: #7f8c8d;
    font-size: 0.95rem;
  }

  .content-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  /* Status toggle switch */
  .status-toggle {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
  }

  .status-toggle input[type="checkbox"] {
    height: 0;
    width: 0;
    visibility: hidden;
    position: absolute;
  }

  .toggle-label {
    cursor: pointer;
    width: 80px;
    height: 34px;
    background: #e74c3c;
    display: block;
    border-radius: 17px;
    position: relative;
    transition: 0.3s;
  }

  .toggle-label:after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 28px;
    height: 28px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
  }

  .toggle-label span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 500;
    transition: 0.3s;
  }

  .toggle-label .active {
    left: 10px;
    color: transparent;
  }

  .toggle-label .inactive {
    right: 10px;
    color: #fff;
  }

  .status-toggle input:checked + .toggle-label {
    background: #2ecc71;
  }

  .status-toggle input:checked + .toggle-label:after {
    left: calc(100% - 3px);
    transform: translateX(-100%);
  }

  .status-toggle input:checked + .toggle-label .active {
    color: #fff;
  }

  .status-toggle input:checked + .toggle-label .inactive {
    color: transparent;
  }

  /* Lista de usuários */
  .user-list {
    margin-top: 1rem;
  }

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

  .user-list-header h3 {
    font-size: 1.2rem;
    color: #2c3e50;
  }

  .user-list-header .btn {
    margin-left: auto;
  }

  .user-search {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
  }

  .user-search input {
    flex: 1;
  }

  .user-table {
    width: 100%;
    border-collapse: collapse;
  }

  .user-table th,
  .user-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
  }

  .user-table th {
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
  }


  .user-actions {
    display: flex;
    gap: 8px;
  }

  .user-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
  }

  .user-actions .btn-edit {
    color: #3498db;
  }

  .user-actions .btn-delete {
    color: #e74c3c;
  }
  
  .user-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
  }

  .user-status.active {
    background-color: rgba(46, 204, 113, 0.15);
    color: #27ae60;
  }

  .user-status.inactive {
    background-color: rgba(231, 76, 60, 0.15);
    color: #c0392b;
  }

  /* Paginação */
  .pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 1rem;
  }

  .pagination button {
    background: white;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
  }

  .pagination button.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
  }


  /* Moved styles from index.html */
  :root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #2ecc71;
    --light: #f4f7f9;
    --dark: #1a252f;
    --text: #333;
    --text-light: #7f8c8d;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
  }

  /* Estilos de navegação */
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }

  .logo {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
  }

  .logo i {
    margin-right: 0.5rem;
    color: var(--secondary);
  }

  .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav-menu li {
    position: relative;
  }

  .nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    transition: var(--transition);
  }


  .dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: 4px;
    z-index: 10;
  }

  .dropdown-item {
    color: var(--text);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
  }

  .dropdown-item i {
    margin-right: 0.5rem;
    color: var(--secondary);
  }


  .mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
  }

  @media (max-width: 768px) {
    .mobile-toggle {
      display: block;
    }
    
    .nav-menu {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      flex-direction: column;
      background-color: var(--primary);
      padding: 1rem;
      display: none;
      z-index: 100;
    }
    
    .nav-menu.active {
      display: flex;
    }
    
    .dropdown-content {
      position: static;
      box-shadow: none;
      background-color: rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-item {
      color: white;
    }
    
  }

  /* Estilos para o sistema de busca de empresas */
  .empresa-search-container {
    position: relative;
    width: 100%;
  }

  .input-with-button {
    display: flex;
    gap: 8px;
  }

  .input-with-button input {
    flex-grow: 1;
  }

  .dropdown-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
  }

  .result-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
  }


  .result-item:last-child {
    border-bottom: none;
  }

  .result-item.error {
    color: #e53935;
  }

  .selected-item {
    margin-top: 8px;
    display: none;
  }

  .badge-item {
    display: inline-flex;
    align-items: center;
    background-color: #e1f5fe;
    color: #0277bd;
    border-radius: 16px;
    padding: 4px 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 0.9em;
  }

  .btn-remove {
    border: none;
    background: none;
    color: #0277bd;
    margin-left: 8px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    padding: 0 4px;
  }


  /* Ajuste para botão de ação */
  .btn-action {
    background-color: #4caf50;
    color: white;
    white-space: nowrap;
  }


  /* Estilos para mensagens de feedback */
  .form-message {
    margin: 15px 0;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    display: block;
  }

  .form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
  }

  .form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
  }

  .form-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
  }

  .dropdown {
    display: none;
  }

  .dropdown.show {
    display: block;
  }

  /* Estilos adicionais para o menu lateral com dropdown */
.sidebar-btn {
  background: none;
  border: none;
  text-align: left;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: #2c3e50;
  transition: background-color 0.3s, color 0.3s;
  width: 100%;
  position: relative;
}

.sidebar-btn:hover {
  background-color: rgba(52, 152, 219, 0.1);
}

.sidebar-btn.active {
  background-color: #3498db;
  color: white;
}

.sidebar-btn .dropdown-icon {
  margin-left: auto;
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.sidebar-btn .dropdown-icon.rotated {
  transform: rotate(90deg);
}

.sidebar-dropdown-container {
  width: 100%;
  position: relative;
}

.sidebar-dropdown-content {
  width: 100%;
  background-color: rgba(240, 240, 240, 0.5);
  border-radius: 4px;
  margin-top: 2px;
  overflow: hidden;
  transition: all 0.3s;
}

.sidebar-dropdown-item {
  background: none;
  border: none;
  text-align: left;
  padding: 0.6rem 1rem 0.6rem 2rem;
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  color: #2c3e50;
  transition: background-color 0.2s;
}

.sidebar-dropdown-item:hover {
  background-color: rgba(52, 152, 219, 0.1);
}

/* Customização da tabela de usuários */
.user-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.user-table th {
  background-color: #3498db;
  color: white;
  font-weight: 600;
  padding: 12px 15px;
  text-align: left;
  border-bottom: none;
}

.user-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #ecf0f1;
}

.user-table tr:last-child td {
  border-bottom: none;
}

.user-table tr:hover {
  background-color: #f8f9fa;
}

/* Estilos para os botões de ação na tabela */
.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  transition: all 0.2s;
}

.action-btn.edit {
  color: #3498db;
}

.action-btn.edit:hover {
  background-color: rgba(52, 152, 219, 0.1);
}

.action-btn.delete {
  color: #e74c3c;
}

.action-btn.delete:hover {
  background-color: rgba(231, 76, 60, 0.1);
}

/* Modal de edição e exclusão */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s linear 0.25s, opacity 0.25s;
}

.modal-overlay.active {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.modal {
  background-color: white;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  padding: 0;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: transform 0.3s;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #2c3e50;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #7f8c8d;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Indicador de status */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.ativo {
  background-color: rgba(46, 204, 113, 0.15);
  color: #27ae60;
}

.status-badge.inativo {
  background-color: rgba(231, 76, 60, 0.15);
  color: #c0392b;
}

/* Indicador de nível de acesso */
.role-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.role-badge.admin {
  background-color: rgba(155, 89, 182, 0.15);
  color: #8e44ad;
}

.role-badge.usuario {
  background-color: rgba(52, 152, 219, 0.15);
  color: #2980b9;
}

.search-input {
  width: 500px; /* ou, por exemplo, 300px */
  max-width: 500px; /* ajuste conforme o layout */
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
}
.user-info {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-info {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 10; /* garante que fique acima de outros elementos */
}
.modal {
  display: flex;
  flex-direction: column;
  max-height: 90vh; /* Máximo de 90% da altura da tela */
  overflow: hidden;
}

.modal-body {
  overflow-y: auto;
  flex: 1 1 auto;
  padding: 20px;
  max-height: 65vh; /* Altura máxima do conteúdo rolável */
}

.modal-header,
.modal-footer {
  flex-shrink: 0; /* Impede que o cabeçalho e rodapé encolham */
  background-color: #fff;
  padding: 15px 20px;
  border-bottom: 1px solid #ddd;
}

.modal-footer {
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.autocomplete-list div {
  padding: 10px;
  cursor: pointer;
}

.autocomplete-list div:hover {
  background-color: #f0f0f0;
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column; 
    align-items: flex-start;
    gap: 10px;
  }

  .user-info {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    padding: 0.5rem 1rem;
    box-sizing: border-box;
    font-size: 0.85rem;
  }

  .user-info button {
    margin-top: 5px;
  }

  .search-input,
  .filter-select,
  .btn {
    width: 100%;
  }

  .user-search {
    flex-direction: column;
    gap: 10px;
  }

  .user-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .logo {
    width: 100%;
    justify-content: center;
  }

  .nav-menu {
    width: 100%;
  }

  .user-info {
    width: 100%;
    justify-content: space-between;
  }
  .content-wrapper {
    flex-direction: column;
  }

  .main-content {
    width: 100%;
    padding: 10px;
  }

  .user-search {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .user-search .search-input,
  .user-search .filter-select,
  .user-search .btn {
    width: 100% !important;
  }

  .user-list-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .user-table {
    font-size: 14px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .user-table thead {
    display: none;
  }

  .user-table tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: white;
  }

  .user-table td {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
  }

  .user-table td:last-child {
    border-bottom: none;
  }

  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
  .user-search {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }
  
  .user-search .search-input,
  .user-search .filter-select,
  .user-search .btn {
    width: 100%;
    box-sizing: border-box;
  }
  
}

.user-text {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: transparent; /* 🔥 fundo transparente */
  color: #2c3e50;
}
.admin-notice {
            background-color: #d1ecf1;
            color: #0c5460;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 20px;
            border-left: 4px solid #0c5460;
        }