/* ==========================================================================
   ETECC TELECOM — SISTEMA DE OPERAÇÃO E TORRE DE SERVIÇOS
   Estilos de Navegação, Sidebar, Topbar e Temas (Light / Dark)
   ========================================================================== */

:root {
  --font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-width-expanded: 260px;
  --sidebar-width-collapsed: 76px;
  --topbar-height: 72px;
  
  /* Cores Globais da Marca ETECC */
  --accent-red: #df1e2b;
  --accent-red-hover: #c41824;
  --accent-red-glow: rgba(223, 30, 43, 0.28);
  --accent-moto: #e11d48;
  --accent-carro: #2563eb;
}

/* ==========================================================================
   TEMA CLARO (Default / Light Mode)
   ========================================================================== */
body[data-menu-layout="torre"],
body[data-menu-layout="torre"][data-theme="light"] {
  --bg-primary: #f6f8fb;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f4f9;
  --bg-card: #ffffff;
  --bg-card-hover: #fafbfd;
  
  /* Menu Lateral (Sidebar) Tema Claro */
  --sidebar-bg: #ffffff;
  --sidebar-border: #e2e8f0;
  --sidebar-shadow: 2px 0 16px rgba(15, 23, 42, 0.04);
  --sidebar-text: #475569;
  --sidebar-text-muted: #8392a5;
  --sidebar-icon: #64748b;
  --sidebar-toggle-color: #1e293b;
  --sidebar-active-bg: #df1e2b;
  --sidebar-active-text: #ffffff;
  --sidebar-item-hover: rgba(223, 30, 43, 0.07);
  --sidebar-item-hover-text: #0f172a;
  --sidebar-item-hover-icon: #df1e2b;
  --sidebar-badge-bg: #f1f5f9;
  --sidebar-badge-text: #475569;
  --sidebar-scrollbar-thumb: #cbd5e1;
  
  --topbar-bg: rgba(246, 248, 251, 0.88);
  --topbar-border: rgba(226, 232, 240, 0.8);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --border-color: #e2e8f0;
  --border-color-subtle: #edf2f7;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -3px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -6px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
  
  --input-bg: #ffffff;
  --input-border: #cbd5e1;
  --input-focus: #df1e2b;

  --badge-moto-bg: #fee2e2;
  --badge-moto-text: #b91c1c;
  --badge-carro-bg: #dbeafe;
  --badge-carro-text: #1d4ed8;
  color-scheme: light;
}

/* ==========================================================================
   TEMA ESCURO (Dark Mode - Pure Pitch Black / AMOLED)
   ========================================================================== */
body[data-menu-layout="torre"][data-theme="dark"],
body[data-menu-layout="torre"].dark {
  color-scheme: dark;
  --bg-primary: #000000;
  --bg-secondary: #080808;
  --bg-tertiary: #121212;
  --bg-card: #0c0c0c;
  --bg-card-hover: #141414;
  
  /* Menu Lateral (Sidebar) Tema Escuro */
  --sidebar-bg: #050505;
  --sidebar-border: #1a1a1a;
  --sidebar-shadow: none;
  --sidebar-text: #a1a1aa;
  --sidebar-text-muted: #52525b;
  --sidebar-icon: #a1a1aa;
  --sidebar-toggle-color: #ffffff;
  --sidebar-active-bg: #df1e2b;
  --sidebar-active-text: #ffffff;
  --sidebar-item-hover: rgba(255, 255, 255, 0.05);
  --sidebar-item-hover-text: #ffffff;
  --sidebar-item-hover-icon: #ffffff;
  --sidebar-badge-bg: #18181b;
  --sidebar-badge-text: #a1a1aa;
  --sidebar-scrollbar-thumb: #262626;
  
  --topbar-bg: rgba(0, 0, 0, 0.88);
  --topbar-border: rgba(38, 38, 38, 0.85);
  
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --border-color: #222222;
  --border-color-subtle: #141414;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.7);
  --shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.8);
  --shadow-md: 0 10px 25px -4px rgba(0, 0, 0, 0.85);
  --shadow-lg: 0 20px 35px -6px rgba(0, 0, 0, 0.95);
  
  --input-bg: #111111;
  --input-border: #262626;
  --input-focus: #df1e2b;

  --badge-moto-bg: rgba(225, 29, 72, 0.16);
  --badge-moto-text: #f43f5e;
  --badge-carro-bg: rgba(37, 99, 235, 0.16);
  --badge-carro-text: #60a5fa;
}

/* ==========================================================================
   RESET & TIPOGRAFIA BASE
   ========================================================================== */
body[data-menu-layout="torre"] {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[data-menu-layout="torre"] #root {
  min-height: 100vh;
  display: flex;
}

/* ==========================================================================
   BARRA LATERAL (SIDEBAR)
   ========================================================================== */
