/* Help content styles — scoped under .help-content wrapper.
   Used by HelpDrawer to style extracted HTML snippets.
   Explicit light backgrounds ensure readability in both light and dark mode. */

.help-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--mud-palette-text-primary);
}

.help-content h2 {
    font-size: 17px;
    font-weight: 600;
    color: var(--mud-palette-primary);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--mud-palette-primary-lighten);
}

.help-content h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    margin: 16px 0 6px;
}

.help-content p {
    font-size: 13px;
    color: var(--mud-palette-text-secondary);
    margin-bottom: 10px;
}

.help-content strong {
    color: var(--mud-palette-text-primary);
}

.help-content ul,
.help-content ol {
    font-size: 13px;
    color: var(--mud-palette-text-secondary);
    margin: 6px 0 12px 20px;
}

.help-content li {
    margin-bottom: 4px;
}

/* Screenshots */
.help-content .screenshot-container {
    margin: 12px 0 16px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 6px;
    overflow: hidden;
    background: var(--mud-palette-surface);
}

.help-content .screenshot-container img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: opacity 0.15s;
}

.help-content .screenshot-container img:hover {
    opacity: 0.88;
}

.help-content .screenshot-caption {
    padding: 6px 10px;
    font-size: 11px;
    color: var(--mud-palette-text-secondary);
    background: var(--mud-palette-background-gray);
    border-top: 1px solid var(--mud-palette-lines-default);
}

/* Info / Warning / Tip boxes */
.help-content .info-box {
    background: #E3F2FD;
    border-left: 4px solid #1565C0;
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
    margin: 10px 0 14px;
    font-size: 12px;
    color: #1A237E;
}

.help-content .warning-box {
    background: #FFF8E1;
    border-left: 4px solid #F9A825;
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
    margin: 10px 0 14px;
    font-size: 12px;
    color: #E65100;
}

.help-content .tip-box {
    background: #E8F5E9;
    border-left: 4px solid #43A047;
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
    margin: 10px 0 14px;
    font-size: 12px;
    color: #1B5E20;
}

/* Numbered steps */
.help-content .steps {
    counter-reset: step;
    list-style: none;
    margin: 10px 0 16px 0;
    padding: 0;
}

.help-content .steps li {
    counter-increment: step;
    padding: 6px 0 6px 36px;
    position: relative;
    font-size: 13px;
    color: var(--mud-palette-text-secondary);
    border-left: 2px solid var(--mud-palette-lines-default);
    margin-left: 12px;
}

.help-content .steps li:last-child {
    border-left-color: transparent;
}

.help-content .steps li::before {
    content: counter(step);
    position: absolute;
    left: -13px;
    top: 4px;
    width: 24px;
    height: 24px;
    background: var(--mud-palette-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Status chips */
.help-content .status-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: 12px 0;
    font-size: 12px;
}

.help-content .status-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 14px;
    font-weight: 500;
    font-size: 11px;
}

.help-content .status-chip.ok { background: #E8F5E9; color: #2E7D32; }
.help-content .status-chip.errors { background: #FFEBEE; color: #C62828; }
.help-content .status-chip.progress { background: #FFF8E1; color: #F57F17; }
.help-content .status-chip.revision { background: #E3F2FD; color: #1565C0; }
.help-content .status-chip.internal { background: #F3E5F5; color: #6A1B9A; }
.help-content .status-chip.complete { background: #ECEFF1; color: #37474F; }

.help-content .flow-arrow {
    color: var(--mud-palette-text-disabled);
    font-size: 14px;
}

/* Field table */
.help-content .field-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 16px;
    font-size: 12px;
}

.help-content .field-table th {
    background: #E3F2FD;
    color: #0D47A1;
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #BBDEFB;
}

.help-content .field-table td {
    padding: 7px 10px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    color: var(--mud-palette-text-secondary);
}

.help-content .field-table tr:hover td {
    background: rgba(0, 0, 0, 0.02);
}

/* Lightbox overlay */
.help-lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.help-lightbox-overlay.active {
    display: flex;
}

.help-lightbox-overlay img {
    max-width: 95%;
    max-height: 95vh;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
