/* XPath & CSS Selector Tester Styles */

.selector-textarea {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
}

/* Highlighted HTML Box */
.selector-highlighted-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

[data-bs-theme="dark"] .selector-highlighted-box {
    background-color: #212529;
    border-color: #495057;
}

.selector-html-pre {
    margin: 0;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    white-space: pre-wrap;
    word-break: break-word;
    color: #212529;
}

[data-bs-theme="dark"] .selector-html-pre {
    color: #f8f9fa;
}

/* Matches Container */
.selector-matches-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.selector-match-item {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: 4px solid #0d6efd;
    border-radius: 0.375rem;
    padding: 1rem;
}

[data-bs-theme="dark"] .selector-match-item {
    background-color: #212529;
    border-color: #495057;
    border-left-color: #6ea8fe;
}

.selector-match-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

[data-bs-theme="dark"] .selector-match-header {
    border-bottom-color: #495057;
}

.selector-match-tag {
    color: #0d6efd;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

[data-bs-theme="dark"] .selector-match-tag {
    color: #6ea8fe;
}

.selector-match-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.selector-match-attrs,
.selector-match-text {
    font-size: 0.875rem;
}

.selector-match-attrs code {
    background-color: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

[data-bs-theme="dark"] .selector-match-attrs code {
    background-color: #343a40;
    color: #f8f9fa;
}

.selector-match-text {
    color: #495057;
    line-height: 1.5;
}

[data-bs-theme="dark"] .selector-match-text {
    color: #adb5bd;
}
