html,
body {
  height: 100%;
  margin: 0;
}

.mt-10 {
  margin-top: 11rem !important;
}

.mt-20 {
  margin-top: 20%;
}

/* Cor de fundo da navbar */
nav {
  background-color: #0a5a93;
}

/* Cor dos links na navbar */
nav ul a {
  color: white !important;
}

/* Cor de fundo do menu dropdown */
nav .nav-item .dropdown-menu {
  background-color: #1d98db;
}

/* Cor dos itens do dropdown */
nav .nav-item .dropdown-menu .dropdown-item {
  color: white; /* Cor do texto */
}

/* Cor do item do dropdown ao passar o mouse */
nav .nav-item .dropdown-menu .dropdown-item:hover {
  background-color: #444; /* Cor do fundo ao passar o mouse */
  color: white; /* Garantir que o texto continue branco */
}

.dropdown-menu .dropdown-item {
  background-color: transparent !important; /* Remove o fundo cinza */
  font-weight: normal;
  transition: all 0.2s ease;
}

.dropdown-menu .dropdown-item:hover {
  background-color: transparent !important; /* Ainda sem fundo no hover */
  font-weight: bold; /* Negrito no hover */
  color: #0d6efd; /* Azul padrão do Bootstrap, ou personalize */
}

.navbar-toggler-icon {
  background-color: #1d98db;
}

