/* ── Fawkes LMS — Student CSS ──────────────────────────────────────── */

:root {
    --fs-primary:   #4f46e5;
    --fs-primary-d: #4338ca;
    --fs-success:   #10b981;
    --fs-warning:   #f59e0b;
    --fs-danger:    #ef4444;
    --fs-bg:        #f8f9fc;
    --fs-card:      #ffffff;
    --fs-border:    #e2e8f0;
    --fs-text:      #1e293b;
    --fs-muted:     #64748b;
    --fs-radius:    14px;
    --fs-shadow:    0 2px 16px rgba(0,0,0,.07);
}

*, *::before, *::after { box-sizing: border-box; }

.fawkes-student-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--fs-text);
}

/* ── Dashboard Header ────────────────────────────────────────────── */
.fawkes-student-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: var(--fs-radius);
    padding: 28px 32px;
    color: #fff;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.student-greeting { display: flex; align-items: center; gap: 16px; }
.student-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(255,255,255,.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 700; flex-shrink: 0;
}
.student-greeting h1 { margin: 0 0 4px; font-size: 22px; font-weight: 700; }
.student-greeting p  { margin: 0; font-size: 14px; opacity: .85; }

.student-stats { display: flex; gap: 16px; }
.stat-pill {
    background: rgba(255,255,255,.15);
    border-radius: 10px; padding: 12px 20px; text-align: center;
    backdrop-filter: blur(4px);
}
.stat-pill strong { display: block; font-size: 24px; font-weight: 700; }
.stat-pill span   { font-size: 12px; opacity: .8; }