[data-menu-layout="torre"] .barra-lateral {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  height: 100vh;
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  box-shadow: var(--sidebar-shadow, none);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow-x: hidden;
  user-select: none;
}

[data-menu-layout="torre"] .barra-lateral.expandida {
  width: var(--sidebar-width-expanded);
}

[data-menu-layout="torre"] .barra-lateral.recolhida {
  width: var(--sidebar-width-collapsed);
}

/* Header da Sidebar com Marca ETECC (Logo + Hamburger centralizados no meio quando aberto) */
.sidebar-brand-wrapper {
  padding: 18px 18px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-bottom: 1px solid var(--sidebar-border);
  transition: border-color 0.25s ease;
}

.sidebar-brand-content {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}

.sidebar-brand-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(223, 30, 43, 0.35));
}

/* Botão de Toggle da Sidebar (Colapsar / Expandir) alinhado ao lado direito da logo */
.sidebar-toggle-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--sidebar-toggle-color, #ffffff) !important;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  outline: none;
  transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.sidebar-toggle-btn i {
  font-size: 1.55rem;
  font-weight: 900;
  -webkit-text-stroke: 0.85px currentColor;
  display: inline-block;
  line-height: 1;
}

.sidebar-toggle-btn:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--accent-red) !important;
  transform: scale(1.15);
}

/* Área de Navegação da Sidebar */
.sidebar-nav-container {
  flex: 1;
  padding: 18px 12px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-nav-container::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav-container::-webkit-scrollbar-thumb {
  background: var(--sidebar-scrollbar-thumb, #262626);
  border-radius: 4px;
}

/* Grupos de Menu */
.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-group-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--sidebar-text-muted);
  text-transform: uppercase;
  padding: 4px 12px 6px;
  white-space: nowrap;
  overflow: hidden;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.25s ease, margin 0.2s ease, padding 0.2s ease, color 0.25s ease;
}

/* Itens de Menu */
.item-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
}

.item-menu:hover {
  background-color: var(--sidebar-item-hover);
  color: var(--sidebar-item-hover-text, #ffffff);
  transform: translateX(2px);
}

.item-menu i {
  font-size: 1.15rem;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--sidebar-icon, var(--sidebar-text));
  transition: var(--transition);
}

.item-menu:hover i {
  color: var(--sidebar-item-hover-icon, var(--sidebar-item-hover-text, #ffffff));
}

.item-menu span.item-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.24s cubic-bezier(0.4, 0, 0.2, 1), transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Item Ativo (Estilo Pílula Vermelha da Imagem de Referência) */
.item-menu.ativo {
  background: var(--sidebar-active-bg) !important;
  color: var(--sidebar-active-text) !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(223, 30, 43, 0.35);
}

.item-menu.ativo i {
  color: #ffffff !important;
}

.item-menu.ativo .item-badge {
  background: rgba(0, 0, 0, 0.25) !important;
  color: #ffffff !important;
}

/* Badges Numéricos na Sidebar */
.item-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--sidebar-badge-bg);
  color: var(--sidebar-badge-text);
  margin-left: auto;
  line-height: 1.3;
  transition: var(--transition);
}

/* Rodapé da Sidebar */
.sidebar-footer {
  padding: 14px;
  border-top: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.25s ease;
}

/* Sidebar Recolhida (Collapsed) - Transição gradual e suave sem cortes bruscos */
.barra-lateral.recolhida .brand-title,
.barra-lateral.recolhida .brand-subtitle,
.barra-lateral.recolhida .item-badge,
.barra-lateral.recolhida .texto-recolhivel {
  opacity: 0;
  pointer-events: none;
  max-width: 0;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.barra-lateral.recolhida .sidebar-group-title {
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  transform: translateX(-8px);
}

.barra-lateral.recolhida .item-menu span.item-text {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
  max-width: 0;
  flex: 0;
  overflow: hidden;
  margin: 0 !important;
}

.barra-lateral.recolhida .sidebar-brand-wrapper {
  justify-content: center;
  align-items: center;
  padding: 16px 4px 15px;
  gap: 7px;
}

.barra-lateral.recolhida #cabecalhoRecolhido {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.barra-lateral.recolhida #cabecalhoRecolhido img {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.barra-lateral.recolhida #cabecalhoRecolhido:hover img {
  transform: scale(1.08);
}

.barra-lateral.recolhida .sidebar-toggle-btn {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  border-radius: 6px;
  flex-shrink: 0;
}

.barra-lateral.recolhida .sidebar-toggle-btn i {
  font-size: 1.15rem !important;
  -webkit-text-stroke: 0.35px currentColor;
  line-height: 1;
}

.barra-lateral.recolhida .item-menu {
  justify-content: center;
  padding: 12px;
}

.barra-lateral.recolhida .item-menu i {
  margin: 0 auto;
}

