/* ================================
   🔷 TOOLBAR COLABORADOR ASSECTRA
   ================================ */
.toolbar-colaborador {
  background-color: var(--azul-escuro) !important;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 2px solid var(--azul-total);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.toolbar-colaborador h2 {
  font-size: 1.1em;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}

.toolbar-colaborador i.app-toolbar-icon {
  color: #ffffff;
  margin: 0 10px;
  font-size: 20px;
  transition: all 0.2s ease;
  opacity: 0.9;
}

.toolbar-colaborador i.app-toolbar-icon:hover {
  color: #5BA6FF;
  transform: scale(1.1);
  opacity: 1;
}

/* 🔹 Ícones desativados */
.toolbar-colaborador i.app-toolbar-icon.disabled {
  color: #999999 ;
  opacity: 0.5 ;
  cursor: not-allowed ;
  transform: none ;
  pointer-events: none ;
}

/* ==========================================
   🔷 LOADER CENTRAL ASSECTRA 2025
   ========================================== */
[data-loading-overlay] {
  position: fixed;
  inset: 0;
  background: rgba(33, 21, 81, 0.12); /* Fundo institucional translúcido */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 3000;
  backdrop-filter: blur(3px);
}

/* 🔹 Container central do conteúdo */
.assectra-loader {
  text-align: center;
  animation: fadeIn 0.4s ease-in;
}

/* 🔹 Logo pulsando */
.assectra-logo {
  width: 190px;
  max-width: 60%;
  animation: pulse 2s ease-in-out infinite;
  transform-origin: center center;
  filter: drop-shadow(0 0 10px rgba(91, 166, 255, 0.3));
}

/* 🔹 Texto “Carregando...” */
.loading-text {
  margin-top: 18px;
  font-family: "Segoe UI", Calibri, Arial, sans-serif;
  font-size: 1.05em;
  color: #211551;
  font-weight: 600;
  letter-spacing: 1px;
  animation: blink 2s infinite ease-in-out;
}

/* 🔹 Barra de progresso */
.loading-bar {
  width: 200px;
  height: 6px;
  border-radius: 3px;
  margin-top: 14px;
  background: rgba(91, 166, 255, 0.15);
  overflow: hidden;
  position: relative;
}

.loading-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background-color: #211551; /* Azul institucional */
  width: 0%;
  transition: width 0.3s ease-in-out;
}

