/* Help System Styles */
.help-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.help-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6);
    color: white;
}

.help-tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    bottom: 70px;
    right: 0;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.help-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border: 5px solid transparent;
    border-top-color: #333;
}

.help-button:hover .help-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Quick Help Modal Styles */
.quick-help-modal .modal-content {
    border-radius: 15px;
    border: none;
}

.quick-help-modal .modal-header {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    border-radius: 15px 15px 0 0;
}

.help-shortcut {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
}

.help-shortcut h6 {
    color: #007bff;
    margin-bottom: 5px;
}

/* Context-sensitive help */
.context-help {
    position: relative;
    display: inline-block;
    margin-left: 5px;
}

.context-help-icon {
    color: #6c757d;
    cursor: help;
    transition: color 0.3s ease;
}

.context-help-icon:hover {
    color: #007bff;
}

.context-help-tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 10px;
    border-radius: 6px;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 0.85rem;
    line-height: 1.4;
}

.context-help-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

.context-help:hover .context-help-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Tour highlight styles */
.tour-highlight {
    position: relative;
    z-index: 9999;
}

.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
}

.tour-tooltip {
    position: absolute;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 300px;
    z-index: 10000;
}

.tour-tooltip h6 {
    color: #007bff;
    margin-bottom: 10px;
}

.tour-controls {
    margin-top: 15px;
    text-align: right;
}

.tour-controls button {
    margin-left: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .help-button {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .help-tooltip {
        right: -10px;
        font-size: 0.85rem;
    }
    
    .context-help-tooltip {
        width: 200px;
        left: auto;
        right: 0;
        transform: none;
    }
}

/* Print styles */
@media print {
    .help-button,
    .context-help,
    .tour-overlay,
    .tour-tooltip {
        display: none !important;
    }
}