/* onboarding.css */
/* ‼️ (Hybrid Spotlight Effect - අවසාන නිවැරදි කිරීම) ‼️ */

/* 1. Shepherd Popup එක (පණිවිඩය) */
.shepherd-element {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    
    /* 💡 FIX: Popup එක හැමදේටම ඉහළින් (10001) සහ Clickable විය යුතුයි */
    z-index: 10001 !important;
    pointer-events: auto !important; 
}

/* 2. Shepherd Overlay එක (අඳුරු background එක) */
.shepherd-modal-overlay {
    /* 💡 FIX: Overlay එක Popup එකට යටින් (9999) සහ Clickable විය යුතුයි */
    z-index: 9999 !important; 
    pointer-events: auto !important; 
    
    /* === ‼️ CRITICAL CHANGE ‼️ === */
    /* Shepherd ගේ default overlay එක අදෘශ්‍යමාන කරන්න (Transparent).
       එය තවමත් Click-Blocking කරයි, නමුත් පෙනෙන්නේ නැත.
    */
    background: transparent !important; 
    
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 3. Highlight දාරය (Glow) */
.highlight-tour-element {
    /* 💡 FIX: Overlay එකට උඩින් (10000), Popup එකට යටින් */
    z-index: 10000 !important;
    position: relative; 
    
    /* === ‼️ CRITICAL CHANGE: The Spotlight ‼️ === */
    /* අපි අපේම අඳුරු overlay එක 'box-shadow' එකක් ලෙස හදමු.
       මෙය මුළු තිරයම (9999px) අඳුරු කරයි.
       Highlight කළ element එක "සිදුරක්" (Hole) මෙන් දීප්තිමත්ව පෙනේ.
    */
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);

    border-radius: 8px; 
    transition: all 0.3s ease-in-out;
    
    /* Highlight කළ කොටස Non-Clickable විය යුතුයි */
    pointer-events: none !important;
}

/* 4. Highlight එක ඇතුලේ ඇති දේවල් (බොත්තම්, inputs) */
.highlight-tour-element * {
    /* Highlight කළ කොටස *ඇතුලේ* ඇති සියල්ල Non-Clickable විය යුතුයි */
    pointer-events: none !important;
}


/* --- (ඉතිරි සියල්ල Default Styles) --- */

.shepherd-header {
    background-color: #4f46e5; 
    padding: 1rem 1.5rem;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.shepherd-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
}

.shepherd-cancel-icon {
    color: #ffffff;
    opacity: 0.8;
}
.shepherd-cancel-icon:hover {
    opacity: 1;
}

.shepherd-text {
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    max-height: none;
    overflow-y: hidden;
}

.shepherd-footer {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    justify-content: flex-end;
}

.shepherd-button {
    background: #4f46e5;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.shepherd-button:hover {
    background: #4338ca;
}

/* Skip/Cancel බොත්තම සඟවමු */
.shepherd-button.shepherd-button-secondary {
    display: none;
}


/* === ‼️ MOBILE SCROLL FIX (වෙනස් නොවේ) ‼️ === */
@media (max-width: 600px) {
    .shepherd-element {
        width: 90vw !important; 
        max-width: 90vw !important;
    }

    .shepherd-text {
        max-height: 60vh; 
        overflow-y: auto;
    }
}