body {
    font-family: 'Roboto', sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
  }
  
  .container {
    padding: 20px;
  }
  
  .error {
    color: red;
    margin-bottom: 10px;
  }
  
  .cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .card {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 20px;
    min-width: 200px;
    text-align: center;
  }
  
  .card h2 {
    margin-top: 0;
  }

  .dashboard-header {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  }
  
  .dashboard-header h1 {
    margin: 0;
    margin-left: 20px;
    font-size: 20px;
    font-weight: 500;
    color: #202124;
  }
  
  .btn {
    /*display: inline-block;*/
    display: flex;
    justify-content: center;
    align-content: center;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background: #007BFF;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
  }
  
  .btn:hover {
    background: #0056b3;
  }
  
  iframe {
    width: 100%;
    height: 90vh;
    border: none;
  }
  .login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f5f5f5;
    padding: 20px;
    box-sizing: border-box;
  }
  
  .login-card {
    background: #fff;
    width: 100%;
    max-width: 800px;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
  }
  
  .login-card h1 {
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 500;
    color: #202124;
  }
  
  .input-group {
  width: 100%;
  margin-bottom: 20px;
}

.create-user-form .input-group {
  margin-bottom: 0; /* Remove margin-bottom dos inputs dentro do form para usar apenas o margin-bottom do .form-row */
}

  .input-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-size: 14px;
  }
  
  .input-group input {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s;
    color: #202124;
    background: #fff;
  }
  
  .input-group input:focus {
    border-color: #1a73e8;
  }
  
  .login-button {
    width: 100%;
    padding: 12px;
    background: #1a73e8;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
  }
  
  .login-button:hover {
    background: #1669c1;
  }
  
  .error {
    color: #d93025;
    margin-bottom: 20px;
    text-align: center;
  }

  .success {
    color: #34a853;
    margin-bottom: 15px;
  }
  
  .help-links {
    margin-top: 24px;
    text-align: center;
  }
  
  .help-links a {
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
  }
  
  .help-links a:hover {
    text-decoration: underline;
  }

  .cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
  }
  
  .card {
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  }
  
  .card h2 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #202124;
  }

  /* Media Queries para melhor responsividade em celulares */
@media (max-width: 600px) {
    .login-card {
      padding: 20px;
    }
    
    .card {
      flex: 1 1 100%;
      max-width: 100%;
    }
    
    .cards {
      gap: 10px;
    }
    
    /*.btn {
      width: 100%;
      text-align: center;
    }*/
  }
  /* Container do cabeçalho */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.user-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.user-info span {
  color: #202124;
  font-weight: 500;
}

.user-groups {
  font-size: 0.9em;
  color: #666;
  font-weight: 400 !important;
}

/* Menu de Administração */
.admin-menu-container {
  position: relative;
  display: inline-block;
}

.admin-menu-trigger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  color: #1a73e8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-menu-trigger:hover {
  background: rgba(26, 115, 232, 0.1);
  transform: scale(1.1);
}

.admin-icon {
  transition: transform 0.3s ease;
}

.admin-menu-trigger:hover .admin-icon {
  transform: rotate(10deg);
}

/* Dropdown Menu */
.admin-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  min-width: 200px;
  max-width: 250px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border-radius: 8px;
  border: 1px solid #e8eaed;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 5px;
  white-space: nowrap;
}

/* Posicionamento alternativo quando sai da tela */
.admin-dropdown.position-left {
  right: auto;
  left: 0;
}

/* Media query para telas pequenas - sempre posicionar à esquerda */
@media (max-width: 768px) {
  .admin-dropdown {
    right: auto;
    left: 0;
    min-width: 180px;
  }
  
  .user-section {
    gap: 10px;
  }
  
  .header {
    padding: 15px;
  }
}

.admin-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #5f6368;
  border-bottom: 1px solid #e8eaed;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: #202124;
  text-decoration: none;
  transition: background-color 0.2s ease;
  gap: 12px;
}

.dropdown-item:hover {
  background: #f1f3f4;
  color: #1a73e8;
}

