/* MINIMAL TUTORIAL SYSTEM - MIT License */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: oklch(var(--b3) / 0.6);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(1px);
}

.tutorial-overlay.active {
    opacity: 1;
}

.tutorial-highlight {
    position: relative !important;
    z-index: 100001 !important;
    border-radius: 8px !important;
    box-shadow: 0 0 0 5px rgba(75, 107, 251, 0.8) !important;
    background: inherit !important;
    transition: all 0.3s ease !important;
}

.tutorial-popover {
    position: fixed;
    background: oklch(var(--b1));
    border: none;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
    z-index: 100003;
    max-width: 330px;
    min-width: 260px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

/* Card body kompakt padding */
.tutorial-popover .card-body {
    padding: 0.5rem 0.75rem 0.625rem;
}

.tutorial-popover.active {
    opacity: 1;
    transform: scale(1);
}

.tutorial-popover-header {
    padding: 0.5rem 0.875rem 0.5rem;
    border-bottom: 1px solid oklch(var(--bc) / 0.1);
}

.tutorial-popover-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: oklch(var(--p));
    margin: 0;
    padding-right: 2rem;
}

.tutorial-popover-body {
    padding: 0.5rem 0.75rem 0.625rem;
    font-size: 0.78rem;
    line-height: 1.4;
    color: oklch(var(--bc));
}

.tutorial-popover-body strong {
    color: oklch(var(--bc));
    font-weight: 600;
}

.tutorial-popover-footer {
    padding: 0.5rem 0.75rem 0.5rem;
    border-top: 1px solid oklch(var(--bc) / 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tutorial-progress {
    font-size: 0.65rem;
    font-weight: 600;
    background: oklch(var(--p));
    color: oklch(var(--pc));
    padding: 0.125rem 0.375rem;
    border-radius: 999px;
}

.tutorial-buttons {
    display: flex;
    gap: 0.20rem;
}

.tutorial-btn {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.tutorial-btn:hover {
    transform: translateY(-2px);
}

.tutorial-btn:active {
    transform: translateY(0);
}

.tutorial-btn-prev {
    background: oklch(var(--b3));
    color: oklch(var(--bc));
}

.tutorial-btn-prev:hover {
    background: oklch(var(--b2));
}

.tutorial-btn-next {
    background: oklch(var(--p));
    color: oklch(var(--pc));
}

.tutorial-btn-next:hover {
    background: oklch(var(--pf));
}

.tutorial-btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: oklch(var(--bc) / 0.5);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.tutorial-btn-close:hover {
    color: oklch(var(--er));
}

.tutorial-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border: 8px solid transparent;
}

.tutorial-arrow-top {
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: oklch(var(--p));
}

.tutorial-arrow-bottom {
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: oklch(var(--p));
}

.tutorial-arrow-left {
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: oklch(var(--p));
}

.tutorial-arrow-right {
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: oklch(var(--p));
}

/* Mobile */
@media (max-width: 768px) {
    .tutorial-popover {
        max-width: 90vw;
        min-width: 280px;
        margin: 1rem;
    }
    
    .tutorial-popover-header,
    .tutorial-popover-body,
    .tutorial-popover-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
