.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--dash-text, #e5e7eb);
  font-size: 26px;
  margin-bottom: 20px;
  cursor: pointer;
}

@media (max-width: 768px) {

  .dashboard {
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    height: 100%;
    width: 240px;
    z-index: 999;
    transition: left 0.25s ease;



    overflow-y: auto;
    /* 🔥 permite scroll */
    -webkit-overflow-scrolling: touch;
    /* 🔥 scroll suave no iOS */


    padding-bottom: 40px;
  }

  .sidebar.active {
    left: 0;
  }

  .menu-toggle {
    display: block;
  }

  .content {
    padding: 20px;
  }

}

/* =========================
   USUÁRIO LOGADO (SIDEBAR)
========================= */

.user-logged {
  padding: 12px 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid #1f1f1f;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--dash-title, #fff);
}

.user-email {
  font-size: 12px;
  color: #9ca3af;
  word-break: break-all;
}

.sidebar {
  width: 240px;
  background: var(--dash-card-bg, #020617);
  border-right: 1px solid var(--dash-card-border, #1e293b);
  padding: 20px;
  box-sizing: border-box;
}

.sidebar .logo {
  width: 100%;
  max-width: 200px;
  margin-bottom: 0px;
}


.sidebar nav a, .sidebar-btn-theme {
  display: block;
  padding: 12px 14px;
  margin-bottom: 6px;
  color: var(--dash-subtitle, #cbd5f5);
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  transition: background 0.15s ease;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.sidebar nav a:hover, .sidebar-btn-theme:hover {
  background: var(--dash-btn-outline-hover-bg, #020617);
  color: #22c55e;
}

.sidebar .logout {
  margin-top: 30px;
  color: #f87171;
  font-size: 14px;
  text-decoration: none;
}

.user-logout {
  margin-top: 10px;
}


.floating-refresh {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #1f1f1f;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 999;
}

.floating-refresh:hover {
  background: #2a2a2a;
  transform: rotate(90deg);
}