/* =================================================================
   NEXT MODULE BAR
   Persistent "what's next" footer appended to #moduleContainer by
   js/next-module-bar.js on every navigation.
   ================================================================= */

.next-module-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.next-module-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: auto;
}

.next-module-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.next-module-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.next-module-btn:active {
    transform: scale(0.98);
}

/* The lesson test is the milestone at the end of a lesson, so it reads as a
   different kind of step rather than just the next activity. */
.next-module-btn--test {
    background: var(--success);
    border-color: var(--success);
}

.next-module-btn--test:hover {
    background: #0d9668;
    border-color: #0d9668;
}

/* Nothing left to do this lesson — a statement, not a control. */
.next-module-bar--done {
    justify-content: center;
    background: var(--success-light);
    border-color: var(--success);
}

.next-module-bar--done .next-module-label {
    margin-right: 0;
    color: var(--success);
}

@media (max-width: 600px) {
    .next-module-bar {
        justify-content: stretch;
        gap: 10px;
    }

    .next-module-label {
        margin-right: 0;
        width: 100%;
        font-size: 14px;
    }

    .next-module-btn {
        width: 100%;
        justify-content: center;
    }
}
