/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  display: flex;
  justify-content: center;
  background-color: #f4f4f4;
  min-height: 100vh;
}

/* Container principal para login e recuperação de senha */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
}

.login-box {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 400px;
}

.login-box h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #231c77;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: #333;
}

.input-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

.input-group input:focus {
  border-color: #231c77;
  outline: none;
}

.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn {
  background-color: #231c77;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.btn:hover {
  background-color: #ff0000;
}

.link {
  color: #231c77;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* Dashboard Styles */
.dashboard {
  display: flex;
  width: 100%;
  max-width: 1200px;
}

.sidebar {
  width: 250px;
  background: #231c77;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  transition: width 0.3s;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
}

.sidebar.hidden {
  display: none;
}

.logo img {
  width: 150px;
}

.menu {
  list-style-type: none;
  padding: 0;
  margin-top: 20px;
  width: 100%;
}

.menu li {
  margin: 10px 0;
  text-align: center;
}

.menu a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  padding: 15px;
  background-color: #ff0000;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu a:hover {
  background-color: #ff4d4d;
}

.main-content {
  flex: 1;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  padding: 20px;
  transition: margin-left 0.3s;
  margin-left: 250px;
}

.main-content.expanded {
  margin-left: 0;
}

.shortcut-buttons {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}

.shortcut-buttons .btn {
  background: linear-gradient(135deg, #231c77, #ff0000);
  color: white;
  border: none;
  padding: 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  flex: 1;
  margin: 0 10px;
  text-align: center;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.shortcut-buttons .btn i {
  margin-right: 10px;
  font-size: 22px;
}

.shortcut-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.4);
}

h1 {
  color: #231c77;
  font-size: 26px;
  margin-bottom: 10px;
}

p {
  font-size: 18px;
  color: #555;
}

/* Estilo para os gráficos no dashboard */
.row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.col-6 {
  width: 48%;
  padding: 10px;
}

canvas {
  width: 100%;
  height: 400px;
}

/* Botão de abrir/fechar o menu lateral no desktop */
.toggle-sidebar-btn {
  position: absolute;
  left: 250px;
  top: 20px;
  background-color: #231c77;
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s, left 0.3s;
  z-index: 1000;
}

.toggle-sidebar-btn i {
  font-size: 18px;
}

.toggle-sidebar-btn:hover {
  background-color: #ff0000;
}

.sidebar.hidden ~ .toggle-sidebar-btn {
  left: 10px;
}

/* Estilos para dispositivos móveis */
@media (max-width: 768px) {
  .row {
    flex-direction: column;
  }

  .col-6 {
    width: 100%;
    padding: 10px 0;
  }

  .main-content {
    margin-top: 100px;
    padding: 20px;
    margin-left: 0;
  }

  .sidebar {
    width: 100%;
    height: 90px;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 1000;
  }
  
  .menu li {
  margin: 2px 0;
  text-align: center;
}

  .logo img {
    width: 130px;
  }

  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    background-color: #231c77;
    width: 100%;
    z-index: 999;
  }

  .menu.active {
    display: flex;
  }

  .hamburger-menu {
    display: block;
    background-color: #231c77;
    color: white;
    border: none;
    padding: 12px;
    font-size: 20px;
    border-radius: 50%;
    position: absolute;
    right: 20px;
    top: 30px;
    z-index: 9999;
  }

  .hamburger-menu:hover {
    background-color: #ff0000;
  }

  .toggle-sidebar-btn {
    display: none;
  }
}

@media (min-width: 769px) {
  .hamburger-menu {
    display: none;
  }
}

/* Ajustando o botão Editar */
table.dataTable td .btn {
  background-color: #231c77;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

table.dataTable td .btn:hover {
  background-color: #ff0000;
}

/* Estilos personalizados para os alertas */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 16px;
    display: none;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-show {
    display: block;
}

/* Estilo de Formulário */
.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: #333;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%; /* Definir a largura como 100% */
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

.input-group textarea {
  resize: none; /* Impedir redimensionamento do textarea */
  height: 120px; /* Definir a altura padrão */
}

.input-group select {
  font-size: 16px; /* Aumentar a fonte do select */
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: #231c77;
  outline: none;
}

.btn {
  background-color: #231c77;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.btn:hover {
  background-color: #ff0000;
}

h1 {
  color: #231c77;
  font-size: 26px;
  margin-bottom: 20px; /* Adicionar margem maior */
}

/* Ajuste de largura uniforme */
form .input-group {
  width: 100%; /* Garantir que todos os grupos de input tenham a mesma largura*/

}