/* Page Help System — Universelles Hilfe-System für alle Dashboard-Seiten */

.page-help-btn {
    cursor: pointer;
    font-size: 0.75em;
    color: #64748b;
    vertical-align: super;
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #475569;
    background: #1e293b;
    transition: all 0.2s;
    font-weight: bold;
    line-height: 1;
}

.page-help-btn:hover {
    color: #e2e8f0;
    border-color: #3b82f6;
    background: #1e3a5f;
}

/* Floating Help Button (bottom-right) */
.page-help-floating {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    border: none;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.page-help-floating:hover {
    background: #2563eb;
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
}

/* Help Modal */
#page-help-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    justify-content: center;
    align-items: flex-start;
    padding: 3vh 0;
    overflow-y: auto;
}

#page-help-modal.visible {
    display: flex;
}

#page-help-modal .help-inner {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    max-width: 700px;
    width: 94%;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    margin: auto 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#page-help-modal .help-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #334155;
    flex-shrink: 0;
}

#page-help-modal .help-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.6em;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
    transition: all 0.2s;
}

#page-help-modal .help-close-btn:hover {
    color: #e2e8f0;
    background: #334155;
}

#page-help-modal .help-body {
    overflow-y: auto;
    padding: 20px 24px 24px;
    flex: 1;
    min-height: 0;
}

#page-help-modal h3 {
    color: #e2e8f0;
    margin: 0;
    font-size: 1.3em;
}

#page-help-modal .help-section {
    margin-bottom: 14px;
}

#page-help-modal .help-section h4 {
    color: #3b82f6;
    font-size: 0.95em;
    margin-bottom: 6px;
}

#page-help-modal .help-section p,
#page-help-modal .help-section li {
    color: #cbd5e1;
    font-size: 0.9em;
    line-height: 1.6;
}

#page-help-modal .help-section ul {
    padding-left: 18px;
}

#page-help-modal .help-tip {
    background: #0f172a;
    border: 1px solid #22c55e33;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 10px;
    font-size: 0.85em;
    color: #94a3b8;
}

#page-help-modal .help-tip strong {
    color: #22c55e;
}

#page-help-modal .help-warning {
    background: #0f172a;
    border: 1px solid #f59e0b33;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 10px;
    font-size: 0.85em;
    color: #94a3b8;
}

#page-help-modal .help-warning strong {
    color: #f59e0b;
}

/* Help TOC (Table of Contents) */
#page-help-modal .help-toc {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

#page-help-modal .help-toc-title {
    color: #94a3b8;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

#page-help-modal .help-toc a {
    display: block;
    color: #3b82f6;
    text-decoration: none;
    padding: 3px 0;
    font-size: 0.88em;
    cursor: pointer;
}

#page-help-modal .help-toc a:hover {
    color: #60a5fa;
    text-decoration: underline;
}
