/**
 * TBC Teacher Site - Shepherd.js Tour Styles
 * Modern, clean, professional guided tour styling
 */

/* ============================================
   CSS Variables for Theming
   ============================================ */
:root {
    --tour-primary: #06ade3;
    --tour-primary-dark: #0891b2;
    --tour-primary-light: #e0f7ff;
    --tour-text-dark: #1f2937;
    --tour-text-medium: #4b5563;
    --tour-text-light: #6b7280;
    --tour-bg-white: #ffffff;
    --tour-bg-light: #f8fafc;
    --tour-border-light: #e5e7eb;
    --tour-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --tour-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --tour-radius: 16px;
    --tour-radius-sm: 8px;
}

/* ============================================
   Tour Button - Fixed Position
   ============================================ */
#tour-button-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
}

.tour-start-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--tour-primary);
    color: var(--tour-bg-white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--tour-shadow-sm), 0 0 0 0 rgba(6, 173, 227, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tour-start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(6, 173, 227, 0.4);
    background: var(--tour-primary-dark);
}

.tour-start-button:active {
    transform: translateY(0);
}

.tour-start-button i {
    font-size: 18px;
}

.tour-btn-text {
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Tour Dropdown Menu */
.tour-dropdown {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: var(--tour-bg-white);
    border-radius: 12px;
    box-shadow: var(--tour-shadow);
    overflow: hidden;
    min-width: 220px;
    border: 1px solid var(--tour-border-light);
    animation: tourDropdownSlide 0.2s ease-out;
}

.tour-dropdown.hidden {
    display: none;
}

@keyframes tourDropdownSlide {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tour-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    border: none;
    background: var(--tour-bg-white);
    color: var(--tour-text-dark);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    font-family: inherit;
}

.tour-dropdown-item:hover {
    background: var(--tour-primary-light);
    color: var(--tour-primary);
}

.tour-dropdown-item:not(:last-child) {
    border-bottom: 1px solid var(--tour-border-light);
}

.tour-dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--tour-primary);
    font-size: 16px;
}

/* Knowledge Base link styling */
.tour-dropdown-link {
    text-decoration: none;
}

.tour-dropdown-link:hover {
    text-decoration: none;
}

.tour-dropdown-link i {
    color: #8b5cf6;
}

.tour-dropdown-link i {
    color: #8b5cf6;
}

/* ============================================
   Dashboard Tour Button (inline on dashboard)
   ============================================ */
