/* 정규식 테스터 스타일 */
.regex-tester-tool textarea,
.regex-tester-tool input[type="text"] {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    line-height: 1.6;
}

.regex-tester-tool textarea:focus,
.regex-tester-tool input[type="text"]:focus {
    box-shadow: none;
}

/* 플래그 토글 버튼 */
.flag-toggle {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-weight: 600;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* 하이라이트 컨테이너 */
.highlight-container {
    position: relative;
}

.highlight-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bs-light);
    color: transparent;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow: hidden;
    line-height: 1.6;
    pointer-events: none;
    z-index: 1;
}

.highlight-textarea {
    position: relative;
    z-index: 2;
    background: transparent !important;
    color: #212529;
    resize: none;
    caret-color: #212529;
}

.highlight-backdrop mark {
    color: transparent;
}

/* 매칭 결과 패널 */
.match-results-panel {
    background-color: #f8f9fa;
}

.match-item code {
    color: #1e1e2e;
    background: rgba(0, 0, 0, 0.04);
    padding: 2px 6px;
    border-radius: 4px;
}

/* 접기/펼치기 화살표 회전 */
.collapse-chevron {
    transition: transform 0.2s ease;
}

a[aria-expanded="true"] .collapse-chevron {
    transform: rotate(180deg);
}

/* 치트시트 테이블 */
.regex-tester-tool .table td {
    padding: 0.35rem 0.5rem;
    border-color: rgba(0, 0, 0, 0.05);
}

/* 아코디언 스타일 */
.regex-tester-tool .accordion-button:not(.collapsed) {
    background-color: var(--bs-light);
    box-shadow: none;
}

.regex-tester-tool .accordion-button:focus {
    box-shadow: none;
}
