/* استایل سفارشی راهنمای کاربری - هماهنگ با قالب */
.driver-active .driver-overlay,
.driver-active * {
    pointer-events: none;
}

.driver-active .driver-active-element,
.driver-active .driver-active-element *,
.driver-popover,
.driver-popover * {
    pointer-events: auto;
}



.driver-fade .driver-overlay {
    animation: fadeIn 0.2s ease-in-out;
}

.driver-fade .driver-popover {
    animation: fadeIn 0.4s ease-in-out;
}

.driver-popover {
    all: unset;
    box-sizing: border-box;
    color: #2d2d2d;
    margin: 0;
    padding: 20px;
    border-radius: 12px;
    min-width: 280px;
    max-width: 350px;
    box-shadow: 0 8px 25px rgba(0, 67, 14, 0.15);
    z-index: 1000000000;
    position: fixed;
    /* top و right توسط driver.js به صورت خودکار تنظیم می‌شوند */
    background-color: #ffffff;
    border: 2px solid #84BF63;
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    text-align: right;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.driver-popover * {
    font-family: 'Vazirmatn', sans-serif;
}

.driver-popover-title {
    font-size: 18px;
    font-weight: 700;
    display: block;
    position: relative;
    line-height: 1.5;
    margin: 0;
    color: #00430E;
}

.driver-popover-title[style*=block] + .driver-popover-description {
    margin-top: 5px;
}

.driver-popover-description {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    color: #555;
}

.driver-popover-footer {
    margin-top: 15px;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.driver-popover-navigation-btns {
    display: flex;
    flex-grow: 1;
    justify-content: flex-end;
}

.driver-popover-navigation-btns button + button {
    margin-left: 4px;
}

.driver-popover-footer button {
    all: unset;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Vazirmatn', sans-serif;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 80px;
}

.driver-popover-footer .driver-popover-prev-btn {
    background-color: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
}

.driver-popover-footer .driver-popover-prev-btn:hover {
    background-color: #e8e8e8;
    color: #333;
}

.driver-popover-footer .driver-popover-next-btn {
    background-color: #84BF63;
    color: #ffffff;
    border: 1px solid #84BF63;
}

.driver-popover-footer .driver-popover-next-btn:hover {
    background-color: #73a855;
    border-color: #73a855;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(132, 191, 99, 0.3);
}

.driver-popover-close-btn {
    all: unset;
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 28px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    color: #999;
    z-index: 1;
    text-align: center;
    transition: color 0.2s ease-in-out;
}

.driver-popover-close-btn:hover,
.driver-popover-close-btn:focus {
    color: #84BF63;
}

.driver-popover-footer .driver-popover-done-btn {
    background-color: #00430E;
    color: #ffffff;
    border: 1px solid #00430E;
}

.driver-popover-footer .driver-popover-done-btn:hover {
    background-color: #005a12;
    border-color: #005a12;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 67, 14, 0.3);
}

.driver-popover-progress-text {
    font-size: 13px;
    font-weight: 600;
    color: #84BF63;
}

.driver-popover-footer .driver-popover-btn-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.driver-popover-arrow {
    content: "";
    position: absolute;
    border: 5px solid transparent;
}

.driver-popover-arrow-side-left {
    left: 100%;
}

.driver-popover-arrow-side-left .driver-popover-arrow {
    border-left-color: #84BF63;
}

.driver-popover-arrow-side-right {
    right: 100%;
}

.driver-popover-arrow-side-right .driver-popover-arrow {
    border-right-color: #84BF63;
}

.driver-popover-arrow-side-top {
    top: 100%;
}

.driver-popover-arrow-side-top .driver-popover-arrow {
    border-top-color: #84BF63;
}

.driver-popover-arrow-side-bottom {
    bottom: 100%;
}

.driver-popover-arrow-side-bottom .driver-popover-arrow {
    border-bottom-color: #84BF63;
}

.driver-popover-arrow-align-center {
    display: none;
}

.driver-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999999;
}

.driver-highlighted-element {
    position: relative;
    z-index: 1000000001;
}

.driver-no-interaction,
.driver-no-interaction * {
    pointer-events: none !important;
}

/* استایل برای موبایل */
@media (max-width: 768px) {
    .driver-popover {
        min-width: 260px;
        max-width: 90%;
        padding: 18px;
    }

    .driver-popover-title {
        font-size: 16px;
    }

    .driver-popover-description {
        font-size: 13px;
    }

    .driver-popover-footer button {
        padding: 8px 16px;
        font-size: 13px;
        min-width: 70px;
    }
}

