/* ===============================
   RESET + BASE
================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #0f172a;
  color: #e5e7eb;

  height: 100vh;
  overflow: hidden; /* 🔒 TRAVA O SCROLL DO BODY */
}

/* ===============================
   MENU LATERAL FIXO
================================ */

.sidebar {
  position: fixed;       /* 🔒 FIXO NA TELA */
  top: 0;
  left: 0;

  width: 240px;
  height: 100vh;

  background-color: #020617;
  padding: 20px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;

  overflow-y: auto;      /* Scroll só se o menu for maior que a tela */
  z-index: 1000;
}

/* LOGO NO TOPO DO MENU */
.sidebar-logo {
  text-align: center;
  margin-bottom: 20px;
}

.sidebar-logo img {
  max-width: 160px;
  height: auto;
}

/* LINKS DO MENU */
.sidebar a {
  display: block;
  color: #cbd5f5;
  text-decoration: none;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 5px;
  font-size: 14px;
}

.sidebar a:hover {
  background-color: #1e293b;
  color: #38bdf8;
}

/* RODAPÉ DO MENU */
.sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  text-align: center;
}

.sidebar-footer img {
  max-width: 70px;
  opacity: 0.8;
}

/* ===============================
   CONTEÚDO (SCROLL AQUI)
================================ */

.content {
  margin-left: 240px;                  /* Espaço do menu */
  width: calc(100% - 240px);
  height: 100vh;

  padding: 30px;
  overflow-y: auto;                    /* ✅ SCROLL SOMENTE AQUI */

  background-color: #0f172a;
}

/* ===============================
   BOX DO TUTORIAL
================================ */

.tutorial-box {
  background-color: #020617;
  padding: 30px;
  border-radius: 10px;
  max-width: 100%;
}

.tutorial-box h1 {
  color: #38bdf8;
  margin-bottom: 1.5rem;
}

.tutorial-box h2 {
  margin-top: 1.3rem;
  color: #93c5fd;
}

.tutorial-box p,
.tutorial-box li {
  font-size: 1rem;
  line-height: 1.6;
  color: #e5e7eb;
}

.tutorial-box ol,
.tutorial-box ul {
  padding-left: 20px;
}

/* ===============================
   VÍDEOS
================================ */

video {
  margin-top: 15px;
  border-radius: 8px;
  max-width: 100%;
}

/* ===============================
   IMAGENS DO TUTORIAL
================================ */

.tutorial-img {
  display: block;
  max-width: 100%;
  height: auto;

  margin: 20px auto;
  border-radius: 8px;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.tutorial-img--large {
  max-width: 1000px;
}

.tutorial-img--medium {
  max-width: 700px;
}

.tutorial-img--small {
  max-width: 400px;
}

/* ITEM ATIVO DO MENU */
.sidebar a.active {
  background-color: #1e293b;
  color: #38bdf8;
  font-weight: bold;
  position: relative;
}

/* BARRA LATERAL DE DESTAQUE */
.sidebar a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: #38bdf8;
  border-radius: 4px;
}

/* ===============================
   SUBMENU
================================ */

.menu-group {
  margin-bottom: 5px;
}

.menu-parent {
  cursor: pointer;
}

/* Submenu escondido */
.submenu {
  display: none;
  margin-left: 10px;
  border-left: 2px solid #1e293b;
  padding-left: 10px;
}

/* Links do submenu */
.submenu a {
  font-size: 13px;
  padding: 8px;
  color: #94a3b8;
}

/* Hover submenu */
.submenu a:hover {
  color: #38bdf8;
}

/* Submenu aberto */
.menu-group.open .submenu {
  display: block;
}

/* Menu pai ativo */
.menu-parent.active {
  background-color: #1e293b;
  color: #38bdf8;
  font-weight: bold;
}

/* Submenu ativo */
.submenu a.active {
  background-color: #020617;
  color: #38bdf8;
  font-weight: bold;
}
