/* UNIVERSAL AR TUTORIAL STYLES */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 15000;
    pointer-events: auto;
    font-family: Arial, sans-serif;
    display: none;
}
.tutorial-skip {
    display: none !important;
}
.tutorial-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(1px);
}

.tutorial-step {
    position: absolute;
    pointer-events: none;
}

.tutorial-bubble {
    background: rgba(45, 45, 45, 0.95);
    color: white;
    padding: 18px 22px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 220px;
    text-align: center;
    pointer-events: auto;
    position: absolute;
    backdrop-filter: blur(10px);
}

/* OPRAVENO: Vylepšené centrování pro centrované bubliny */
.tutorial-bubble-center {
    background: rgba(45, 45, 45, 0.95);
    color: white;
    padding: 25px 30px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    max-width: 320px;
    width: 90%;
    text-align: center;
    pointer-events: auto;
    position: fixed !important;  /* ZMĚNA: fixed místo absolute */
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;  /* ZMĚNA: !important pro vynucení */
    backdrop-filter: blur(10px);
    z-index: 15001;  /* ZMĚNA: vyšší z-index */
    box-sizing: border-box;  /* ZMĚNA: pro správné rozměry */
}

.tutorial-bubble h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
}

.tutorial-bubble p {
    margin: 6px 0;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.tutorial-bubble-center p {
    text-align: left;
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.9);
}

.tutorial-bubble-center ul {
    text-align: left;
    margin: 10px 0;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.tutorial-bubble-center li {
    margin: 5px 0;
    font-size: 14px;
}

.tutorial-next {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.2s;
    font-size: 14px;
}

.tutorial-next:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

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

.tutorial-arrow {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.tutorial-arrow-right {
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 18px solid rgba(255, 255, 255, 0.2);
}

.tutorial-arrow-left {
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-right: 18px solid rgba(255, 255, 255, 0.2);
}

.tutorial-arrow-up {
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 18px solid rgba(255, 255, 255, 0.2);
}

.tutorial-arrow-down {
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 18px solid rgba(255, 255, 255, 0.2);
}

.tutorial-skip {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    pointer-events: auto;
    font-size: 12px;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.tutorial-skip:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.tutorial-progress {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    pointer-events: auto;
}

.tutorial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.tutorial-dot.active {
    background: #007bff;
    transform: scale(1.2);
}

.tutorial-dot.completed {
    background: #28a745;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .tutorial-bubble {
        max-width: 180px;
        padding: 15px 18px;
    }
    
    .tutorial-bubble-center {
        max-width: 300px !important;  /* ZMĚNA: menší max-width pro mobily */
        width: 85% !important;
        padding: 20px 25px;
        margin: 0 !important;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .tutorial-bubble h3 {
        font-size: 15px;
    }
    
    .tutorial-bubble p,
    .tutorial-bubble-center p,
    .tutorial-bubble-center li {
        font-size: 13px;
    }
}

/* Safety warning specific styles */
.tutorial-bubble-center .safety-warning {
    background: rgba(255, 69, 58, 0.1);
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #ff453a;
    margin-bottom: 10px;
}

.tutorial-bubble-center .safety-warning p:first-child {
    margin: 5px 0;
    font-weight: bold;
    color: #ff453a;
}

.tutorial-bubble-center .safety-warning ul {
    margin: 8px 0;
}

.tutorial-bubble-center .safety-warning p:last-child {
    margin: 5px 0;
    font-size: 13px;
    color: #ff8a80;
}
/* Speciální pozicování pro navigaci */
/* Přepozicování konkrétních kroků */
#tutorialStep3 .tutorial-bubble-center {
    top: 70px !important;
    right: 20px !important;
    left: auto !important;
    transform: none !important;
    max-width: 280px !important;
}

#tutorialStep4 .tutorial-bubble-center {
    bottom: 130px !important;
    top: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-width: 300px !important;
}
