 :root {
    --cor-primaria: #254460;
    --cor-acento: #254460;
    --cor-borda: #e2e8f0;
    --cor-fundo: #f4f6fb;
    --cor-texto: #1e293b;
    --cor-texto-suave: #64748b;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Montserrat', sans-serif;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: var(--font-body);
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--cor-fundo);
    color: var(--cor-texto);
}

  /* ── TOPBAR ── */
  .topbar {
    /* background: var(--cor-primaria); */
    /* background: var(--cor-sidebar); */
    background: var(--cor-fundo);
    display: flex;
    align-items: center;
    padding: 0 24px;
    height: 56px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

  .logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    border: 2px solid #fff;
    padding: 2px 10px;
    border-radius: 8px;
    background: #25445F;
}

  .search-bar {
    flex: 1;
    max-width: 480px;
    background: rgba(255,255,255,.12);
    /* border: 1px solid rgba(255,255,255,.2); */
    border: 1px solid #254460;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
    /* color: rgba(255,255,255,.7); */
    color: #254460;
    font-size: .875rem;
    height: 36px;
    margin: 0 auto;
}

  .topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
  }

  .btn-criar {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    /* border: 1.5px solid rgba(255,255,255,.5); */
    border: 1px solid #254460;
    /* color: #fff; */
    color: #254460;
    font-size: .75rem;
    /* font-weight: 600; */
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: background .2s;
  }

  .btn-criar:hover { background: rgba(255,255,255,.12); border-color: #fff; }

  .icon-btn {
    width: 36px; 
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.22);
    /* border: none; */
    border: 1px solid #254460;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    position: relative;
    transition: background .2s;
  }

  .notif-dot {
    position: absolute;
    top: 6px; right: 6px;
    width: 8px; height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid var(--cor-primaria);
  }

  .avatar {
    width: 36px; 
    height: 36px;
    border-radius: 50%;
    /* background: var(--cor-acento); */
    background: #5A7EF2;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    cursor: pointer;
  }

  /* ── LAYOUT PRINCIPAL ── */
  .main-layout {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 56px);
  }

  /* ── SIDEBAR ESQUERDA ── */
  .sidebar-left {
    width: 68px;
    background: #fff;
    border-right: 1px solid var(--cor-borda);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    gap: 8px;
  }

  .nav-item {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--cor-texto-suave);
    transition: background .15s, color .15s;
    font-size: 1.2rem;
    text-decoration: none;
  }
  .nav-item:hover { background: #f4f6fb; color: var(--cor-acento); }
  .nav-item.ativo { background: #eff6ff; color: var(--cor-acento); }

  /* ── CONTEÚDO CENTRAL ── */
  .content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
  }

  .content {
    padding: 40px 24px;
    background: #fff;
}

    /* ── CONTEÚDO CENTRAL ── */
  .content {
    overflow-y: auto;
    padding: 0;
}

    /* Breadcrumb */
    .breadcrumb {
    padding: 8px 24px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--cor-texto-suave);
    }
    .breadcrumb a {
    color: var(--cor-acento);
    text-decoration: none;
    font-weight: 600;
    }
    .breadcrumb a:hover {
    text-decoration: underline;
}

/* ── CARD DE MENSAGEM ── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 480px;
    text-align: center;
    animation: fadeUp 0.5s ease both;
}

      .empty-title {
        font-size: 1rem;
        color: var(--cor-texto-suave);
        line-height: 1.5;
      }

  /* ── ÍCONE ── */
  .app-icon {
    width: 180px;
    height: 180px;
    background: var(--cor-primaria);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 48px rgba(26,42,74,.2);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: fadeUp .5s ease both;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
  }
  .app-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 60px rgba(26,42,74,.28);
  }

        .app-icon-text {
        font-size: 3.2rem;
        font-weight: 900;
        color: #fff;
        letter-spacing: -2px;
      }
      .app-icon-text span {
        display: inline-block;
        position: relative;
      }
      /* os dois pontinhos do ü */
      .app-icon-text .dots::before {
        content: '·· ';
        font-size: 1rem;
        letter-spacing: 2px;
        position: absolute;
        top: -8px;
        left: 50%;
        transform: translateX(-50%);
        color: rgba(255, 255, 255, 0.8);
      }

       /* ── PLAYER DE VÍDEO ── */
      /* .video-wrapper {
        width: 100%;
        background: #0f172a;
        position: relative;
        aspect-ratio: 16/9;
        max-height: 520px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .video-wrapper iframe,
      .video-wrapper video {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: contain;
        position: absolute;
      } */
