/* Help System Styles */

/* Floating Help Button */
.help-floating-button {
    width: 50px;
    height: 50px;
    border: none;
    transition: all 0.3s ease;
}

.help-floating-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4) !important;
}

.help-panel {
    animation-duration: 0.3s;
}

.help-floating-container .card {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.help-panel .card-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.help-panel .btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
    font-size: 0.875rem;
}

.help-panel .btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
}

.help-panel code {
    font-size: 0.75rem;
    border-radius: 3px;
}

/* Tooltip Provider */
.help-tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.help-tooltip {
    position: absolute;
    z-index: 10000;
    pointer-events: none;
    animation: tooltipFadeIn 0.2s ease-out;
}

.help-tooltip-content {
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    max-width: 250px;
    word-wrap: break-word;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.help-tooltip-example {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.help-tooltip-top::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
}

.help-tooltip-bottom::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #333;
}

.help-tooltip-left::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #333;
}

.help-tooltip-right::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: #333;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-8px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(-8px) scale(1);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .help-floating-container {
        bottom: 10px !important;
        right: 10px !important;
    }
    
    .help-panel {
        width: 280px !important;
        max-height: 400px !important;
    }
    
    .help-tooltip-content {
        font-size: 12px;
        padding: 6px 10px;
        max-width: 200px;
    }
}