.card-header {
  background: linear-gradient(135deg, #1e9ce0, #09568e) !important;
  color: white !important;
}

footer {
  background-color: #0a5a93;
  color: white;
}

/* Classe para os ícones com fundo circular */
.icon-text {
  width: 40px;
  height: 40px;
  min-width: 40px;
}

.required {
  color: red !important;
}

.page-item a {
  color: grey !important;
}

.img-crop {
  aspect-ratio: 16/9;
  object-fit: cover;
  max-height: 500px;
  width: 100%;
}
.icon-box span {
  font-size: 1.3rem;
  margin-right: 1rem;
}
.section-title {
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.text-decoration-none {
  text-decoration: none !important;
}

.bg-rede {
  background: #0a5a93;
}

.arede-mt-modal {
  margin-top: 15%;
}

.arede-mt-modal1 {
  margin-top: 6%;
}

.arede-mt-modal2 {
  margin-top: 25%;
}

.arede-cor-pri {
  background-color: #1e9ce0 !important;
  color: white;
}
.arede-cor-sec {
  background-color: #00662b;
  color: white;
}
.arede-btn,
.arede-btn-info,
.arede-btn-success,
.arede-btn-secondary,
.arede-btn-danger,
.arede-btn-warning,
.arede-btn-warning-light {
  color: white !important;
  font-weight: 600;
  border: none;
  transition: all 0.2s ease-in-out;
  box-shadow: none;
}

/* Botão pequeno */

.btn-p {
  padding: 0px 12px;
}

/* Botão Padrão */

.text-arede {
  color: #0a5a93 !important;
}

.bg-arede {
  background: linear-gradient(135deg, #1e9ce0, #09568e);
}

.arede-btn {
  background: linear-gradient(135deg, #1e9ce0, #09568e);
}
.arede-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 8px rgba(30, 156, 224, 0.4);
}
.arede-btn:active {
  background: linear-gradient(135deg, #0f6ca0, #063c58);
}

.arede-btn-info {
  background: linear-gradient(135deg, #5bc0de, #2aabd2);
}
.arede-btn-info:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 8px rgba(91, 192, 222, 0.4);
}
.arede-btn-info:active {
  background: linear-gradient(135deg, #269abc, #117a8b);
}

/* Botão Secondary */
.arede-btn-secondary {
  background: linear-gradient(135deg, #c2c7cc, #7d848a);
}
.arede-btn-secondary:hover {
  filter: brightness(1.05);
  box-shadow: 0 0 8px rgba(125, 132, 138, 0.4);
}
.arede-btn-secondary:active {
  background: linear-gradient(135deg, #a5abb1, #6b7277);
}
/* Botão Sucesso */
.arede-btn-success {
  background: linear-gradient(135deg, #3c7f21, #00662b);
}
.arede-btn-success:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 8px rgba(60, 127, 33, 0.4);
}
.arede-btn-success:active {
  background: linear-gradient(135deg, #2f611a, #004e22);
}

/* Botão Aviso (Laranja) */
.arede-btn-warning {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: #fff;
}

.arede-btn-warning:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 8px rgba(243, 156, 18, 0.4);
}

.arede-btn-warning:active {
  background: linear-gradient(135deg, #d68910, #ca6f1e);
}

/* Botão Aviso (Amarelo) */
.arede-btn-warning-light {
  background: linear-gradient(135deg, #fdcd00, #cab520);
}
.arede-btn-warning-light:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 8px rgba(253, 205, 0, 0.4);
}
.arede-btn-warning-light:active {
  background: linear-gradient(135deg, #e6bb00, #a9991a);
}

/* Botão Perigo */
.arede-btn-danger {
  background: linear-gradient(135deg, #f03a3a, #e90404);
}
.arede-btn-danger:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 8px rgba(158, 23, 23, 0.4);
}
.arede-btn-danger:active {
  background: linear-gradient(135deg, #f03a3a, #e90404);
}

.arede-top-border {
  background-color: #1e9ce0;
}

.modal-hr-rede {
  background-color: #1e9ce0;
  color: #fff;
  font-weight: bold;
  border-top-left-radius: 1.3rem;
  border-top-right-radius: 1.3rem;
}

.modal-hr-rede-danger {
  background-color: #e90404;
  color: #fff;
  font-weight: bold;
  border-top-left-radius: 1.3rem;
  border-top-right-radius: 1.3rem;
}

.modal-hr-rede-success {
  background-color: #080;
  color: #fff;
  font-weight: bold;
  border-top-left-radius: 1.3rem;
  border-top-right-radius: 1.3rem;
}

.modal-hr-rede-circle {
  border-top-left-radius: 1.3rem;
  border-top-right-radius: 1.3rem;
}

.modal-hr-rede-circle-full {
  border-top-left-radius: 1.3rem !important;
  border-top-right-radius: 1.3rem !important;
  border-bottom-left-radius: 1.3rem !important;
  border-bottom-right-radius: 1.3rem !important;
}
.icon-box-item {
  margin-right: 1rem;
  cursor: default;
  position: relative;
  display: inline-block;
}

.icon-box span {
  font-size: 1rem;
}

.icon-box span:hover::after {
  opacity: 1;
}

[data-txt] {
  position: relative;
  cursor: default;
}

[data-txt]::after {
  content: attr(data-txt);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #000028;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

[data-txt]:hover::after {
  opacity: 1;
}

[data-label]:hover::after {
  opacity: 1;
}

[data-label] {
  position: relative;
  cursor: default;
}

[data-label]::after {
  content: attr(data-label);
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #39b2d6;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
  font-weight: bold;
}

[data-label]:hover::after {
  opacity: 1;
}

#submitOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 94, 152, 1);
  background-size: 175px 175px;
  z-index: 9999;
  display: none;
}

.submit-text {
  font-size: 3rem;
  font-weight: bold;
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 94, 152, 1);
  background-size: 175px 175px;
  z-index: 9999;
  display: block;
}

@keyframes dots {
  0% {
    content: ' .';
  }
  33% {
    content: ' ..';
  }
  66% {
    content: ' ...';
  }
  100% {
    content: ' ....';
  }
}

.dots::after {
  content: '';
  animation: dots 1s infinite steps(3, end);
}

/* Fundo desta página (um pouco mais claro) */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #0b233f center/cover no-repeat;
  /* vinheta mais leve (antes .15→.35) */
  background-image: url('/profile/imgbig3.webp');
}

@media (min-width: 576px) {
  .page-bg {
    background-image: url('/profile/imgbig3.webp');
  }
}

@media (min-width: 768px) {
  .page-bg {
    background-image: url('/profile/imgbig3.webp');
  }
}

@media (min-width: 1200px) {
  .page-bg {
    background-image: url('/profile/imgbig3.webp');
  }
}

@media (min-width: 1400px) {
  .page-bg {
    background-image: url('/profile/imgbig3.webp');
  }
}

@media (min-width: 1800px) {
  .page-bg {
    background-image: url('/profile/imgbig3.webp');
  }
}

@media (min-width: 2400px) {
  .page-bg {
    background-image: url('/profile/imgbig3.webp');
  }
}

/* retrato (mobile) levemente mais forte para legibilidade */
@media (orientation: portrait) and (max-width: 767.98px) {
  .page-bg {
    background-image: url('/profile/imgbig3.webp');
    background-position: 50% 30%;
  }
}

/* Área do conteúdo sem scroll fantasma (mantém header+footer) */
#auth-root {
  min-height: calc(80dvh - var(--nav-h, 0px) - var(--footer-h, 0px));
  overflow: hidden;
  /* rola só se o conteúdo for maior que o espaço */
  padding-block: 1rem;
}

/* Respeita seu card original */
.auth-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
}

.auth-card .card-body {
  background: #fff;
  border-radius: 0.5rem;
}

.page-bg .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* UX: no hover do "eye" o ícone some (sem mudar seu JS) */
#toggle-password i {
  transition: opacity 0.15s ease;
}

#toggle-password:hover i {
  opacity: 0;
}

.bg-arede-user {
  background-color: #ecf0f5;
}