.video-wrapper {
  width: 100%;
  background: #0f172a;
  position: relative;
  aspect-ratio: 16/9;
  max-height: 520px;
  overflow: hidden;
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;  /* ← só adicione isso ao que já tinha */
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;  /* ← tira do fluxo normal */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}


      /* Placeholder quando não há vídeo */
      .video-placeholder {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.5);
        font-size: 1rem;
        gap: 16px;
        background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
      }
      .video-placeholder svg {
        opacity: 0.4;
      }
      .play-overlay {
        position: absolute;
        width: 64px;
        height: 64px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(4px);
        border: 2px solid rgba(255, 255, 255, 0.3);
        pointer-events: none;
      }

            /* ── GRADE DE CURSOS ── */
      .cursos-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
        width: 100%;
        max-width: 900px;
        margin-top: 8px;
      }

      .curso-card {
        background: #fff;
        border: 1px solid var(--cor-borda);
        border-radius: 14px;
        overflow: hidden;
        text-decoration: none;
        color: inherit;
        transition: box-shadow 0.2s, transform 0.2s;
        display: flex;
        flex-direction: column;
        animation: fadeUp 0.5s ease both;
      }

    .curso-card:hover {
        box-shadow: 0 8px 32px rgba(37, 99, 235, 0.12);
        transform: translateY(-3px);
    }

    .curso-thumb {
        height: 140px;
        background: linear-gradient(
          135deg,
          #254460 0%,
          #1e3a6e 60%,
          #2563eb 100%
        ) !important;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    .curso-thumb::after {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(
          ellipse at 70% 40%,
          rgba(255, 255, 255, 0.06) 0%,
          transparent 70%
        );
    }

    .thumb-logo {
        font-size: 1.6rem;
        font-weight: 900;
        color: #fff;
        letter-spacing: -1px;
        border: 2px solid rgba(255, 255, 255, 0.4);
        padding: 4px 12px;
        border-radius: 8px;
        backdrop-filter: blur(4px);
    }

    .curso-body {
        padding: 16px;
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
      }

      .curso-nome {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--cor-texto);
        line-height: 1.3;
      }

      .curso-meta {
        font-size: 0.78rem;
        color: var(--cor-texto-suave);
        display: flex;
        align-items: center;
        gap: 4px;
      }

      .curso-progresso-wrap {
        margin-top: auto;
      }

      .curso-progresso-bar-bg {
        height: 4px;
        background: var(--cor-borda);
        border-radius: 4px;
        overflow: hidden;
        margin-bottom: 4px;
      }

      .curso-progresso-bar {
        height: 100%;
        background: var(--cor-acento) !important;
        border-radius: 4px;
      }

      .curso-progresso-label {
        font-size: 0.72rem;
        color: var(--cor-texto-suave);
      }

      .curso-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: var(--cor-acento) !important;
        color: #fff;
        font-size: 0.8rem;
        font-weight: 600;
        padding: 8px 14px;
        border-radius: 8px;
        margin-top: 8px;
        transition: background 0.2s;
        width: fit-content;
      }
      .curso-btn:hover {
        background: #1d4ed8;
      }

      .voltarProximo {
        font-size: 12px !important;
         margin-top: -20px;
    }

    /* Section header */
      .section-header {
        width: 100%;
        max-width: 900px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 4px;
      }
      .section-title {
        font-size: 1.1rem;
        font-weight: 800;
        color: var(--cor-texto);
      }
      .section-link {
        font-size: 0.82rem;
        color: var(--cor-acento);
        text-decoration: none;
        font-weight: 600;
      }
      .section-link:hover {
        text-decoration: underline;
      }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* esse é do page1 */
    @keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

        /* ── INFO BOX ── */
      .info-section {
        padding: 0 24px;
      }

      .info-card {
        background: #fff;
        border: 1px solid var(--cor-borda);
        border-radius: 12px;
        padding: 0 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        flex-wrap: wrap;
      }

  .icon-label {
    font-size: 3.4rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -2px;
    line-height: 1;
    user-select: none;
  }

  /* ── LEGENDA ── */
  .caption {
    font-size: .6rem;
    color: var(--cor-texto-suave);
    text-align: center;
    max-width: 340px;
    line-height: 1.5;
    animation: fadeUp .5s ease .1s both;
  }


      /* ─── EDITE O TÍTULO DA AULA AQUI ─── */
      .aula-titulo {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--cor-texto);
      }

      .btn-concluido {
        background: var(--cor-acento) !important;
        color: #fff;
        border: none;
        padding: 10px 22px;
        border-radius: 8px;
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        transition: background 0.2s, transform 0.1s;
        white-space: nowrap;
      }
      .btn-concluido:hover {
        background: #1d4ed8;
        transform: translateY(-1px);
      }
      .btn-concluido.done {
        background: #16a34a;
      }

      /* ── COMENTÁRIOS ── */
      .comments-section {
        padding: 0 24px 32px;
      }

      .comments-header {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 700;
        font-size: 1rem;
        margin-bottom: 16px;
        color: var(--cor-texto);
      }

      .comment-input-area {
        background: #fff;
        border: 1px solid var(--cor-borda);
        border-radius: 12px;
        padding: 12px 16px;
        display: flex;
        align-items: center;
        gap: 12px;
      }

      .comment-input-area input {
        flex: 1;
        border: none;
        outline: none;
        font-size: 0.9rem;
        color: var(--cor-texto);
        background: transparent;
      }
      .comment-input-area input::placeholder {
        color: var(--cor-texto-suave);
      }

      .send-btn {
        background: none;
        border: none;
        cursor: pointer;
        color: var(--cor-acento);
        display: flex;
        align-items: center;
        padding: 4px;
        border-radius: 6px;
        transition: background 0.2s;
      }
      .send-btn:hover {
        background: #eff6ff;
      }

      /* ── SIDEBAR ── */
      .sidebar {
        width: 300px;
        min-width: 280px;
        background: var(--cor-sidebar);
        border-left: 1px solid var(--cor-borda);
        overflow-y: auto;
        padding: 20px 0;
      }

      /* ─── EDITE O TÍTULO DO CURSO AQUI ─── */
      .sidebar-titulo {
        font-size: 1rem;
        font-weight: 800;
        color: var(--cor-texto);
        padding: 0 20px 4px;
      }

      .sidebar-duracao-total {
        font-size: 0.78rem;
        color: var(--cor-texto-suave);
        padding: 0 20px 16px;
        display: flex;
        align-items: center;
        gap: 4px;
      }

      /* ── MÓDULOS ── */
      .modulo {
        border-top: 1px solid var(--cor-borda);
        padding-top: 4px;
        margin-bottom: 4px;
      }

      .modulo-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 20px 8px;
        cursor: pointer;
        user-select: none;
      }

      .modulo-info {
        flex: 1;
      }

      /* ─── EDITE OS NOMES DOS MÓDULOS AQUI ─── */
      .modulo-nome {
        font-size: 0.88rem;
        font-weight: 700;
        color: var(--cor-texto);
        margin-bottom: 2px;
      }

      .modulo-duracao {
        font-size: 0.75rem;
        color: var(--cor-texto-suave);
        display: flex;
        align-items: center;
        gap: 3px;
      }

      .modulo-progresso {
        height: 3px;
        background: #e2e8f0;
        border-radius: 2px;
        margin: 0 20px 4px;
        overflow: hidden;
      }

      .modulo-progresso-bar {
        height: 100%;
        background: var(--cor-progresso);
        border-radius: 2px;
        transition: width 0.3s;
      }

      .chevron {
        font-size: 0.75rem;
        color: var(--cor-texto-suave);
        transition: transform 0.2s;
      }
      .modulo.open .chevron {
        transform: rotate(180deg);
      }

      /* ── LISTA DE AULAS ── */
      .aulas-lista {
        display: none;
        flex-direction: column;
      }
      .modulo.open .aulas-lista {
        display: flex;
      }

      .aula-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 20px;
        cursor: pointer;
        transition: background 0.15s;
        text-decoration: none;
        color: inherit;
      }
      .aula-item:hover {
        background: #f1f5f9;
      }
      .aula-item.ativa {
        background: #eff6ff;
      }

      .aula-badge {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        background: var(--cor-fundo);
        border: 1px solid var(--cor-borda);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        font-weight: 700;
        color: var(--cor-texto-suave);
        flex-shrink: 0;
      }
      .aula-item.ativa .aula-badge {
        background: var(--cor-badge);
        border-color: var(--cor-badge);
        color: #fff;
      }

      .aula-info {
        flex: 1;
        min-width: 0;
      }

      /* ─── EDITE OS NOMES DAS AULAS AQUI ─── */
      .aula-nome {
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--cor-texto);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .aula-item.ativa .aula-nome {
        color: var(--cor-acento);
      }

      .aula-dur {
        font-size: 0.72rem;
        color: var(--cor-texto-suave);
        display: flex;
        align-items: center;
        gap: 3px;
        margin-top: 1px;
      }

      /* ── RESPONSIVO ── */
      @media (max-width: 768px) {
        .sidebar {
          display: none;
        }
        .video-wrapper {
          max-height: 240px;
        }
      }