.dropdown-item:last-child {
  border-radius: 0 0 8px 8px;
}

.dropdown-icon {
  color: #5f6368;
  transition: color 0.2s ease;
}

.dropdown-item:hover .dropdown-icon {
  color: #1a73e8;
}

.dropdown-item span {
  font-size: 14px;
  font-weight: 400;
}

/* Animação de entrada suave */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-dropdown.show {
  animation: fadeInDown 0.3s ease;
}

.no-dashboards {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.no-dashboards p {
  margin: 10px 0;
  line-height: 1.5;
}

/* Estilos para página de administração */
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.admin-section {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.admin-section h1 {
  color: #202124;
  margin-bottom: 30px;
  text-align: center;
}

.admin-section h2 {
  color: #202124;
  margin: 30px 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.admin-section h3 {
  color: #1a73e8;
  margin-bottom: 15px;
  font-size: 1.2em;
}

/* Mensagens de sucesso/erro */
.message {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-weight: 500;
}

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

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

/* Formulário de criação de usuário */
.create-user-section {
  margin-bottom: 40px;
}

.create-user-form {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.form-row {
  display: flex;
  gap: 30px; /* Aumentado para garantir pelo menos 20px entre inputs */
  margin-bottom: 25px;
  align-items: flex-start;
}

.form-row .input-group {
  flex: 1;
  min-width: 0; /* Permite que o flex item encolha */
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px; /* Aumentado para garantir pelo menos 20px de espaço do input senha */
  padding-top: 5px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px; /* Aumentado para garantir pelo menos 10px entre checkbox e label */
  cursor: pointer;
  font-size: 14px;
  color: #555;
  white-space: nowrap;
  min-width: fit-content;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
}

.btn-primary {
  background: #1a73e8;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
}

.btn-primary:hover {
  background: #1669c1;
}

/* Seção de administração removida - agora usa menu de contexto */

/* Tabela de usuários */
.users-table {
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e9ecef;
}

.table-header {
  display: flex;
  background: #e9ecef;
  font-weight: 500;
  color: #495057;
}

.table-row {
  display: flex;
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.2s;
}

.table-row:hover {
  background: #f1f3f4;
}

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

.table-cell {
  flex: 1;
  padding: 15px;
  display: flex;
  align-items: center;
}

.table-cell:last-child {
  flex: 0.5;
  justify-content: center;
}

.user-groups-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.group-badge {
  background: #1a73e8;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.no-groups {
  color: #6c757d;
  font-style: italic;
  font-size: 14px;
}

.btn-danger {
  background: #dc3545;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.btn-danger:hover {
  background: #c82333;
}

.protected-user {
  color: #6c757d;
  font-style: italic;
  font-size: 14px;
}

.delete-form {
  display: inline;
}

.no-users {
  text-align: center;
  padding: 40px;
  color: #6c757d;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-actions .btn {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 400;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  background: #1a73e8;
  color: white;
  border: 1px solid #1a73e8;
  transition: all 0.2s ease;
}

.header-actions .btn:hover {
  background: #1669c1;
  border-color: #1669c1;
}

.admin-badge {
  background: #28a745;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 500;
}

/* Botões de ação na tabela */
.action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.btn-edit {
  background: #17a2b8;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s;
}

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

.btn-secondary {
  background: #6c757d;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background: #5a6268;
  color: white;
}

/* Página de edição de usuário */
.edit-user-section {
  margin-bottom: 30px;
}

.edit-user-form {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  justify-content: flex-start;
}

.user-info-section {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
}

.user-info-section h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #495057;
}

.info-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-item strong {
  min-width: 120px;
  color: #495057;
  font-weight: 500;
}

.current-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
  .btn-logout {
    display: inline-block;
    margin-top: 0;
    padding: 8px 16px;
    background-color: #d93025; /* Vermelho para indicar logout */
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    border-radius: 4px;
    transition: background-color 0.2s;
    border: 1px solid #d93025;
  }
  
  .btn-logout:hover {
    background-color: #b71c1c;
  }