/* ── Continue Card ────────────────────────────────────────────────── */
.fawkes-continue-card {
    background: var(--fs-card);
    border: 2px solid var(--fs-primary);
    border-radius: var(--fs-radius);
    padding: 18px 24px;
    margin-bottom: 24px;
    box-shadow: var(--fs-shadow);
}
.continue-label { font-size: 11px; font-weight: 700; color: var(--fs-primary); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 10px; }
.continue-info { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.continue-course { font-size: 12px; color: var(--fs-muted); margin-bottom: 4px; }
.continue-lesson { font-size: 16px; font-weight: 600; color: var(--fs-text); }
.fawkes-btn-continue {
    background: var(--fs-primary); color: #fff; padding: 10px 24px;
    border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 600;
    white-space: nowrap; transition: background .15s;
}
.fawkes-btn-continue:hover { background: var(--fs-primary-d); color: #fff; }

/* ── Section ──────────────────────────────────────────────────────── */
.fawkes-section { margin-bottom: 32px; }
.fawkes-section-title { font-size: 18px; font-weight: 700; color: var(--fs-text); margin: 0 0 16px; }

/* ── Course Grid (aluno) ─────────────────────────────────────────── */
.fawkes-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.fawkes-course-card-student {
    background: var(--fs-card); border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius); overflow: hidden;
    box-shadow: var(--fs-shadow); transition: transform .15s, box-shadow .15s;
}
.fawkes-course-card-student:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.course-card-cover-student { position: relative; aspect-ratio: 16/9; background: #f1f5f9; overflow: hidden; }
.course-card-cover-student img { width:100%; height:100%; object-fit:cover; }
.course-no-cover { display:flex; align-items:center; justify-content:center; height:100%; font-size:40px; color:#cbd5e1; }
.course-status-badge {
    position: absolute; bottom: 8px; left: 8px;
    font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 20px;
}
.course-status-badge.concluido    { background: #d1fae5; color: #065f46; }
.course-status-badge.em_andamento { background: #dbeafe; color: #1e40af; }
.course-status-badge.nao_iniciado { background: #f1f5f9; color: #475569; }

.course-card-body-student { padding: 16px; }
.course-card-body-student h3 { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--fs-text); line-height: 1.3; }

.course-progress-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.course-progress-bar  { flex: 1; height: 6px; background: #e2e8f0; border-radius: 20px; overflow: hidden; }
.course-progress-fill { height: 100%; background: var(--fs-primary); border-radius: 20px; transition: width .5s; }
.course-progress-pct  { font-size: 12px; font-weight: 600; color: var(--fs-primary); white-space: nowrap; }

.fawkes-btn-course {
    display: block; text-align: center; background: var(--fs-primary); color: #fff !important;
    padding: 10px; border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 600;
    transition: background .15s;
}
.fawkes-btn-course:hover { background: var(--fs-primary-d); }

/* ── Certs ────────────────────────────────────────────────────────── */
.fawkes-certs-list { display: flex; flex-direction: column; gap: 10px; }
.fawkes-cert-item {
    display: flex; align-items: center; gap: 12px;
    background: var(--fs-card); border: 1px solid var(--fs-border);
    border-radius: 10px; padding: 14px 16px; box-shadow: var(--fs-shadow);
}
.cert-icon { font-size: 24px; }
.cert-info { flex: 1; }
.cert-info strong { display: block; font-size: 14px; font-weight: 600; }
.cert-info span   { font-size: 12px; color: var(--fs-muted); }

/* ── Trilha do Curso ──────────────────────────────────────────────── */
.fawkes-course-header {
    display: grid; grid-template-columns: 280px 1fr; gap: 24px;
    background: var(--fs-card); border-radius: var(--fs-radius);
    overflow: hidden; box-shadow: var(--fs-shadow); margin-bottom: 24px;
}
.course-header-cover img { width:100%; height:100%; object-fit:cover; display:block; }
.course-header-info { padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.fawkes-back-link { font-size: 13px; color: var(--fs-primary); text-decoration: none; }
.course-header-info h1 { margin: 0; font-size: 22px; font-weight: 700; }
.course-header-info p  { margin: 0; color: var(--fs-muted); font-size: 14px; }
.course-header-meta { display: flex; gap: 16px; font-size: 13px; color: var(--fs-muted); flex-wrap: wrap; }
.course-header-progress { background: #e2e8f0; border-radius: 20px; height: 8px; overflow: hidden; }
.course-header-progress > div { transition: width .5s; }

.fawkes-trail { display: flex; flex-direction: column; gap: 12px; }
.fawkes-trail-module { background: var(--fs-card); border: 1px solid var(--fs-border); border-radius: var(--fs-radius); overflow: hidden; box-shadow: var(--fs-shadow); }
.trail-module-header { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: #f8f9fc; border-bottom: 1px solid var(--fs-border); }
.trail-module-icon { font-size: 22px; }
.trail-module-info { flex: 1; }
.trail-module-num  { font-size: 11px; color: var(--fs-muted); text-transform: uppercase; letter-spacing: .5px; }
.trail-module-info h3 { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.trail-module-progress { text-align: right; }
.trail-module-progress span { font-size: 13px; font-weight: 600; color: var(--fs-primary); display: block; margin-bottom: 4px; }
.trail-mini-bar { width: 80px; height: 5px; background: #e2e8f0; border-radius: 20px; overflow: hidden; }
.trail-mini-bar div { height: 100%; background: var(--fs-primary); border-radius: 20px; }

.trail-lessons { padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; }
.trail-lesson-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px;
    border-radius: 10px; border: 1px solid transparent; transition: all .15s;
}
.trail-lesson-item.disponivel { cursor: pointer; }
.trail-lesson-item.disponivel:hover { background: #f5f3ff; border-color: var(--fs-primary); }
.trail-lesson-item.concluida  { background: #f0fdf4; }
.trail-lesson-item.bloqueada  { opacity: .5; }

.trail-lesson-icon  { font-size: 18px; flex-shrink: 0; }
.trail-lesson-info  { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.trail-lesson-num   { font-size: 10px; color: var(--fs-muted); text-transform: uppercase; }
.trail-lesson-title { font-size: 13px; font-weight: 500; }
.trail-lesson-dur   { font-size: 11px; color: var(--fs-muted); }

.trail-lesson-btn {
    font-size: 12px; font-weight: 600; color: var(--fs-primary); text-decoration: none;
    padding: 5px 12px; border: 1px solid var(--fs-primary); border-radius: 6px;
    white-space: nowrap; transition: all .15s;
}
.trail-lesson-btn:hover { background: var(--fs-primary); color: #fff; }
.trail-lesson-btn.revisar { color: var(--fs-muted); border-color: var(--fs-border); font-size: 11px; }
.trail-lesson-locked { font-size: 11px; color: var(--fs-muted); }

/* ── Lesson Page ─────────────────────────────────────────────────── */
.fawkes-lesson-page { max-width: 1200px; margin: 0 auto; padding: 16px; }
.fawkes-lesson-breadcrumb { font-size: 13px; color: var(--fs-muted); margin-bottom: 16px; }
.fawkes-lesson-breadcrumb a { color: var(--fs-primary); text-decoration: none; }
.fawkes-lesson-breadcrumb span { margin: 0 6px; }

.fawkes-lesson-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }

/* Video */
.fawkes-video-container { background: #000; border-radius: 12px; overflow: hidden; position: relative; margin-bottom: 16px; }
.fawkes-vimeo-wrap,
.fawkes-youtube-wrap { position: relative; padding-bottom: 56.25%; height: 0; }
.fawkes-vimeo-wrap iframe,
.fawkes-youtube-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

.fawkes-video-progress-bar { height: 4px; background: rgba(255,255,255,.2); }
#fawkes-video-progress-fill { height: 100%; background: var(--fs-primary); transition: width 1s linear; }

.fawkes-lesson-complete-badge {
    position: absolute; top: 12px; right: 12px;
    background: var(--fs-success); color: #fff;
    padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
    animation: fadeIn .4s ease;
}
@keyframes fadeIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }

/* Lesson title */
.fawkes-lesson-title-area { margin-bottom: 16px; }
.fawkes-lesson-title-area h1 { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.lesson-title-meta { display: flex; gap: 14px; font-size: 13px; color: var(--fs-muted); flex-wrap: wrap; }
.lesson-done-tag { color: var(--fs-success); font-weight: 600; }

/* Lesson content */
.fawkes-lesson-content {
    background: var(--fs-card); border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius); padding: 24px;
    font-size: 15px; line-height: 1.8; color: var(--fs-text);
    margin-bottom: 16px;
}
.fawkes-lesson-content h2,
.fawkes-lesson-content h3 { color: var(--fs-text); margin-top: 24px; }
.fawkes-lesson-content ul,
.fawkes-lesson-content ol { padding-left: 20px; }
.fawkes-lesson-content img { max-width: 100%; border-radius: 6px; margin: .6em auto; display: block; }
.fawkes-lesson-content hr  { border: none; border-top: 2px solid var(--fs-border); margin: 1.2em 0; }

/* Tabelas no conteúdo da aula (visão do aluno) */
.fawkes-lesson-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
    font-size: 14px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--fs-border);
}
.fawkes-lesson-content table th,
.fawkes-lesson-content table td {
    border: 1px solid var(--fs-border);
    padding: 9px 13px;
    text-align: left;
    vertical-align: top;
}
.fawkes-lesson-content table th {
    background: #f1f5f9;
    font-weight: 700;
    color: var(--fs-text);
}
.fawkes-lesson-content table tr:hover td { background: #fafbff; }
.fawkes-lesson-content table.frt-striped tr:nth-child(even) td { background: #f8fafc; }

/* Materials */
.fawkes-materials { background: var(--fs-card); border: 1px solid var(--fs-border); border-radius: var(--fs-radius); padding: 20px; margin-bottom: 16px; }
.fawkes-materials h3 { margin: 0 0 12px; font-size: 15px; }
.materials-list { display: flex; flex-direction: column; gap: 8px; }
.material-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #f8f9fc; border-radius: 8px; text-decoration: none; color: var(--fs-text); transition: background .15s; }
.material-item:hover { background: #f5f3ff; }
.material-item span:first-child { font-size: 18px; }
.material-item span:nth-child(2) { flex: 1; font-size: 13px; font-weight: 500; }
.material-dl { font-size: 16px; color: var(--fs-primary); }

/* Quiz */
.fawkes-quiz-section { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--fs-radius); padding: 20px; margin-bottom: 16px; }
.fawkes-quiz-section h3 { margin: 0 0 10px; font-size: 15px; }
.quiz-info { display: flex; gap: 16px; font-size: 13px; color: var(--fs-muted); }

/* Nav */
.fawkes-lesson-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.lesson-nav-btn {
    flex: 1; padding: 12px 16px; border-radius: 10px; text-decoration: none;
    font-size: 13px; font-weight: 500; border: 1px solid var(--fs-border);
    background: var(--fs-card); color: var(--fs-text); transition: all .15s;
    max-width: 48%;
}
.lesson-nav-btn.prev { text-align: left; }
.lesson-nav-btn.next { text-align: right; background: var(--fs-primary); color: #fff; border-color: var(--fs-primary); }
.lesson-nav-btn.next.locked { background: #e2e8f0; color: var(--fs-muted); border-color: var(--fs-border); cursor: not-allowed; }
.lesson-nav-btn:hover:not(.locked) { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }

/* ── Tutor IA ─────────────────────────────────────────────────────── */
.fawkes-tutor-panel {
    background: var(--fs-card); border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius); overflow: hidden;
    box-shadow: var(--fs-shadow); margin-bottom: 16px;
    position: sticky; top: 20px;
}
.tutor-header {
    display: flex; align-items: center; gap: 10px; padding: 14px 16px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff;
}
.tutor-avatar { font-size: 24px; }
.tutor-header strong { display: block; font-size: 14px; font-weight: 700; }
.tutor-header span   { font-size: 11px; opacity: .8; }
.tutor-toggle { margin-left: auto; background: none; border: none; color: rgba(255,255,255,.7); cursor: pointer; font-size: 16px; padding: 0; }

.tutor-chat-body { display: flex; flex-direction: column; height: 420px; }
.tutor-chat-messages { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }

.tutor-msg { display: flex; }
.tutor-msg.user      { justify-content: flex-end; }
.tutor-msg.assistant { justify-content: flex-start; }

.msg-bubble {
    max-width: 85%; padding: 10px 14px; border-radius: 14px;
    font-size: 13px; line-height: 1.5;
}
.tutor-msg.user .msg-bubble      { background: var(--fs-primary); color: #fff; border-bottom-right-radius: 4px; }
.tutor-msg.assistant .msg-bubble { background: #f1f5f9; color: var(--fs-text); border-bottom-left-radius: 4px; }

.tutor-typing { padding: 10px 14px; display: flex; gap: 4px; align-items: center; }
.tutor-typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--fs-primary); opacity: .4; animation: typing .8s infinite; }
.tutor-typing span:nth-child(2) { animation-delay: .15s; }
.tutor-typing span:nth-child(3) { animation-delay: .30s; }
@keyframes typing { 0%,80%,100%{ opacity:.4; transform:scale(.8); } 40%{ opacity:1; transform:scale(1); } }

.tutor-chat-input { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--fs-border); }
.tutor-chat-input textarea {
    flex: 1; border: 1px solid var(--fs-border); border-radius: 10px;
    padding: 8px 12px; font-size: 13px; resize: none; font-family: inherit;
    transition: border-color .15s;
}
.tutor-chat-input textarea:focus { outline: none; border-color: var(--fs-primary); }
#tutor-send-btn {
    width: 38px; height: 38px; border-radius: 10px; background: var(--fs-primary);
    border: none; color: #fff; cursor: pointer; display: flex;
    align-items: center; justify-content: center; flex-shrink: 0;
    transition: background .15s;
}
#tutor-send-btn:hover { background: var(--fs-primary-d); }
#tutor-send-btn:disabled { opacity: .5; cursor: not-allowed; }
.send-icon { font-size: 14px; }

/* ── Sidebar Trail ────────────────────────────────────────────────── */
.fawkes-sidebar-trail { background: var(--fs-card); border: 1px solid var(--fs-border); border-radius: var(--fs-radius); padding: 16px; }
.fawkes-sidebar-trail h4 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--fs-text); }
.sidebar-lessons-list { display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow-y: auto; }
.sidebar-lesson-item {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px;
    border-radius: 8px; font-size: 12px; text-decoration: none; color: var(--fs-text);
    transition: background .1s;
}
.sidebar-lesson-item:hover:not(.locked)  { background: #f5f3ff; }
.sidebar-lesson-item.active { background: #ede9fe; color: var(--fs-primary); font-weight: 600; }
.sidebar-lesson-item.done   { color: var(--fs-muted); }
.sidebar-lesson-item.locked { opacity: .4; cursor: not-allowed; }
.sidebar-lesson-title { flex: 1; line-height: 1.3; }
.sidebar-all-modules { display: block; text-align: center; margin-top: 12px; font-size: 12px; color: var(--fs-primary); text-decoration: none; padding: 8px; border-top: 1px solid var(--fs-border); }

/* ── Buttons ──────────────────────────────────────────────────────── */
.fawkes-btn-primary-sm {
    display: inline-block; background: var(--fs-primary); color: #fff;
    padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
    text-decoration: none; transition: background .15s;
}
.fawkes-btn-primary-sm:hover { background: var(--fs-primary-d); color: #fff; }

/* ── Misc ─────────────────────────────────────────────────────────── */
.fawkes-empty { text-align: center; padding: 40px; color: var(--fs-muted); }
.fawkes-empty span { font-size: 48px; display: block; margin-bottom: 12px; }
.fawkes-access-denied { background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: 20px; color: #991b1b; text-align: center; }
.fawkes-login-required { background: #f5f3ff; border: 1px solid #c4b5fd; border-radius: 10px; padding: 20px; text-align: center; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .fawkes-lesson-layout { grid-template-columns: 1fr; }
    .fawkes-course-header { grid-template-columns: 1fr; }
    .fawkes-tutor-panel   { position: static; }
    .fawkes-student-header { flex-direction: column; }
    .student-stats { width: 100%; justify-content: space-between; }
}

@keyframes pulse { 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.03); } }

/* ── Histórico de avaliações ──────────────────────────────────────────────── */
.fawkes-quiz-history { overflow-x: auto; }

.fawkes-history-table {
    width: 100%; border-collapse: collapse;
    font-size: 13px; background: #fff;
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.fawkes-history-table thead th {
    background: #f8fafc; color: #64748b;
    font-size: 11px; text-transform: uppercase;
    letter-spacing: .5px; font-weight: 700;
    padding: 10px 14px; text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.fawkes-history-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background .15s;
}
.fawkes-history-table tbody tr:last-child { border-bottom: none; }
.fawkes-history-table tbody tr:hover { background: #f8fafc; }
.fawkes-history-table td { padding: 10px 14px; color: #334155; vertical-align: middle; }

.hist-aprovado .hist-nota { color: #16a34a; font-weight: 700; }
.hist-reprovado .hist-nota { color: #dc2626; font-weight: 700; }

.hist-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 700; border-radius: 20px;
    padding: 2px 10px;
}
.hist-badge-ok   { background: #dcfce7; color: #166534; }
.hist-badge-fail { background: #fef2f2; color: #991b1b; }

.hist-quiz-link { color: #4f46e5; text-decoration: none; font-weight: 500; }
.hist-quiz-link:hover { text-decoration: underline; }

.hist-curso { color: #64748b; max-width: 180px; }
.hist-data  { color: #94a3b8; white-space: nowrap; }

@media (max-width: 600px) {
    .hist-curso, .hist-data { display: none; }
}

/* ── Quiz section na aula ─────────────────────────────────────────────────── */
.fawkes-quiz-section {
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 12px; padding: 20px; margin-top: 24px;
}
.fawkes-quiz-section h3 { margin: 0 0 12px; font-size: 15px; color: #1e293b; }
.fawkes-quiz-section.quiz-aprovado { background: #f0fdf4; border-color: #bbf7d0; }

.quiz-best-result {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: 10px; margin-bottom: 8px;
}
.quiz-result-ok   { background: #dcfce7; }
.quiz-result-fail { background: #fef2f2; }
.quiz-result-icon { font-size: 22px; flex-shrink: 0; }
.quiz-best-result > div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.quiz-best-result strong { font-size: 14px; color: #1e293b; }
.quiz-best-result span { color: #64748b; }

.quiz-info { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #475569; margin-bottom: 4px; }
.quiz-info strong { color: #1e293b; }

/* ── Aula ao vivo ─────────────────────────────────────────────────────────── */
.fawkes-live-container { margin-bottom: 24px; }
.fawkes-live-card {
    display: flex; gap: 20px; align-items: flex-start;
    background: #0f172a; border-radius: 14px; padding: 28px 24px;
    color: #fff;
}
.fawkes-live-icon { font-size: 40px; flex-shrink: 0; line-height: 1; }
.fawkes-live-info { flex: 1; min-width: 0; }
.fawkes-live-title { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: #fff; }
.fawkes-live-datetime { font-size: 14px; color: #94a3b8; margin: 0 0 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fawkes-live-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.fawkes-live-badge.em-breve  { background: #1e3a5f; color: #60a5fa; }
.fawkes-live-badge.ao-vivo   { background: #dc2626; color: #fff; animation: pulse 1.5s infinite; }
.fawkes-live-badge.encerrada { background: #374151; color: #9ca3af; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.6} }
.fawkes-btn-live {
    display: inline-flex; align-items: center; gap: 8px;
    background: #4f46e5; color: #fff; text-decoration: none;
    font-size: 15px; font-weight: 600; padding: 12px 24px;
    border-radius: 10px; transition: background .2s;
}
.fawkes-btn-live:hover { background: #4338ca; color: #fff; }
.fawkes-live-pending { font-size: 13px; color: #64748b; margin: 0; }

/* ── Prova na trilha do curso ─────────────────────────────────────────────── */
.trail-quiz-item {
    border-left: 3px solid #f59e0b;
    background: #fffbeb !important;
}
.trail-quiz-item.concluida {
    border-left-color: #16a34a;
    background: #f0fdf4 !important;
}
.trail-quiz-item.bloqueada {
    border-left-color: #e2e8f0;
    opacity: .7;
}

/* ── Acessos expirados no dashboard ──────────────────────────────────────── */
.fawkes-expired-list { display: flex; flex-direction: column; gap: 10px; }
.fawkes-expired-item {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border: 1px solid #fecaca; border-left: 4px solid #ef4444;
    border-radius: 12px; padding: 12px 16px;
}
.expired-cover {
    position: relative; width: 72px; height: 45px; border-radius: 6px;
    overflow: hidden; flex-shrink: 0; background: #f1f5f9;
}
.expired-cover img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(60%); opacity: .7; }
.expired-no-cover { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.expired-overlay {
    position: absolute; inset: 0; background: rgba(239,68,68,.55);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .05em;
}
.expired-info { flex: 1; min-width: 0; }
.expired-info strong { display: block; font-size: 14px; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.expired-info span  { font-size: 12px; color: #ef4444; }
.expired-actions { flex-shrink: 0; }

/* ── Botão Minha Conta no header ─────────────────────────────────────────── */
.student-header-right {
    display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.fawkes-minha-conta-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.18); color: #fff;
    border: 1.5px solid rgba(255,255,255,.45);
    border-radius: 8px; padding: 8px 18px;
    font-size: 13px; font-weight: 600; text-decoration: none;
    backdrop-filter: blur(4px); transition: background .15s, border-color .15s;
    white-space: nowrap;
}
.fawkes-minha-conta-btn:hover {
    background: rgba(255,255,255,.30); color: #fff; border-color: rgba(255,255,255,.7);
}
@media (max-width: 768px) {
    .student-header-right { align-items: stretch; width: 100%; }
    .fawkes-minha-conta-btn { justify-content: center; }
}

/* ── Login Personalizado Fawkes ──────────────────────────────────────────── */
.fawkes-login-wrap {
    max-width: 420px; margin: 48px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.fawkes-login-box {
    background: #fff; border-radius: 18px;
    box-shadow: 0 4px 32px rgba(79,70,229,.13);
    padding: 40px 36px; border: 1px solid #e2e8f0;
}
.fawkes-login-logo {
    text-align: center; margin-bottom: 28px;
}
.fawkes-login-logo h2 {
    font-size: 22px; font-weight: 800; color: #1e293b; margin: 0 0 4px;
}
.fawkes-login-logo p {
    font-size: 14px; color: #64748b; margin: 0;
}
.fawkes-login-field { margin-bottom: 18px; }
.fawkes-login-field label {
    display: block; font-size: 13px; font-weight: 600;
    color: #374151; margin-bottom: 6px;
}
.fawkes-login-field input {
    width: 100%; padding: 11px 14px; border: 1.5px solid #e2e8f0;
    border-radius: 9px; font-size: 14px; color: #1e293b;
    transition: border-color .15s, box-shadow .15s; outline: none;
    background: #f8f9fc;
}
.fawkes-login-field input:focus {
    border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,.12);
    background: #fff;
}
.fawkes-login-remember {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: #64748b; margin-bottom: 20px;
}
.fawkes-login-remember input { width: auto; }
.fawkes-login-submit {
    width: 100%; padding: 13px; background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff; border: none; border-radius: 9px; font-size: 15px;
    font-weight: 700; cursor: pointer; transition: opacity .15s;
}
.fawkes-login-submit:hover { opacity: .9; }
.fawkes-login-links {
    display: flex; justify-content: space-between;
    margin-top: 18px; font-size: 13px;
}
.fawkes-login-links a { color: #4f46e5; text-decoration: none; }
.fawkes-login-links a:hover { text-decoration: underline; }
.fawkes-login-error {
    background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px;
    padding: 10px 14px; color: #991b1b; font-size: 13px;
    margin-bottom: 16px; display: none;
}
.fawkes-login-error.visible { display: block; }

/* ── Cards de sugestão "Você também pode gostar" ── */
.fawkes-course-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    transition: box-shadow .2s, transform .2s;
    overflow: hidden;
}
.fawkes-course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.09);
}
.fawkes-course-card .course-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #f1f5f9;
    object-fit: cover;
}
.fawkes-course-card .course-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.fawkes-course-card .course-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.fawkes-course-card .course-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--fs-text, #1e293b);
    line-height: 1.35;
}
.fawkes-course-card .course-desc {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fawkes-btn-outline {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
}
.fawkes-btn-outline:hover { text-decoration: underline; }

/* ── Slides Viewer (Apresentação PDF/PPT) ────────────────────────────────── */
.fawkes-slides-viewer {
    background: #0f172a;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 24px;
}
.fawkes-slides-pdf-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1e293b;
    min-height: 200px;
}
#fawkes-pdf-canvas {
    display: block;
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 24px rgba(0,0,0,.4);
}
.fawkes-slides-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1rem;
    background: #1e293b;
}
.fawkes-slides-gviewer-wrap {
    position: relative;
    width: 100%;
    padding-top: 60%; /* aspect ratio 5:3 */
}
.fawkes-slides-gviewer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.fawkes-slides-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 14px 20px;
    background: #1e293b;
    border-top: 1px solid rgba(255,255,255,.07);
}
.fawkes-slides-btn {
    background: #334155;
    color: #e2e8f0;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: .9rem;
    cursor: pointer;
    transition: background .15s;
}
.fawkes-slides-btn:hover:not(:disabled) { background: #475569; }
.fawkes-slides-btn:disabled { opacity: .35; cursor: default; }
.fawkes-slides-counter {
    color: #94a3b8;
    font-size: .9rem;
    min-width: 120px;
    text-align: center;
}
.fawkes-slides-counter strong { color: #e2e8f0; }
.fawkes-slides-download {
    display: flex;
    justify-content: flex-end;
    padding: 10px 16px;
    background: #0f172a;
}
.fawkes-slides-dl-btn {
    font-size: .8rem;
    color: #64748b;
    text-decoration: none;
    transition: color .15s;
}
.fawkes-slides-dl-btn:hover { color: #94a3b8; }
.fawkes-slides-conclude-wrap {
    display: flex;
    justify-content: center;
    padding: 16px;
    background: #0f172a;
    border-top: 1px solid rgba(255,255,255,.07);
}
.fawkes-mark-done-btn {
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s;
}
.fawkes-mark-done-btn:hover:not(:disabled) { background: #4f46e5; transform: translateY(-1px); }
.fawkes-mark-done-btn:disabled { opacity: .6; cursor: default; }

/* ── Catálogo — botões reforçados contra override do WooCommerce/tema ──────── */
.fawkes-btn-course,
.fawkes-btn-course:link,
.fawkes-btn-course:visited,
.fawkes-btn-course:hover,
a.fawkes-btn-course,
a.fawkes-btn-course:link,
a.fawkes-btn-course:visited {
    display: block;
    text-align: center;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    border: none;
    cursor: pointer;
    transition: background .15s, opacity .15s;
    box-sizing: border-box;
}

/* Botão primário (Comprar / Continuar / padrão) */
.fawkes-btn-course:not([style*="background"]),
.fawkes-btn-course.btn-primary {
    background: #4f46e5 !important;
    color: #ffffff !important;
}

/* Botão "Ver Detalhes" — cinza claro */
.fawkes-btn-course.btn-secondary,
.fawkes-btn-course[style*="#f1f5f9"] {
    background: #f1f5f9 !important;
    color: #475569 !important;
}

/* Botão "Grátis" — verde */
.fawkes-btn-course.btn-free,
.fawkes-btn-course[style*="#10b981"] {
    background: #10b981 !important;
    color: #ffffff !important;
}

/* Botão "Comprar" WooCommerce — garante cor independente do tema */
a.fawkes-btn-course.add_to_cart_button,
a.fawkes-btn-course.ajax_add_to_cart {
    background: #4f46e5 !important;
    color: #ffffff !important;
}
a.fawkes-btn-course.add_to_cart_button:hover,
a.fawkes-btn-course.ajax_add_to_cart:hover {
    background: #4338ca !important;
    color: #ffffff !important;
    opacity: 1;
}

/* Botão "Matriculado / Continuar" — roxo mais vibrante */
.fawkes-btn-course.btn-enrolled {
    background: #4f46e5 !important;
    color: #ffffff !important;
}
.fawkes-btn-course:hover { opacity: .88; }