/* ✳️ Animações */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes blink {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================
   🔷 Botões Assectra 2025
   ============================ */
.btn-primary {
  background-color: #211551 !important;
  border-color: #333333 !important;
  color: #fff !important;
  transition: all 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #147EFF !important;
  border-color: #147EFF !important;
}

.btn-success {
  background-color: #211551 !important;
  border-color: #333333 !important;
}

.btn-danger {
  background-color: #211551 !important;
  border-color: #333333 !important;
}

.btn-info {
  background-color: #211551 !important;
  border-color: #333333 !important;
}

/* ==========================================================
   🔷 PADRÃO ASSECTRA 2025 - ÍCONES BRANCOS GLOBAIS
   ========================================================== */
.fa,
[class^="fa-"],
[class*=" fa-"] {
  font-size: 15px ;
  margin: 0 5px;
  cursor: pointer;
  opacity: 0.9;
  vertical-align: middle;
  transition: all 0.25s ease;
}

/* Hover padrão (azul suave Assectra) */
.fa:hover,
[class^="fa-"]:hover,
[class*=" fa-"]:hover {
  color: #5BA6FF !important;
  opacity: 1;
  transform: scale(1.1);
}

/* Ícones menores em botões */
.btn .fa,
button .fa {
  font-size: 14px !important;
  margin: 0 5px !important;
  vertical-align: middle;
}

/* Ícones dentro de toolbars ou cabeçalhos */
.toolbar-colaborador .fa,
.md-toolbar-tools .fa {
  color: #ffffff;
}

/* Hover nas toolbars */
.toolbar-colaborador .fa:hover,
.md-toolbar-tools .fa:hover {
  color: #5BA6FF !important;
}

/* Ícones desativados */
.fa.disabled,
.toolbar-colaborador .fa.disabled,
.fa[disabled] {
  color: #999999 !important;
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  transform: none !important;
}
/* =====================================
   🔷 MENU SECUNDÁRIO INTEGRADO ASSECTRA
   ===================================== */
@media (min-width: 951px) {
  /* Layout desktop padrão */
  .navbar-toggle {
    display: none !important;
  }
  .navbar-collapse {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
  }
}

@media (max-width: 950px) {
  /* Modo mobile ativado */
  .navbar-header {
    float: none;
  }

  /* 🔹 Mostra o botão ☰ (hambúrguer) */
  .navbar-toggle {
    display: block !important;
    float: right;
    margin-right: 10px;
    margin-top: 10px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 10px;
  }

  /* 🔹 Esconde o menu padrão */
  .navbar-collapse {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background-color: var(--azul-escuro);
  }

  .navbar-collapse.collapse {
    display: none !important;
  }

  .navbar-collapse.collapse.in {
    display: block !important;
  }

  /* 🔹 Ajusta layout dos itens no menu recolhido */
  .navbar-nav {
    float: none !important;
    margin: 0;
  }

  .navbar-nav > li {
    float: none;
    display: block;
    text-align: left;
    color: #fff !important;
  }

  .navbar-nav > li > a {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* 🔹 Reduz o tamanho da logo e espaçamento */
  .navbar-brand img {
    height: 150% !important;
  }

  .navbar {
    min-height: 55px;
  }
    /* ==========================================
     🔒 Oculta SOMENTE o menu secundário (linha branca)
     ========================================== */
  .btn-group.hidden-print {
    display: none !important;
    visibility: hidden !important;
  }

}
/* =====================================
   🔔 SINO DE PENDÊNCIAS NO NAVBAR
   ===================================== */
#SinoPendencias {
  position: absolute;
  right: 50px;
  top: 25px;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 1000;
  text-decoration: none;
  display: none; /* 🔹 começa oculto */
}

#SinoPendencias i {
  font-size: 20px !important;
  color: #ff2c2c !important;
  animation: sino-balanco 1.5s ease-in-out infinite;
  transition: 0.2s ease;
}

/* Hover */
#SinoPendencias:hover i {
  color: #ff6666;
  transform: scale(1.1);
}

/* ✳️ Efeito de balanço */
@keyframes sino-balanco {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-12deg); }
  75% { transform: rotate(12deg); }
}

/* ======================================
   🔒 Controle de exibição por largura
   ====================================== */

/* 🔹 Oculta o sino no desktop (>=951px) */
@media (min-width: 951px) {
  #SinoPendencias {
    display: none !important;
  }
}

/* 🔹 Mostra o sino no mobile (<=950px)
   — só será exibido quando houver pendências (JS controla isso) */
@media (max-width: 950px) {
  #SinoPendencias {
    display: none; /* o JS muda para inline-block quando houver pendências */
  }
}

/* ============================================
   🔔 Sino de Pendências e Menu Responsivo
   ============================================ */
#SinoPendencias {
  display: none;
  cursor: pointer;
  margin-right: 15px;
  vertical-align: middle;
}

#SinoPendencias i {
  color: #ff2c2c !important;
  font-size: 20px !important;
  animation: sino-balanco 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(255, 0, 0, 0.6));
}

@keyframes sino-balanco {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(8deg); }
  75% { transform: rotate(-8deg); }
}

/* 🔹 Oculta menus no mobile */
@media (max-width: 950px) {
  .btn-group.hidden-print {
    display: none !important;
  }
}

/* 🔹 Mostra menus no desktop */
@media (min-width: 951px) {
  .btn-group.hidden-print {
    display: flex !important;
  }
}

