/*
 ============================================================
 Legal Assistant Platform
 Authored & Architected by:
    Hany Awad Farag Gerges
 All rights reserved © 2026
 ============================================================
*/

/* tour-guide.css */

.tour-fab {
    position: fixed;
    top: 110px;
    left: 22px;
    z-index: 1040;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 100%);
    color: #fff;
    font-size: 24px;
    font-family: 'Tajawal', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(200,134,10,0.5);
    transition: transform .2s, box-shadow .2s;
}

    .tour-fab:hover {
        transform: translateY(-2px) scale(1.06);
        box-shadow: 0 8px 26px rgba(200,134,10,0.6);
    }

    .tour-fab:focus-visible {
        outline: 3px solid var(--accent-light);
        outline-offset: 3px;
    }

    .tour-fab i {
        pointer-events: none;
    }

@media (max-width: 575px) {
    .tour-fab {
        top: 92px;
        left: 16px;
        width: 50px;
        height: 50px;
        font-size: 21px;
    }
}

/* ============================================================
   driver.js theme - بطاقة بيضاء نظيفة، تباين عالٍ، خط كبير
   لا خلفيات داكنة على العنوان أو الجسم
   ============================================================ */
.driver-popover.lap-tour {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 60px rgba(15,38,64,0.30);
    font-family: 'Tajawal', sans-serif;
    max-width: 400px;
    padding: 24px 24px 20px;
}

    /* عنوان نظيف بخط سفلي ملاصق — بلا فراغ معلّق */
    .driver-popover.lap-tour .driver-popover-title {
        display: block;
        background: transparent !important;
        color: var(--primary) !important;
        font-size: 21px;
        font-weight: 800;
        line-height: 1.5;
        font-family: 'Tajawal', sans-serif;
        margin: 0 0 14px 0;
        padding: 0 0 10px 0;
        border: none;
        border-bottom: 2px solid var(--accent);
        text-shadow: none;
        text-align: right;
    }

    .driver-popover.lap-tour .driver-popover-description {
        background: transparent !important;
        font-size: 16.5px;
        line-height: 2;
        color: var(--text-main);
        font-family: 'Tajawal', sans-serif;
    }

    .driver-popover.lap-tour .driver-popover-description b {
        color: var(--primary);
        font-weight: 700;
    }

    /* صندوق المعلومة التقنية - خلفية فاتحة جداً */
    .driver-popover.lap-tour .driver-popover-description .tour-hint {
        display: block;
        margin-top: 12px;
        padding: 12px 14px;
        background: #fbf8f1;
        border: 1px solid var(--border-light);
        border-right: 4px solid var(--accent);
        border-radius: 8px;
        font-size: 15px;
        line-height: 1.95;
        color: var(--text-main);
    }

    .driver-popover.lap-tour .driver-popover-progress-text {
        font-size: 14.5px;
        color: var(--text-muted);
        font-weight: 700;
    }

    .driver-popover.lap-tour .driver-popover-footer {
        margin-top: 18px;
        gap: 10px;
    }

        .driver-popover.lap-tour .driver-popover-footer button {
            font-family: 'Tajawal', sans-serif;
            font-size: 15.5px;
            font-weight: 700;
            border-radius: 8px;
            padding: 9px 22px;
            text-shadow: none;
            border: 1.5px solid var(--border);
            background: #ffffff;
            color: var(--text-main);
            transition: all .18s;
        }

            .driver-popover.lap-tour .driver-popover-footer button:hover {
                border-color: var(--primary-light);
                color: var(--primary-light);
                background: var(--bg-elevated);
            }

    .driver-popover.lap-tour .driver-popover-next-btn {
        background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%) !important;
        border-color: transparent !important;
        color: #fff !important;
        box-shadow: 0 3px 10px rgba(26,58,92,0.28);
    }

        .driver-popover.lap-tour .driver-popover-next-btn:hover {
            color: #fff !important;
            filter: brightness(1.1);
            border-color: transparent !important;
        }

    .driver-popover.lap-tour .driver-popover-close-btn {
        left: 14px;
        right: auto;
        background: transparent;
        color: var(--text-muted);
        font-size: 28px;
        line-height: 1;
        width: 34px;
        height: 34px;
        transition: color .15s;
    }

        .driver-popover.lap-tour .driver-popover-close-btn:hover {
            color: var(--danger);
        }

    /* سهم البطاقة أبيض ليطابق الخلفية */
    .driver-popover.lap-tour .driver-popover-arrow {
        border-width: 9px;
    }

/* ============================================================
   بطاقة الترحيب المركزية - بيضاء، عنوان موسّط
   ============================================================ */
.driver-popover.lap-tour.lap-tour-welcome {
    max-width: 480px;
    padding: 30px 30px 24px;
}

    .driver-popover.lap-tour.lap-tour-welcome .driver-popover-title {
        font-size: 24px;
        padding-left: 0;
        text-align: center;
        border-bottom: 2px solid var(--accent);
    }

    .driver-popover.lap-tour.lap-tour-welcome .driver-popover-description {
        text-align: right;
    }

    .driver-popover.lap-tour.lap-tour-welcome .driver-popover-close-btn {
        left: 16px;
        right: auto;
    }

@media (max-width: 575px) {
    .driver-popover.lap-tour {
        max-width: calc(100vw - 28px);
        padding: 20px 18px 16px;
    }

        .driver-popover.lap-tour .driver-popover-title {
            font-size: 19px;
        }

        .driver-popover.lap-tour .driver-popover-description {
            font-size: 15.5px;
        }

    .driver-popover.lap-tour.lap-tour-welcome {
        max-width: calc(100vw - 28px);
        padding: 24px 18px 18px;
    }

        .driver-popover.lap-tour.lap-tour-welcome .driver-popover-title {
            font-size: 21px;
        }
}
