/* ===========================================================
   FEMFLOW — HEADER.CSS (Versão Final 2025)
   Cabeçalho fixo + Menu lateral otimizado e responsivo
=========================================================== */

/* ----------------------------------------
   HEADER BASE
---------------------------------------- */
#femflowHeader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #335953;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid rgba(107,107,107,0.4);
  z-index: 9999;
}

#femflowHeader .ff-logo {
  height: 28px;
}

/* ============================================================
   🔥 FEMFLOW — BOTÃO DO MENU (VERSÃO FINAL ALINHADO NO HEADER)
============================================================ */

.ff-menu-btn,
#ffMenuBtn {
  position: absolute !important;

  /* ⬇⬇ Alinhamento vertical perfeito no header */
  top: 50% !important;
  transform: translateY(-50%) !important;

  right: 18px !important;

  background: none !important;
  border: none !important;

  width: auto !important;
  height: auto !important;

  padding: 6px 10px !important;
  margin: 0 !important;

  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: #E5E5E5 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 12px !important;

  cursor: pointer !important;
  z-index: 99999 !important;
}

/* Hover / Active */
.ff-menu-btn:hover,
#ffMenuBtn:hover {
  background: rgba(0,0,0,0.03) !important;
}

.ff-menu-btn:active,
#ffMenuBtn:active {
  background: rgba(0,0,0,0.08) !important;
  transform: translateY(-50%) scale(0.97) !important;
}

/* Hard shield contra resets */
.ff-menu-btn *,
#ffMenuBtn * {
  width: auto !important;
  max-width: none !important;
  display: inline !important;
}

/* Tema escuro */
body.dark #ffMenuBtn,
body.dark .ff-menu-btn {
  color: var(--bege) !important;
}



/* ----------------------------------------
   MENU LATERAL
---------------------------------------- */
.ff-menu-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .30s ease;
  z-index: 150000; /* acima do header */
}

.ff-menu-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.ff-menu-box {
  position: absolute;
  right: 0;
  top: 0;
  width: 78%;
  max-width: 330px;
  height: 100%;
  background: #E5E5E5;
  padding: 26px;
  box-shadow: -4px 0 20px rgba(0,0,0,0.2);
  transform: translateX(100%);
  transition: transform .30s ease;
}

.ff-menu-modal.active .ff-menu-box {
  transform: translateX(0);
}

.ff-menu-box button {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #E5E5E5;
  border: 1px solid #6B6B6B;
  color: #2E2E2E;
  font-weight: 600;
  text-align: left;
}

.ff-menu-box button:active {
  background: #6B6B6B;
}

.ff-logout {
  margin-top: 30px !important;
  background: #d6c1c1 !important;
  color: #6b2e2e !important;
}

/* ----------------------------------------
   TEMA DARK
---------------------------------------- */
body.dark {
  background: #222;
  color: #eee;
}

body.dark #femflowHeader {
  background: #333;
}

body.dark .ff-menu-box {
  background: #2b2b2b;
}

body.dark .ff-menu-box button {
  background: #3b3b3b;
  border-color: #555;
  color: #eee;
}

body.dark .ff-logout {
  background: #552222 !important;
  color: #ffb3b3 !important;
}