/* ==========================================
   🔷 MENU DROPDOWN AZUL ASSECTRA
   ========================================== */
.navbar-nav > li > .dropdown-menu {
  background-color: #211551 !important; /* Azul escuro institucional */
  border: none !important;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  padding: 8px 0;
}

/* 🔹 Itens dentro do menu */
.navbar-nav > li > .dropdown-menu > li > a {
  color: #ffffff !important;
  padding: 10px 16px;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

/* 🔹 Hover dos itens */
.navbar-nav > li > .dropdown-menu > li > a:hover {
  background-color: #147EFF !important; /* Azul claro */
  color: #fff !important;
}

/* 🔹 Linha divisória (divider) */
.navbar-nav > li > .dropdown-menu > .divider {
  background-color: rgba(255, 255, 255, 0.2) !important;
}

/* ===============================================
   🔷 BOTÃO CONFIGURAÇÕES (Dropdown Azul Assectra)
   =============================================== */

/* Estado normal */
.navbar-nav > li > a,
.navbar-nav > li > a:focus,
.navbar-nav > li > a:active {
  background-color: transparent !important;
  color: #ffffff !important;
}

/* Estado ao passar o mouse */
.navbar-nav > li > a:hover {
  background-color: #147EFF !important; /* Azul claro */
  color: #fff !important;
}

/* Estado quando o dropdown está aberto */
.navbar-nav > li.open > a,
.navbar-nav > li.open > a:focus,
.navbar-nav > li.open > a:hover {
  background-color: #211551 !important; /* Azul escuro institucional */
  color: #ffffff !important;
  box-shadow: inset 0 -3px 0 #5BA6FF;
}

/* ======================================
   🔷 LOGIN ASSECTRA - FUNDO ESPACIAL
   ====================================== */

.login-fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.login-fullscreen md-dialog-content {
  height: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
}

/* 🔹 Fundo total com imagem */
.login-full-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 0;
}

/* 🔹 Imagem de fundo responsiva */
.fundo-espacial {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* 🔹 Imagem da Bet */
.bet-bg-img {
  position: absolute;
  left: 15%;
  bottom: 0;
  height: 85%;
  max-height: 760px;
  z-index: 1;
  transition: all 0.4s ease;
  filter: drop-shadow(0 0 15px rgba(91,166,255,0.25));
}

/* 🔹 Container do formulário */
.login-container {
  position: relative;
  right: 10%;
  z-index: 2;
  width: 100%;
  min-width: 250px;
  max-width: 440px;
  margin-right: 8%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* 🔹 Card de login */
.login-card {
  background: rgba(28, 23, 23, 0) !important;
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid #212a72 !important;
  padding: 40px 36px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  color: #ffffff;
}

/* 🔹 Botão */
.btn-custom {
  background-color:  #0e74bb !important;
  border: none;
  color: #fff !important;
  font-weight: 600;
  transition: 0.3s ease;
}
.btn-custom:hover {
  background-color: #5BA6FF !important;
}

/* ======================================
   🔹 RESPONSIVIDADE
   ====================================== */
@media (max-width: 1400px) {
  .bet-bg-img {
    left: 3%;
    height: 75%;
  }
}
@media (max-width: 1100px) {
  .bet-bg-img {
    left: 2%;
    height: 55%;
  }
}
@media (max-width: 970px) {
  .bet-bg-img {
    left: 1%;
    height: 45%;
  }
}

@media (max-width: 768px) {
  .login-full-bg {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .fundo-espacial {
    object-position: top;
  }

  .bet-bg-img {
    position: relative;
    height: 120px;
    left: 0;
    bottom: auto;
    margin-bottom: 16px;
  }

  .login-container {
    margin-right: 1% !important;
    left: 1% !important;
    right: 1% !important;
    height: auto;
  }

  .login-card {
    width: 90% !important;
    padding: 28px 22px !important;
  }
}