.barra-lateral.recolhida .item-menu i.icone-link-externo {
  display: none !important;
}

/* ==========================================================================
   TOPBAR (BARRA SUPERIOR DESKTOP)
   ========================================================================== */
.topbar-wrapper {
  height: var(--topbar-height);
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--topbar-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--topbar-border);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

/* Breadcrumb na Topbar */
.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.topbar-breadcrumb .separator {
  color: var(--border-color);
  font-weight: 400;
}

.topbar-breadcrumb .active-section {
  color: var(--text-secondary);
}

/* Ações no Topo */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Botão de Tema */
.btn-theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.btn-theme-toggle:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.btn-theme-toggle i {
  font-size: 1.15rem;
  transition: transform 0.4s ease;
}

/* Botão Ícone Compacto da Topbar (Preferências, etc.) */
.btn-topbar-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.btn-topbar-icon:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

/* Botão Secundário de Preferências / Som */
.btn-topbar-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-topbar-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-red);
  color: var(--accent-red);
  transform: translateY(-1px);
}

/* Botão Principal em Destaque Vermelho ("Ver rotas →") */
.btn-topbar-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border-radius: 12px;
  border: none;
  background: var(--accent-red);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(223, 30, 43, 0.35);
  text-decoration: none;
}

.btn-topbar-primary:hover {
  background: var(--accent-red-hover);
  box-shadow: 0 6px 20px rgba(223, 30, 43, 0.45);
  transform: translateY(-1px);
}

/* ==========================================================================
   CONTEÚDO PRINCIPAL (MAIN WRAPPER)
   ========================================================================== */
.conteudo-principal {
  background-color: var(--bg-primary);
  min-height: 100vh;
  transition: margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.conteudo-principal.desktop-expandida {
  margin-left: var(--sidebar-width-expanded);
  width: calc(100% - var(--sidebar-width-expanded));
}

.conteudo-principal.desktop-recolhida {
  margin-left: var(--sidebar-width-collapsed);
  width: calc(100% - var(--sidebar-width-collapsed));
}

/* ==========================================================================
   MOBILE TOPBAR & DROPDOWN MENU
   ========================================================================== */
.barra-superior-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--sidebar-bg);
  border-bottom: 1px solid var(--sidebar-border);
  z-index: 1000;
  display: none;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.barra-superior-mobile h1 {
  color: var(--text-primary) !important;
}

.barra-superior-mobile p {
  color: var(--text-muted) !important;
}

.barra-superior-mobile button {
  color: var(--sidebar-toggle-color, var(--text-primary)) !important;
}

.barra-superior-mobile button:hover {
  color: var(--accent-red) !important;
}

.dropdown-mobile {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--sidebar-bg);
  border-bottom: 1px solid var(--sidebar-border);
  z-index: 999;
  padding: 12px max(12px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  box-shadow: var(--shadow-lg);
  display: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.dropdown-mobile.visivel {
  display: block;
  animation: slideDownMobile 0.2s ease;
}

@keyframes slideDownMobile {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsividade de Dispositivos */
@media (max-width: 1024px) {
  [data-menu-layout="torre"] .barra-lateral {
    display: none !important;
  }
  
  .barra-superior-mobile {
    display: flex !important;
  }
  
  .conteudo-principal {
    margin-left: 0 !important;
    width: 100% !important;
    padding-top: 64px;
  }

  .topbar-wrapper {
    display: none !important;
  }
}

/* Navegação compacta para telefone, tablet e split view. */
body.menu-mobile-aberto {
  overflow: hidden;
}

@media (max-width: 640px) {
  .barra-superior-mobile {
    padding: 0 max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left));
  }

  .barra-superior-mobile > div:first-child {
    min-width: 0;
    gap: 8px !important;
  }

  .barra-superior-mobile > div:last-child {
    gap: 2px !important;
    margin-left: auto;
    flex-shrink: 0;
  }

  #areaAuthMobile {
    max-width: 104px;
    overflow: hidden;
  }

  #areaAuthMobile .mobile-auth-avatar {
    width: 28px;
    height: 28px;
  }

  .dropdown-mobile .item-menu {
    min-height: 44px;
    padding: 11px 12px;
  }
}

@media (max-width: 380px) {
  .barra-superior-mobile p {
    display: none;
  }

  #areaAuthMobile .text-\[11px\] {
    display: none;
  }
}

/* ==========================================================================
   TRANSIÇÃO DE TELAS COM BOLHAS VERMELHAS DINÂMICAS
   ========================================================================== */
.bubble-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.1s ease;
}

.bubble-transition-overlay.bubbles-active {
  opacity: 1;
}

.bubble-transition-overlay .bubble-curtain {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(223, 30, 43, 0.14) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
}

.bubble-transition-overlay.bubbles-active .bubble-curtain {
  animation: curtainGlow 1.38s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes curtainGlow {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  65% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
  }
}