.dashboard-tour-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--tour-bg-white);
    color: var(--tour-primary);
    border: 2px solid var(--tour-primary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dashboard-tour-btn:hover {
    background: var(--tour-primary);
    color: var(--tour-bg-white);
}

.dashboard-tour-btn i {
    font-size: 16px;
}

/* ============================================
   Shepherd Theme - TBC Custom (Modern & Clean)
   ============================================ */

/* Modal Overlay - Soft dim effect */
.shepherd-modal-overlay-container {
    z-index: 9999 !important;
}

.shepherd-modal-overlay-container .shepherd-modal-overlay-mask {
    fill: rgba(15, 23, 42, 0.65);
}

/* Remove any stroke/border from the modal overlay opening */
.shepherd-modal-overlay-container svg {
    stroke: none !important;
}

.shepherd-modal-overlay-container path {
    stroke: none !important;
    stroke-width: 0 !important;
}

/* Main Tour Element */
.tbc-shepherd-theme.shepherd-element {
    background: var(--tour-bg-white);
    border-radius: var(--tour-radius);
    box-shadow: var(--tour-shadow);
    max-width: 440px;
    z-index: 10001;
    border: none;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

/* Content wrapper */
.tbc-shepherd-theme .shepherd-content {
    padding: 0;
    border-radius: var(--tour-radius);
}

/* Header */
.tbc-shepherd-theme .shepherd-header {
    background: var(--tour-bg-white);
    padding: 24px 28px 0 28px;
    border-radius: var(--tour-radius) var(--tour-radius) 0 0;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.tbc-shepherd-theme .shepherd-title {
    color: var(--tour-text-dark);
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

/* Close button */
.tbc-shepherd-theme .shepherd-cancel-icon {
    color: var(--tour-text-light);
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    padding: 0;
    margin: -4px -8px 0 0;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease;
    opacity: 0.6;
}

.tbc-shepherd-theme .shepherd-cancel-icon:hover {
    color: var(--tour-text-dark);
    opacity: 1;
}

/* Text Content */
.tbc-shepherd-theme .shepherd-text {
    padding: 16px 28px 24px 28px;
    color: var(--tour-text-medium);
    font-size: 15px;
    line-height: 1.7;
}

.tbc-shepherd-theme .shepherd-text p {
    margin: 0 0 12px 0;
}

.tbc-shepherd-theme .shepherd-text p:last-child {
    margin-bottom: 0;
}

.tbc-shepherd-theme .shepherd-text strong {
    color: var(--tour-text-dark);
    font-weight: 600;
}

.tbc-shepherd-theme .shepherd-text ul {
    margin: 8px 0;
    padding-left: 20px;
}

.tbc-shepherd-theme .shepherd-text li {
    margin-bottom: 6px;
}

/* Footer with buttons */
.tbc-shepherd-theme .shepherd-footer {
    padding: 0 28px 24px 28px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    background: var(--tour-bg-white);
}

/* Buttons */
.tbc-shepherd-theme .shepherd-button {
    padding: 12px 24px;
    border-radius: var(--tour-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
    letter-spacing: 0.01em;
}

/* Primary button (Next/Finish) */
.tbc-shepherd-theme .shepherd-button:not(.shepherd-button-secondary) {
    background: var(--tour-primary);
    color: var(--tour-bg-white);
}

.tbc-shepherd-theme .shepherd-button:not(.shepherd-button-secondary):hover {
    background: var(--tour-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 173, 227, 0.3);
}

/* Secondary button (Back) */
.tbc-shepherd-theme .shepherd-button-secondary {
    background: var(--tour-bg-light);
    color: var(--tour-text-medium);
    border: 1px solid var(--tour-border-light);
}

.tbc-shepherd-theme .shepherd-button-secondary:hover {
    background: var(--tour-border-light);
    color: var(--tour-text-dark);
}

/* Arrow styles */
.tbc-shepherd-theme .shepherd-arrow,
.tbc-shepherd-theme .shepherd-arrow:before {
    position: absolute;
    width: 16px;
    height: 16px;
    z-index: -1;
}

.tbc-shepherd-theme .shepherd-arrow {
    visibility: hidden;
}

.tbc-shepherd-theme .shepherd-arrow:before {
    visibility: visible;
    content: '';
    transform: rotate(45deg);
    background: var(--tour-bg-white);
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.04);
}

.tbc-shepherd-theme[data-popper-placement^='top'] > .shepherd-arrow {
    bottom: -8px;
}

.tbc-shepherd-theme[data-popper-placement^='bottom'] > .shepherd-arrow {
    top: -8px;
}

.tbc-shepherd-theme[data-popper-placement^='left'] > .shepherd-arrow {
    right: -8px;
}

.tbc-shepherd-theme[data-popper-placement^='right'] > .shepherd-arrow {
    left: -8px;
}

/* ============================================
   Highlighted Element - Soft Glow Effect
   ============================================ */
.shepherd-target {
    position: relative;
}

.shepherd-target-click-disabled {
    pointer-events: none;
}

/* Remove default shepherd highlight, use custom */
.shepherd-enabled.shepherd-target {
    box-shadow: 0 0 0 4px rgba(6, 173, 227, 0.2),
                0 0 0 8px rgba(6, 173, 227, 0.1);
    border-radius: var(--tour-radius-sm);
}

/* Step counter / Progress indicator */
.tbc-shepherd-theme .shepherd-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 28px 20px 28px;
}

.tbc-shepherd-theme .shepherd-progress-step {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tour-border-light);
    transition: all 0.3s ease;
}

.tbc-shepherd-theme .shepherd-progress-step.active {
    background: var(--tour-primary);
    transform: scale(1.25);
}

.tbc-shepherd-theme .shepherd-progress-step.completed {
    background: var(--tour-primary);
    opacity: 0.5;
}

/* Step counter text */
.tour-step-counter {
    font-size: 12px;
    color: var(--tour-text-light);
    font-weight: 500;
    padding: 4px 12px;
    background: var(--tour-bg-light);
    border-radius: 20px;
    margin-right: auto;
}

/* ============================================
   Welcome/Finish Modal (Centered)
   ============================================ */
.tbc-shepherd-theme.shepherd-centered {
    margin: auto;
}

.tbc-shepherd-theme.shepherd-centered .shepherd-header {
    text-align: center;
    padding: 32px 32px 0 32px;
}

.tbc-shepherd-theme.shepherd-centered .shepherd-title {
    font-size: 24px;
}

.tbc-shepherd-theme.shepherd-centered .shepherd-text {
    text-align: center;
    padding: 20px 32px 28px 32px;
}

.tbc-shepherd-theme.shepherd-centered .shepherd-footer {
    justify-content: center;
    padding: 0 32px 32px 32px;
}

/* Welcome icon */
.tour-welcome-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--tour-primary-light) 0%, #cceeff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.tour-welcome-icon i {
    font-size: 28px;
    color: var(--tour-primary);
}

