/* ═══════════════════════════════════════════════════════════════════════════════
   Cache Service Browser - HTML Viewer Component Styles
   v0.1.2
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Most styles are in patches.css, component-specific additions here */

:host {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--color-bg-primary);
}

.html-preview-container {
    width: 100%;
    height: 100%;
}

.html-preview-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* Split view */
.html-viewer-content.split-view {
    display: flex;
}

.html-viewer-content.split-view .html-preview-container {
    width: 50%;
    border-right: 1px solid var(--color-border-default);
}

.html-viewer-content.split-view .html-source-view {
    width: 50%;
    display: block !important;
}

/* Source view enhancements */
.html-source-view {
    background: var(--color-bg-primary);
}

.html-source-view pre {
    margin: 0;
    padding: var(--spacing-md);
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: var(--font-family-mono);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    color: var(--color-text-primary);
}

/* Line numbers (optional) */
.html-source-view.with-line-numbers {
    display: flex;
}

.html-source-view .line-numbers {
    padding: var(--spacing-md) var(--spacing-sm);
    background: var(--color-bg-secondary);
    border-right: 1px solid var(--color-border-muted);
    text-align: right;
    user-select: none;
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
    line-height: 1.6;
}

/* Toolbar active state */
.view-mode-btn.active {
    color: var(--color-accent-primary);
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--color-accent-primary);
}
