/* Estilo geral da área restrita */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f0f4f8;
  color: #333;
}

/* Cabeçalho */

.banner {
  margin-top: 80px;
}

header {
  background-color: #002b5c;
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
}

.header-ref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 40px;
}

.header-ref.centralizado {
  justify-content: center;
}

.logo-ref {
  max-height: 90px;
  height: auto;
}

/* Área de login */
.login-area {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
}

.login-box {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-box h2 {
  margin-bottom: 30px;
  color: #0073e6;
}

.login-box label {
  display: block;
  text-align: left;
  margin-bottom: 5px;
  font-weight: bold;
}

.login-box input {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.login-box button {
  background-color: #0073e6;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  font-size: 1rem;
}

.login-box button:hover {
  background-color: #005bb5;
}

.error-msg {
  color: red;
  margin-top: 10px;
}

/* Ícone de perfil e menu oculto */
.perfil-area {
  position: relative;
}

.perfil-icon {
  font-size: 1.5rem;
  color: #0073e6;
  cursor: pointer;
}

.menu-admin {
  position: absolute;
  top: 40px;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: none;
  flex-direction: column;
  min-width: 180px;
  z-index: 1000;
}

.menu-admin a {
  padding: 12px 20px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #eee;
}

.menu-admin a:hover {
  background-color: #f0f0f0;
}

.menu-admin a:last-child {
  border-bottom: none;
}


.header-ref {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.logo-ref {
  height: 60px;
}

.perfil-area {
  position: relative;
}

.perfil-icon {
  font-size: 32px;
  cursor: pointer;
  color: #000000;
}

.menu-admin {
  position: absolute;
  top: 40px;
  right: 0;
  background-color: #fff;
  border: 1px solid #ccc;
  display: none;
  flex-direction: column;
  min-width: 150px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.menu-admin a {
  padding: 10px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #eee;
}

.menu-admin a:hover {
  background-color: #f5f5f5;
}

/* Menu + adicionar usuario */

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-conteudo {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.fechar-modal {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

form label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

form input, form select {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

form button {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #0077cc;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

form button:hover {
  background-color: #005fa3;
}