.bubble-transition-overlay .bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff4d5a 0%, #df1e2b 60%, #99000d 100%);
  box-shadow: 0 0 35px rgba(223, 30, 43, 0.55), inset 0 0 18px rgba(255, 255, 255, 0.35);
  transform: translate3d(0, 110vh, 0) scale(0.8);
  opacity: 0;
  filter: blur(0px);
}

.bubble-transition-overlay.bubbles-active .bubble-1 {
  width: 290px; height: 290px; left: 22%;
  animation: bubbleFly2 1.38s cubic-bezier(0.3, 0.1, 0.25, 1) 0.04s forwards;
}

.bubble-transition-overlay.bubbles-active .bubble-2 {
  width: 340px; height: 340px; left: 36%;
  animation: bubbleFly3 1.48s cubic-bezier(0.3, 0.1, 0.25, 1) 0.18s forwards;
}

.bubble-transition-overlay.bubbles-active .bubble-3 {
  width: 280px; height: 280px; left: 48%;
  animation: bubbleFly1 1.32s cubic-bezier(0.3, 0.1, 0.25, 1) 0.00s forwards;
}

.bubble-transition-overlay.bubbles-active .bubble-4 {
  width: 360px; height: 360px; left: 60%;
  animation: bubbleFly2 1.50s cubic-bezier(0.3, 0.1, 0.25, 1) 0.25s forwards;
}

.bubble-transition-overlay.bubbles-active .bubble-5 {
  width: 270px; height: 270px; left: 70%;
  animation: bubbleFly2 1.36s cubic-bezier(0.3, 0.1, 0.25, 1) 0.34s forwards;
}

.bubble-transition-overlay.bubbles-active .bubble-6 {
  width: 320px; height: 320px; left: 28%;
  animation: bubbleFly3 1.40s cubic-bezier(0.3, 0.1, 0.25, 1) 0.28s forwards;
}

.bubble-transition-overlay.bubbles-active .bubble-7 {
  width: 350px; height: 350px; left: 44%;
  animation: bubbleFly2 1.45s cubic-bezier(0.3, 0.1, 0.25, 1) 0.10s forwards;
}

.bubble-transition-overlay.bubbles-active .bubble-8 {
  width: 260px; height: 260px; left: 65%;
  animation: bubbleFly3 1.30s cubic-bezier(0.3, 0.1, 0.25, 1) 0.06s forwards;
}

.bubble-transition-overlay.bubbles-active .bubble-9 {
  width: 330px; height: 330px; left: 53%;
  animation: bubbleFly1 1.42s cubic-bezier(0.3, 0.1, 0.25, 1) 0.20s forwards;
}

.bubble-transition-overlay.bubbles-active .bubble-10 {
  width: 270px; height: 270px; left: 18%;
  animation: bubbleFly3 1.38s cubic-bezier(0.3, 0.1, 0.25, 1) 0.36s forwards;
}

.bubble-transition-overlay.bubbles-active .bubble-11 {
  width: 320px; height: 320px; left: 74%;
  animation: bubbleFly1 1.40s cubic-bezier(0.3, 0.1, 0.25, 1) 0.14s forwards;
}

.bubble-transition-overlay.bubbles-active .bubble-12 {
  width: 300px; height: 300px; left: 39%;
  animation: bubbleFly1 1.44s cubic-bezier(0.3, 0.1, 0.25, 1) 0.30s forwards;
}

/* Keyframes contínuos: trajetória estendida a -165vh para que cruzem o topo da tela em velocidade constante sem travar */
@keyframes bubbleFly1 {
  0% {
    transform: translate3d(0, 115vh, 0) scale(0.82);
    opacity: 0;
  }
  12% {
    opacity: 0.88;
  }
  80% {
    opacity: 0.88;
  }
  100% {
    transform: translate3d(-28px, -165vh, 0) scale(1.06);
    opacity: 0;
  }
}

@keyframes bubbleFly2 {
  0% {
    transform: translate3d(0, 115vh, 0) scale(0.84);
    opacity: 0;
  }
  12% {
    opacity: 0.88;
  }
  80% {
    opacity: 0.88;
  }
  100% {
    transform: translate3d(30px, -165vh, 0) scale(1.08);
    opacity: 0;
  }
}

@keyframes bubbleFly3 {
  0% {
    transform: translate3d(0, 115vh, 0) scale(0.80);
    opacity: 0;
  }
  12% {
    opacity: 0.88;
  }
  80% {
    opacity: 0.88;
  }
  100% {
    transform: translate3d(0px, -165vh, 0) scale(1.05);
    opacity: 0;
  }
}

/* Item isolado no topo da sidebar para o Menu Geral */
.sidebar-main-nav {
  display: flex;
  flex-direction: column;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sidebar-border);
  margin-bottom: 6px;
}
