/* Regex Tester Styles */

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

/* Highlighted Text Box */
.regex-highlighted-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    min-height: 150px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

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

/* Match Highlight */
.regex-match {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 3px;
    padding: 2px 4px;
    font-weight: 600;
}

[data-bs-theme="dark"] .regex-match {
    background-color: #664d03;
    border-color: #ffc107;
    color: #fff;
}

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

.regex-match-item {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
}

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

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

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

.regex-match-position {
    color: #6c757d;
    font-size: 0.875rem;
}

.regex-match-content {
    margin-top: 0.5rem;
}

.regex-match-text {
    background-color: #e9ecef;
    border-left: 3px solid #0d6efd;
    padding: 0.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    word-break: break-word;
}

[data-bs-theme="dark"] .regex-match-text {
    background-color: #343a40;
    border-left-color: #0d6efd;
}

/* Capture Groups */
.regex-capture-groups {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background-color: #e7f3ff;
    border-radius: 0.375rem;
}

[data-bs-theme="dark"] .regex-capture-groups {
    background-color: #052c65;
}

.regex-capture-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #052c65;
}

[data-bs-theme="dark"] .regex-capture-label {
    color: #6ea8fe;
}

.regex-capture-item {
    margin: 0.25rem 0;
    padding-left: 1rem;
}

.regex-capture-index {
    font-weight: 600;
    color: #0d6efd;
}

[data-bs-theme="dark"] .regex-capture-index {
    color: #6ea8fe;
}

.regex-capture-item code {
    background-color: #fff;
    border: 1px solid #dee2e6;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
}

[data-bs-theme="dark"] .regex-capture-item code {
    background-color: #212529;
    border-color: #495057;
    color: #f8f9fa;
}
