/* 引导主题自定义样式 */
.shepherd-theme-custom {
    max-width: 400px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    z-index: 1100;
}

.shepherd-theme-custom .shepherd-content {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 4px 4px 0 0;
}

.shepherd-theme-custom .shepherd-header {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px 4px 0 0;
}

.shepherd-theme-custom .shepherd-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
}

.shepherd-theme-custom .shepherd-text {
    padding: 1rem;
    color: #495057;
    line-height: 1.5;
}

.shepherd-theme-custom .shepherd-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid #dee2e6;
}

.shepherd-theme-custom .shepherd-button {
    margin: 0 0.25rem;
    padding: 0.375rem 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.shepherd-theme-custom .shepherd-button-primary {
    background-color: #007bff;
    color: white;
}

.shepherd-theme-custom .shepherd-button-primary:hover {
    background-color: #0056b3;
}

.shepherd-theme-custom .shepherd-button-secondary {
    background-color: #6c757d;
    color: white;
}

.shepherd-theme-custom .shepherd-button-secondary:hover {
    background-color: #545b62;
}

.shepherd-theme-custom .shepherd-cancel-icon {
    color: #6c757d;
    font-size: 1.5rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.shepherd-theme-custom .shepherd-cancel-icon:hover {
    opacity: 1;
}

/* 帮助按钮样式 */
.help-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.2s;
    z-index: 1000;
}

.help-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* 引导遮罩层样式 */
.shepherd-modal-overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 确保下拉菜单显示在其他元素之上 */
.dropdown-menu {
    z-index: 1200 !important;
}

/* 确保模态框显示在下拉菜单之下 */
.modal {
    z-index: 1040;
}

.modal-backdrop {
    z-index: 1030;
}

/* 用户区域交互修复 */
body.shepherd-active .navbar {
    z-index: 1020 !important;
}

body.shepherd-active .dropdown-menu {
    z-index: 1200 !important;
}

/* 删除这个规则，允许用户菜单可点击 */
/*
body.shepherd-active .user-area,
body.shepherd-active .nav-link {
    pointer-events: none !important;
}
*/

/* 指定除用户区域外的导航链接不可点击 */
body.shepherd-active .navbar-nav .nav-link:not(.dropdown-toggle) {
    pointer-events: none !important;
}

/* 确保用户菜单正常工作 */
body.shepherd-active .user-area .nav-link.dropdown-toggle {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 1201 !important;
}

body.shepherd-active .dropdown-menu.show {
    display: block !important;
    pointer-events: auto !important;
    z-index: 1200 !important;
}

/* 确保下拉菜单项可点击 */
body.shepherd-active .dropdown-item {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* 引导期间恢复交互的元素 */
.shepherd-enabled {
    pointer-events: auto !important;
    z-index: 10001 !important;
}

/* 引导运行时添加到body */
body.shepherd-active {
    overflow: hidden;
}

/* 修复导航栏高度问题 */
body.shepherd-active .navbar {
    height: auto !important;
    min-height: 56px !important;
    max-height: 56px !important;
    overflow: visible !important;
}

/* 在引导过程中确保模态框在导航栏之上 */
body.shepherd-active .modal {
    z-index: 1040 !important;
}

body.shepherd-active .modal-backdrop {
    z-index: 1030 !important;
} 