/* Modern Tour Styling - Override Bootstrap Tour defaults */
/* Target both standard Bootstrap Tour and custom template classes */

.popover.tour,
.popover.tour-modern,
.tour.tour-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4), 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    max-width: 400px !important;
    padding: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif !important;
    animation: tourSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.popover.tour > .arrow,
.popover.tour-modern > .arrow,
.tour.tour-modern > .arrow {
    display: none !important;
}

/* Tour Header */
.popover.tour .tour-header,
.popover.tour-modern .tour-header,
.tour.tour-modern .tour-header {
    padding: 0 !important;
    position: relative !important;
}

.popover.tour .tour-close,
.popover.tour-modern .tour-close,
.tour.tour-modern .tour-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 24px !important;
    cursor: pointer !important;
    background: none !important;
    border: none !important;
    line-height: 1 !important;
    z-index: 10 !important;
}

.popover.tour .tour-close:hover,
.popover.tour-modern .tour-close:hover,
.tour.tour-modern .tour-close:hover {
    color: #ffffff !important;
}

/* Title */
.popover.tour .popover-title,
.popover.tour-modern .popover-title,
.tour.tour-modern .popover-title {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 20px 24px 10px !important;
    letter-spacing: -0.3px !important;
    border-radius: 16px 16px 0 0 !important;
}

/* Content */
.popover.tour .popover-content,
.popover.tour-modern .popover-content,
.tour.tour-modern .popover-content {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    padding: 10px 24px 20px !important;
    background: transparent !important;
}

/* Navigation */
.popover.tour .popover-navigation,
.popover.tour-modern .popover-navigation,
.tour.tour-modern .popover-navigation {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 16px 24px 20px !important;
    background: rgba(0, 0, 0, 0.15) !important;
    border-radius: 0 0 16px 16px !important;
    overflow: visible !important;
}

.popover.tour .tour-btn-group,
.popover.tour-modern .tour-btn-group,
.tour.tour-modern .tour-btn-group {
    display: flex !important;
    gap: 8px !important;
}

/* All buttons base style */
.popover.tour .popover-navigation .btn,
.popover.tour-modern .popover-navigation .btn,
.tour.tour-modern .popover-navigation .btn,
.popover.tour .tour-btn,
.popover.tour-modern .tour-btn,
.tour.tour-modern .tour-btn {
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 10px 18px !important;
    transition: all 0.2s ease !important;
    border: none !important;
    margin: 0 !important;
    text-decoration: none !important;
}

/* Prev button */
.popover.tour .tour-btn-prev,
.popover.tour-modern .tour-btn-prev,
.tour.tour-modern .tour-btn-prev,
.popover.tour .popover-navigation .btn[data-role="prev"],
.popover.tour-modern .popover-navigation .btn[data-role="prev"],
.tour.tour-modern .popover-navigation .btn[data-role="prev"] {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.popover.tour .tour-btn-prev:hover,
.popover.tour-modern .tour-btn-prev:hover,
.tour.tour-modern .tour-btn-prev:hover,
.popover.tour .popover-navigation .btn[data-role="prev"]:hover,
.popover.tour-modern .popover-navigation .btn[data-role="prev"]:hover,
.tour.tour-modern .popover-navigation .btn[data-role="prev"]:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    transform: translateY(-2px) !important;
}

/* Next button */
.popover.tour .tour-btn-next,
.popover.tour-modern .tour-btn-next,
.tour.tour-modern .tour-btn-next,
.popover.tour .popover-navigation .btn[data-role="next"],
.popover.tour-modern .popover-navigation .btn[data-role="next"],
.tour.tour-modern .popover-navigation .btn[data-role="next"] {
    background: #ffffff !important;
    color: #667eea !important;
    border: none !important;
}

.popover.tour .tour-btn-next:hover,
.popover.tour-modern .tour-btn-next:hover,
.tour.tour-modern .tour-btn-next:hover,
.popover.tour .popover-navigation .btn[data-role="next"]:hover,
.popover.tour-modern .popover-navigation .btn[data-role="next"]:hover,
.tour.tour-modern .popover-navigation .btn[data-role="next"]:hover {
    background: #f0f0f0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-2px) !important;
}

/* End/Skip button */
.popover.tour .tour-btn-skip,
.popover.tour-modern .tour-btn-skip,
.tour.tour-modern .tour-btn-skip,
.popover.tour .popover-navigation .btn[data-role="end"],
.popover.tour-modern .popover-navigation .btn[data-role="end"],
.tour.tour-modern .popover-navigation .btn[data-role="end"] {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 12px !important;
    padding: 8px 12px !important;
    width: 100% !important;
    margin-top: 8px !important;
}

.popover.tour .tour-btn-skip:hover,
.popover.tour-modern .tour-btn-skip:hover,
.tour.tour-modern .tour-btn-skip:hover,
.popover.tour .popover-navigation .btn[data-role="end"]:hover,
.popover.tour-modern .popover-navigation .btn[data-role="end"]:hover,
.tour.tour-modern .popover-navigation .btn[data-role="end"]:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
    background: transparent !important;
}

/* Disabled button */
.popover.tour .btn.disabled,
.popover.tour-modern .btn.disabled,
.tour.tour-modern .btn.disabled,
.popover.tour .tour-btn.disabled,
.popover.tour-modern .tour-btn.disabled,
.tour.tour-modern .tour-btn.disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

/* Backdrop styling */
.tour-backdrop {
    background-color: rgba(0, 0, 0, 0.65) !important;
    opacity: 1 !important;
}

/* Animation */
@keyframes tourSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Override Bootstrap button colors */
.popover.tour .btn-success,
.popover.tour-modern .btn-success,
.tour.tour-modern .btn-success {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

.popover.tour .btn-default,
.popover.tour-modern .btn-default,
.tour.tour-modern .btn-default {
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Override green success button */
.popover.tour .btn-success:hover,
.popover.tour-modern .btn-success:hover,
.tour.tour-modern .btn-success:hover {
    background: rgba(255, 255, 255, 0.35) !important;
}