/* Interactive agent training guide styles */
#agent-guide-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

#agent-guide-overlay.agent-guide-visible {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.agent-guide-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(1px);
    pointer-events: auto;
}

.agent-guide-highlight {
    position: fixed;
    border-radius: 14px;
    border: 2px solid #ffffff;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.25);
    transition: all 0.25s ease;
    pointer-events: none;
}

.agent-guide-highlight.agent-guide-hidden {
    opacity: 0;
}

.agent-guide-card {
    position: fixed;
    width: min(400px, 90vw);
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: auto;
    color: #1f2937;
}

.agent-guide-card h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.agent-guide-card p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.agent-guide-card ul {
    padding-left: 1.25rem;
    margin: 0;
    display: grid;
    gap: 0.35rem;
    font-size: 0.92rem;
}

.agent-guide-progress {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6366f1;
}

.agent-guide-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.agent-guide-controls-left,
.agent-guide-controls-right {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.agent-guide-button {
    border: none;
    border-radius: 9999px;
    padding: 0.55rem 1.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.agent-guide-button:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.45);
    outline-offset: 2px;
}

.agent-guide-button-primary {
    background: #6366f1;
    color: #ffffff;
}

.agent-guide-button-primary:hover {
    background: #4f46e5;
}

.agent-guide-button-secondary {
    background: rgba(99, 102, 241, 0.12);
    color: #4338ca;
}

.agent-guide-button-secondary:hover {
    background: rgba(99, 102, 241, 0.22);
}

.agent-guide-button-text {
    background: transparent;
    color: #1f2937;
    font-size: 0.85rem;
    padding: 0.35rem 0.6rem;
}

.agent-guide-button-text:hover {
    color: #111827;
    text-decoration: underline;
}

.agent-guide-card-footer {
    font-size: 0.75rem;
    color: #6b7280;
}

@media (max-width: 768px) {
    .agent-guide-card {
        width: min(360px, 92vw);
        padding: 1.25rem;
    }

    .agent-guide-card h2 {
        font-size: 1.2rem;
    }

    .agent-guide-card p {
        font-size: 0.9rem;
    }
}

/* Launcher card inside the navigation sidebar */
.nav-guide-card {
    background: #f5f4ff;
    border-radius: 14px;
    padding: 1rem;
    margin: 0.75rem 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #312e81;
    border: 1px solid rgba(99, 102, 241, 0.18);
    box-shadow: 0 12px 25px rgba(99, 102, 241, 0.08);
}

#nav-sidebar:not(.expanded) .nav-guide-card {
    display: none;
}

#nav-sidebar:not(.expanded) .nav-guide-collapsed-launcher {
    display: flex;
}

#nav-sidebar.expanded .nav-guide-collapsed-launcher {
    display: none;
}

.nav-guide-collapsed-launcher {
    display: none;
    justify-content: center;
    padding: 0.25rem 0 0.5rem;
}

.nav-guide-dot-button {
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    border: none;
    background: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
}

.nav-guide-dot-button:hover,
.nav-guide-dot-button:focus-visible {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25);
    outline: none;
}

.nav-guide-card h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.nav-guide-card p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.nav-guide-button {
    align-self: flex-start;
    border: none;
    border-radius: 9999px;
    background: #6366f1;
    color: #ffffff;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-guide-button:hover {
    background: #4f46e5;
}

.nav-guide-button:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.45);
    outline-offset: 2px;
}

.nav-guide-button i {
    font-size: 0.9rem;
}
