/* ============================================
   Finger Guide - Driver.js Theme Overrides
   ============================================ */

/* Overlay */
.driver-overlay {
    background: rgba(30, 58, 95, 0.6) !important;
}

/* Popover container */
.driver-popover {
    border: 2px solid #2CBDB9 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(44, 189, 185, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    max-width: 340px !important;
    font-family: 'Inter', sans-serif !important;
}

/* Arrow */
.driver-popover-arrow {
    border: 2px solid #2CBDB9 !important;
}

.driver-popover-arrow-side-left,
.driver-popover-arrow-side-right,
.driver-popover-arrow-side-top,
.driver-popover-arrow-side-bottom {
    border-color: #2CBDB9 !important;
}

/* Title */
.driver-popover-title {
    color: #2CBDB9 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
}

/* Description */
.driver-popover-description {
    color: #4a5568 !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
}

/* Progress text */
.driver-popover-progress-text {
    color: #718096 !important;
    font-size: 0.75rem !important;
}

/* Footer */
.driver-popover-footer {
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 0.75rem !important;
    margin-top: 0.5rem !important;
}

/* Next / Done button */
.driver-popover-next-btn {
    background: #2CBDB9 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 6px 16px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-shadow: none !important;
    transition: background 0.2s ease !important;
}

.driver-popover-next-btn:hover {
    background: #24a09d !important;
}

/* Previous button */
.driver-popover-prev-btn {
    background: transparent !important;
    color: #2CBDB9 !important;
    border: 1.5px solid #2CBDB9 !important;
    border-radius: 6px !important;
    padding: 6px 16px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-shadow: none !important;
    transition: all 0.2s ease !important;
}

.driver-popover-prev-btn:hover {
    background: rgba(44, 189, 185, 0.1) !important;
}

/* Close button */
.driver-popover-close-btn {
    color: #a0aec0 !important;
    font-size: 1.25rem !important;
}

.driver-popover-close-btn:hover {
    color: #2CBDB9 !important;
}

/* Highlighted element */
.driver-active-element {
    border-radius: 8px !important;
}

/* ============================================
   Help "?" Button
   ============================================ */

.finger-guide-help-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2CBDB9 0%, #24a09d 100%);
    color: #fff;
    border: none;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(44, 189, 185, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    line-height: 1;
}

.finger-guide-help-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(44, 189, 185, 0.5);
}

.finger-guide-help-btn:active {
    transform: scale(0.95);
}

/* Pulse animation on first appearance */
.finger-guide-help-btn.pulse {
    animation: fingerGuidePulse 2s ease-in-out 3;
}

@keyframes fingerGuidePulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(44, 189, 185, 0.4); }
    50% { box-shadow: 0 4px 24px rgba(44, 189, 185, 0.7), 0 0 0 8px rgba(44, 189, 185, 0.15); }
}

/* Tooltip on hover */
.finger-guide-help-btn[title] {
    position: relative;
}

/* ============================================
   Mobile Responsive
   ============================================ */

@media (max-width: 768px) {
    .driver-popover {
        max-width: 280px !important;
    }

    .driver-popover-title {
        font-size: 0.9rem !important;
    }

    .driver-popover-description {
        font-size: 0.8rem !important;
    }

    .finger-guide-help-btn {
        width: 38px;
        height: 38px;
        font-size: 1.05rem;
        bottom: 18px;
        right: 18px;
    }
}

@media (max-width: 480px) {
    .driver-popover {
        max-width: 250px !important;
    }

    .finger-guide-help-btn {
        bottom: 14px;
        right: 14px;
    }
}
