
body {
  background-color: #ffffff !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  color: #212529;
  margin: 0;
}

html, body {
  height: 100%;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* Elementos padrão */
.card {
  border-radius: 16px;
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  color: #212529;
}

input.form-control {
  background-color: #ffffff;
  border: 1px solid #ced4da;
  color: #212529;
}

input.form-control:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
  background-color: #ffffff;
  color: #212529;
}

.btn-primary {
  background-color: #007bff;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #0069d9;
}

.btn-outline-primary {
  border-color: #007bff;
  color: #007bff;
}

.btn-outline-primary:hover {
  background-color: #007bff;
  color: #fff;
}

.list-group-item {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #212529;
  border-radius: 8px;
  margin-bottom: 6px;
}

.text-danger {
  color: #dc3545 !important;
}

.navbar {
  background-color: #fff !important;
  border-bottom: 1px solid #dee2e6;
  position: relative;
  height: 60px;  
}

.navbar-center {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none; /* evita bloquear o botão de menu */
}

.navbar .navbar-brand {
  color: #212529 !important;
  font-weight: 600;
}

.navbar-logo {
  height: 40px;
  pointer-events: auto; /* permite interações no logo */
}


footer {
  background-color: #ffffff !important;
  border-top: 1px solid #dee2e6;
}

footer a {
  color: #212529 !important;
  text-decoration: none;
}

footer a i {
  font-size: 1.2rem;
  display: block;
}

footer a small {
  font-size: 0.75rem;
}

.container h5 {
  margin-top: 20px;
}

/* ALERTAS COM FECHAR */
.alert-dismissible {
  position: relative;
  padding-right: 3rem;
}

.alert-dismissible .btn-close:hover {
  opacity: 1;
}

/* MENU LATERAL - estilo claro tipo WhatsApp */
#sidebar {
  height: 100%;
  width: 260px;
  position: fixed;
  top: 0;
  left: -260px;
  background-color: #ffffff;
  padding-top: 60px;
  transition: left 0.3s ease-in-out;
  z-index: 1050;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

#sidebar a {
  padding: 14px 24px;
  text-decoration: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  color: #222;
  border-bottom: 1px solid #f1f1f1;
}

#sidebar a i {
  margin-right: 12px;
}

#sidebar .closebtn {
  position: absolute;
  top: 0px;
  right: 0px;
  font-size: 18px;
  color: #0d6efd;
  cursor: pointer;
  font-weight: bold;
}

/* Overlay para escurecer fundo */
#menuOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 1040;
}

#menuOverlay.active {
  display: block;
}

.menu-toggle {
  font-size: 35px;
  cursor: pointer;
  color: #0d6efd;
}

.alert-dismissible .btn-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  z-index: 10;
  display: inline-block !important;
  opacity: 1 !important;
  background: none;
  width: 1rem;
  height: 1rem;
  padding: 0;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #000;
  cursor: pointer;
}

.alert-dismissible .btn-close-alerta {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  z-index: 10;
  display: inline-block !important;
  opacity: 1 !important;
  background: none;
  width: 1rem;
  height: 1rem;
  padding: 0;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #000;
  cursor: pointer;
}

.btn-close-alerta:before {
  content: '×'; /* Força o caractere "X" */
  font-size: 1.25rem;
  font-weight: bold;
  color: #000;
}

.alert.auto-dismiss {
  transition: opacity 0.5s ease, height 0.5s ease, margin 0.5s ease, padding 0.5s ease;
  overflow: hidden;
}

.alert.auto-dismiss.hide {
  opacity: 0;
  height: 0;
  margin: 0;
  padding: 0;
}

.container-login {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 80px; /* ajuste conforme necessário */
  height: 100vh;
}

.login-card {
  transform: translateY(-50px); /* ajusta esse valor conforme necessário */
}

@media (max-width: 768px) {
  #sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    height: 100%;
    width: 250px;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    transition: left 0.3s ease;
  }

  body.menu-open {
    overflow: hidden; /* Evita rolagem quando o menu estiver aberto */
  }
}

.wrapper {
  display: flex;
  transition: all 0.3s ease;
}

.sidebar {
  width: 250px;
  min-height: 100vh;
  background: #fff;
  position: relative;
  left: 0;
  z-index: 1030;
  transition: margin-left 0.3s ease;
}

.sidebar.collapsed {
  margin-left: -250px;
}

#main-content {
  transition: margin-left 0.3s ease;
  width: 100%;
}

#main-content.shifted {
  margin-left: 250px;
}

#sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background: #fff;
  transition: left 0.3s ease;
  z-index: 1050;
  overflow-y: auto;
}

#sidebar.active {
  left: 0;
}

#main {
  transition: margin-left 0.3s ease;
}

#main.shifted {
  margin-left: 250px;
}

@media (max-width: 767.98px) {
  #main.shifted {
    margin-left: 0 !important;
  }
}