/* Success checkmark for finish */
.tour-success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.tour-success-icon i {
    font-size: 28px;
    color: #059669;
}

/* ============================================
   Responsive Styles
   ============================================ */

/* Tablet styles */
@media (max-width: 992px) {
    .tbc-shepherd-theme.shepherd-element {
        max-width: 380px;
    }

    .tbc-shepherd-theme .shepherd-text ul {
        padding-left: 16px;
    }

    .tbc-shepherd-theme .shepherd-text li {
        margin-bottom: 4px;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .tbc-shepherd-theme.shepherd-element {
        max-width: calc(100vw - 32px);
        margin: 16px !important;
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    /* Centered modals on mobile should be at center */
    .tbc-shepherd-theme.shepherd-centered.shepherd-element {
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .tbc-shepherd-theme .shepherd-header {
        padding: 20px 20px 0 20px;
    }

    .tbc-shepherd-theme .shepherd-title {
        font-size: 18px;
    }

    .tbc-shepherd-theme .shepherd-text {
        padding: 12px 20px 20px 20px;
        font-size: 14px;
        line-height: 1.6;
    }

    .tbc-shepherd-theme .shepherd-text p {
        margin: 0 0 10px 0;
    }

    .tbc-shepherd-theme .shepherd-text ul {
        margin: 6px 0;
        padding-left: 18px;
    }

    .tbc-shepherd-theme .shepherd-text li {
        margin-bottom: 4px;
        font-size: 13px;
    }

    .tbc-shepherd-theme .shepherd-footer {
        padding: 0 20px 20px 20px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .tbc-shepherd-theme .shepherd-button {
        padding: 12px 20px;
        font-size: 14px;
        flex: 1;
        min-width: 100px;
        text-align: center;
    }

    /* Make buttons stack on very small screens */
    .tbc-shepherd-theme .shepherd-footer {
        flex-direction: column-reverse;
    }

    .tbc-shepherd-theme .shepherd-button-secondary {
        order: 1;
    }

    #tour-button-container {
        bottom: 16px;
        right: 16px;
    }

    .tour-start-button {
        padding: 12px 20px;
        font-size: 13px;
    }

    .tour-btn-text {
        display: none;
    }

    .tour-start-button {
        width: 52px;
        height: 52px;
        padding: 0;
        border-radius: 50%;
    }

    .tour-start-button i {
        font-size: 22px;
        margin: 0;
    }

    .tour-dropdown {
        right: 0;
        min-width: 200px;
    }

    /* Welcome/Finish icons smaller on mobile */
    .tour-welcome-icon,
    .tour-success-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }

    .tour-welcome-icon i,
    .tour-success-icon i {
        font-size: 24px;
    }

    /* Centered modal adjustments */
    .tbc-shepherd-theme.shepherd-centered .shepherd-header {
        padding: 24px 24px 0 24px;
    }

    .tbc-shepherd-theme.shepherd-centered .shepherd-title {
        font-size: 20px;
    }

    .tbc-shepherd-theme.shepherd-centered .shepherd-text {
        padding: 16px 24px 20px 24px;
    }

    .tbc-shepherd-theme.shepherd-centered .shepherd-footer {
        padding: 0 24px 24px 24px;
        flex-direction: row;
    }

    /* Hide arrow on mobile for better positioning */
    .tbc-shepherd-theme .shepherd-arrow {
        display: none;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .tbc-shepherd-theme.shepherd-element {
        max-width: calc(100vw - 24px);
        margin: 12px !important;
    }

    .tbc-shepherd-theme .shepherd-header {
        padding: 16px 16px 0 16px;
    }

    .tbc-shepherd-theme .shepherd-title {
        font-size: 16px;
    }

    .tbc-shepherd-theme .shepherd-text {
        padding: 10px 16px 16px 16px;
        font-size: 13px;
    }

    .tbc-shepherd-theme .shepherd-footer {
        padding: 0 16px 16px 16px;
    }

    .tbc-shepherd-theme .shepherd-button {
        padding: 10px 16px;
        font-size: 13px;
    }

    .tour-dropdown {
        min-width: 180px;
        bottom: 56px;
    }

    .tour-dropdown-item {
        padding: 14px 16px;
        font-size: 13px;
    }
}

/* ============================================
   Menu Tour Responsive Adjustments
   ============================================ */

/* Tablet and below - menu tour */
@media (max-width: 992px) {
    .tbc-shepherd-theme.tbc-menu-step {
        max-width: 300px;
    }

    /* Sidebar menu highlighting on tablet */
    .top-main-menu-responsive.shepherd-menu-target,
    li[data-tour^="sidebar-menu-"].shepherd-menu-target {
        margin-right: 5px !important;
    }
}

/* Mobile - menu tour */
@media (max-width: 768px) {
    .tbc-shepherd-theme.tbc-menu-step {
        max-width: calc(100vw - 32px);
        position: fixed !important;
        bottom: 20px !important;
        top: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    /* Hide arrow on mobile for menu steps */
    .tbc-shepherd-theme.tbc-menu-step .shepherd-arrow {
        display: none !important;
    }
}

/* ============================================
   Animation Utilities
   ============================================ */
@keyframes tourPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(6, 173, 227, 0.4);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(6, 173, 227, 0);
    }
}

.tour-pulse {
    animation: tourPulse 2s ease-in-out infinite;
}

/* Subtle bounce for attention */
@keyframes tourBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.tour-bounce {
    animation: tourBounce 1s ease-in-out infinite;
}

/* ============================================
   Enhanced Target Highlighting
   ============================================ */

/* Pulsing glow effect on highlighted element */
.shepherd-enabled.shepherd-target {
    box-shadow: 0 0 0 4px rgba(6, 173, 227, 0.3),
                0 0 0 8px rgba(6, 173, 227, 0.15),
                0 0 20px rgba(6, 173, 227, 0.2);
    border-radius: var(--tour-radius-sm);
    transition: box-shadow 0.3s ease;
    position: relative;
    z-index: 10000;
}

/* Ensure cards are properly highlighted */
.shepherd-enabled.shepherd-target.dashboard-card {
    border-radius: 16px;
}

/* ============================================
   Menu Item Highlighting (Special Handling)
   ============================================ */

/* Remove default shepherd highlight for menu items */
.top-main-menu.shepherd-enabled.shepherd-target,
.top-main-menu-responsive.shepherd-enabled.shepherd-target,
li[data-tour^="menu-"].shepherd-enabled.shepherd-target,
li[data-tour^="sidebar-menu-"].shepherd-enabled.shepherd-target {
    box-shadow: none !important;
}

/* Top horizontal menu items - match the site's active menu style */
.top-main-menu.shepherd-menu-target,
li.top-main-menu[data-tour^="menu-"].shepherd-menu-target {
    background-color: #52c9f4 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color 0.2s ease !important;
    position: relative;
    z-index: 10000 !important;
}

.top-main-menu.shepherd-menu-target > a,
li.top-main-menu[data-tour^="menu-"].shepherd-menu-target > a {
    color: #ffffff !important;
    background-color: transparent !important;
}

.top-main-menu.shepherd-menu-target > a i,
.top-main-menu.shepherd-menu-target > a .fa,
.top-main-menu.shepherd-menu-target > a .fas,
li.top-main-menu[data-tour^="menu-"].shepherd-menu-target > a i,
li.top-main-menu[data-tour^="menu-"].shepherd-menu-target > a .fa,
li.top-main-menu[data-tour^="menu-"].shepherd-menu-target > a .fas {
    color: #ffffff !important;
}

/* Sidebar menu items */
.top-main-menu-responsive.shepherd-menu-target,
li.top-main-menu-responsive[data-tour^="sidebar-menu-"].shepherd-menu-target {
    background-color: #52c9f4 !important;
    border-radius: 4px !important;
    margin-right: 8px !important;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color 0.2s ease !important;
    position: relative;
    z-index: 10000 !important;
}

.top-main-menu-responsive.shepherd-menu-target > a,
li.top-main-menu-responsive[data-tour^="sidebar-menu-"].shepherd-menu-target > a {
    color: #ffffff !important;
    background-color: transparent !important;
}

.top-main-menu-responsive.shepherd-menu-target > a i,
.top-main-menu-responsive.shepherd-menu-target > a .fa,
.top-main-menu-responsive.shepherd-menu-target > a .fas,
li.top-main-menu-responsive[data-tour^="sidebar-menu-"].shepherd-menu-target > a i,
li.top-main-menu-responsive[data-tour^="sidebar-menu-"].shepherd-menu-target > a .fa,
li.top-main-menu-responsive[data-tour^="sidebar-menu-"].shepherd-menu-target > a .fas {
    color: #ffffff !important;
}

/* Academy menu item has an image instead of icon */
li[data-tour="menu-academy"].shepherd-menu-target > a img,
li[data-tour="sidebar-menu-academy"].shepherd-menu-target > a img {
    filter: brightness(0) invert(1) !important;
}

/* Sidebar submenu items (inside aside#sidebar) */
aside#sidebar .main-menu li.shepherd-menu-target,
aside#sidebar li[data-tour^="sub-"].shepherd-menu-target {
    background-color: #52c9f4 !important;
    border-radius: 4px !important;
    margin-right: 15px !important;
    margin-left: -5px !important;
    padding-left: 5px !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease !important;
    position: relative;
    z-index: 10000 !important;
}

aside#sidebar .main-menu li.shepherd-menu-target > a,
aside#sidebar li[data-tour^="sub-"].shepherd-menu-target > a {
    color: #ffffff !important;
    background-color: transparent !important;
}

