/* ═══════════════════════════════════════════════════════════════════
   AITS Purchase Portal — Tutorial System
   All colours use CSS variables from auth.css so light/dark just works.
   ═══════════════════════════════════════════════════════════════════ */

/* Keyframes (also defined inline via JS for safety) */
@keyframes tut_fadein  { from { opacity: 0; }              to { opacity: 1; } }
@keyframes tut_slideup { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes tut_pulse   {
    0%,100% { opacity: 1; }
    50%     { opacity: .7; }
}

/* ── User Guide submenu in sidebar ─────────────────────────────────── */
.nav-guide-parent {
    position: relative;
}

.nav-guide-parent .nav-submenu {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 0 0 0 24px;
    list-style: none;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease, padding 0.28s ease;
}

.nav-guide-parent.open .nav-submenu {
    max-height: 400px;
    padding: 3px 0 3px 24px;
}

.nav-submenu-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 8px;
    border-radius: var(--radius-sm, 6px);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition, .2s), color var(--transition, .2s);
    white-space: nowrap;
    overflow: hidden;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-body, sans-serif);
    line-height: 1.3;
}

.nav-submenu-item:hover {
    background: var(--surface-2);
    color: var(--text-primary);
}

.nav-submenu-emoji {
    font-size: 12px;
    flex-shrink: 0;
    opacity: .8;
}

/* Chevron on the parent guide item */
.nav-guide-chevron {
    margin-left: auto;
    transition: transform .22s ease;
    opacity: .4;
    flex-shrink: 0;
}

.nav-guide-parent.open .nav-guide-chevron {
    transform: rotate(180deg);
}

/* Hide submenu labels when sidebar is collapsed */
.app-layout.sidebar-collapsed .nav-submenu,
.app-layout.sidebar-collapsed .nav-guide-chevron {
    display: none;
}

/* Spotlight ring pulse (box-shadow set via JS to use CSS var) */
#tut-ring {
    animation: tut_pulse 2.4s ease-in-out infinite;
}

/* Toast */
#tut-toast {
    animation: tut_fadein .3s ease;
}
