/**
 * ============================================================================
 * NextLife Money - Help & Knowledge Drawer Styles
 * ============================================================================
 */

#offcanvasHelpGuide {
    width: 520px;
    max-width: 100vw;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    box-shadow: -8px 0 28px rgba(0, 0, 0, 0.12);
    z-index: 1060;
}

[data-bs-theme="dark"] #offcanvasHelpGuide {
    background: #0f172a;
    border-left-color: rgba(255, 255, 255, 0.08);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.45);
    color: #cbd5e1;
}

/* Offcanvas Header styling */
#offcanvasHelpGuide .offcanvas-header {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    padding: 1.25rem 1.5rem;
}

[data-bs-theme="dark"] #offcanvasHelpGuide .offcanvas-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Search bar styling */
.help-search-container {
    position: relative;
    padding: 0.85rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-bs-theme="dark"] .help-search-container {
    background: #1e293b;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.help-search-input {
    border-radius: 50rem;
    padding-left: 2.5rem;
    padding-right: 2rem;
    font-size: 0.85rem;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
}

[data-bs-theme="dark"] .help-search-input {
    background-color: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

.help-search-icon {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

/* Category Tabs */
.help-nav-pills {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    overflow-x: auto;
}

[data-bs-theme="dark"] .help-nav-pills {
    background: #0f172a;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.help-nav-pills .nav-link {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 50rem;
    color: #64748b;
    background: transparent;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
    transition: all 0.2s ease;
}

[data-bs-theme="dark"] .help-nav-pills .nav-link {
    color: #94a3b8;
    border-color: #334155;
}

.help-nav-pills .nav-link.active {
    background-color: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

/* Body & Content */
.help-drawer-body {
    padding: 1.25rem;
    height: calc(100vh - 180px);
    overflow-y: auto;
}

/* Flowchart Step Card */
.help-flow-card {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-bs-theme="dark"] .help-flow-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.help-flow-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}

.help-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #0284c7;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

.help-flow-connector {
    text-align: center;
    color: #94a3b8;
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Page Accordions */
.help-accordion .accordion-item {
    border-radius: 0.75rem !important;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.75rem;
    background: #ffffff;
    overflow: hidden;
}

[data-bs-theme="dark"] .help-accordion .accordion-item {
    background: #1e293b;
    border-color: #334155;
}

.help-accordion .accordion-button {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.85rem 1.15rem;
    background: transparent;
    box-shadow: none;
}

.help-accordion .accordion-button:not(.collapsed) {
    background-color: rgba(2, 132, 199, 0.06);
    color: #0284c7;
}

[data-bs-theme="dark"] .help-accordion .accordion-button:not(.collapsed) {
    background-color: rgba(2, 132, 199, 0.15);
    color: #38bdf8;
}

/* Callout Box for "Impact on Final Outcome" */
.help-impact-callout {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.5rem;
    padding: 0.75rem 0.9rem;
    margin: 0.75rem 0;
    font-size: 0.82rem;
    color: #166534;
}

[data-bs-theme="dark"] .help-impact-callout {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
}

.help-impact-title {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
}

/* Current page highlighted pill badge */
.help-current-page-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 50rem;
    background-color: #0284c7;
    color: #ffffff;
    margin-left: auto;
}

/* Highlight search match */
.help-highlight {
    background-color: #fef08a;
    color: #854d0e;
    padding: 0.1rem 0.2rem;
    border-radius: 2px;
}

[data-bs-theme="dark"] .help-highlight {
    background-color: #854d0e;
    color: #fef08a;
}