aside#sidebar .main-menu li.shepherd-menu-target > a i,
aside#sidebar .main-menu li.shepherd-menu-target > a .fa,
aside#sidebar .main-menu li.shepherd-menu-target > a .fas,
aside#sidebar li[data-tour^="sub-"].shepherd-menu-target > a i,
aside#sidebar li[data-tour^="sub-"].shepherd-menu-target > a .fa,
aside#sidebar li[data-tour^="sub-"].shepherd-menu-target > a .fas {
    color: #ffffff !important;
}

/* Menu tour popup specific styles */
.tbc-shepherd-theme.tbc-menu-step {
    max-width: 340px;
}

.tbc-shepherd-theme.tbc-menu-step .shepherd-text {
    padding: 14px 24px 20px 24px;
}

.tbc-shepherd-theme.tbc-menu-step .shepherd-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Ensure header and menu items stay above overlay during tour */
.shepherd-modal-overlay-container.shepherd-modal-is-visible ~ header#header {
    z-index: 10000 !important;
}

.shepherd-modal-overlay-container.shepherd-modal-is-visible ~ header#header .shepherd-menu-target {
    z-index: 10001 !important;
}

.shepherd-modal-overlay-container.shepherd-modal-is-visible ~ aside#sidebar {
    z-index: 10000 !important;
}

.shepherd-modal-overlay-container.shepherd-modal-is-visible ~ aside#sidebar .shepherd-menu-target {
    z-index: 10001 !important;
}

/* ============================================
   Step Counter in Footer
   ============================================ */
.tbc-shepherd-theme .shepherd-footer {
    position: relative;
}

.tour-step-indicator {
    position: absolute;
    left: 28px;
    bottom: 28px;
    font-size: 12px;
    color: var(--tour-text-light);
    font-weight: 500;
}

@media (max-width: 768px) {
    .tour-step-indicator {
        position: static;
        width: 100%;
        text-align: center;
        margin-bottom: 12px;
        order: -1;
    }
}

/* ============================================
   List Styling in Tour Text
   ============================================ */
.tbc-shepherd-theme .shepherd-text ul {
    margin: 10px 0;
    padding-left: 0;
    list-style: none;
}

.tbc-shepherd-theme .shepherd-text li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.tbc-shepherd-theme .shepherd-text li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--tour-primary);
    border-radius: 50%;
}

.tbc-shepherd-theme .shepherd-text li strong {
    color: var(--tour-primary-dark);
}

/* Tip styling */
.tbc-shepherd-theme .shepherd-text em {
    display: block;
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--tour-primary-light);
    border-radius: 8px;
    font-style: normal;
    font-size: 13px;
    color: var(--tour-primary-dark);
}

/* ============================================
   Animation for Tour Modal
   ============================================ */
.tbc-shepherd-theme.shepherd-element {
    animation: tourFadeIn 0.25s ease-out;
}

@keyframes tourFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Centered modal animation */
.tbc-shepherd-theme.shepherd-centered.shepherd-element {
    animation: tourCenterFadeIn 0.3s ease-out;
}

@keyframes tourCenterFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   Dark Mode Support (if applicable)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Only apply if the site supports dark mode */
    .dark-mode .tbc-shepherd-theme.shepherd-element {
        background: #1f2937;
        border: 1px solid #374151;
    }

    .dark-mode .tbc-shepherd-theme .shepherd-title {
        color: #f9fafb;
    }

    .dark-mode .tbc-shepherd-theme .shepherd-text {
        color: #d1d5db;
    }
}

/* ============================================
   Print Styles - Hide tour elements
   ============================================ */
@media print {
    #tour-button-container,
    .shepherd-element,
    .shepherd-modal-overlay-container {
        display: none !important;
    }
}
