/* Regex Tester specific styles */

.tool-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8UFACTERERS_ASSOCIATIONpx;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    resize: vertical; /* Allow vertical resizing for textareas */
    box-sizing: border-box; /* Include padding in width */
}

.form-control::placeholder {
    color: #aaa;
}

.form-control:focus {
    border-color: #007bff; /* Primary color */
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

/* Flags Checkbox Group */
.flags-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Spacing between flags */
    margin-top: 10px;
    margin-bottom: 10px;
}

.flags-group label {
    display: flex;
    align-items: center;
    font-weight: normal; /* Override bold for flags */
    color: #555;
    cursor: pointer;
}

.flags-group input[type="checkbox"] {
    margin-right: 5px;
    accent-color: #007bff; /* Highlight color for checkbox */
}

.d-flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}

.gap-3 > *:not(:last-child) {
    margin-right: 15px; /* Adjust spacing between buttons */
}

/* Results Area */
#results {
    background-color: #f8f9fa;
    border-color: #e9ecef !important;
}

.output-area, .highlight-area, .replace-area {
    min-height: 50px; /* Smaller min-height for these specific areas */
    max-height: 300px; /* Limit height and add scroll */
    overflow-y: auto;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 5px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.9rem;
    color: #333;
    white-space: pre-wrap; /* Preserve whitespace and wrap lines */
    word-wrap: break-word; /* Break long words */
}

.output-area p {
    margin-bottom: 5px;
    line-height: 1.5;
}

.output-area .success-message {
    color: #28a745; /* Green for success */
    font-weight: bold;
}

.output-area .error-message {
    color: #dc3545; /* Red for errors */
    font-weight: bold;
}

.output-area .warning-message {
    color: #ffc107; /* Orange for warnings */
    font-weight: bold;
}

.output-area .text-muted {
    color: #6c757d;
}

/* Regex Highlight Specifics */
.highlight-area mark {
    background-color: #ffeb3b; /* Yellow highlight */
    padding: 0 2px;
    border-radius: 2px;
}

.highlight-area mark.group {
    background-color: #a7d9ff; /* Light blue for groups, if implemented */
    border: 1px solid #007bff;
}

.match-item {
    background-color: #e6f7ff; /* Light blue background for each match item */
    border-left: 3px solid #007bff; /* Blue border on the left */
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.9em;
}

.match-item strong {
    color: #0056b3; /* Darker blue for matched value */
}

.match-item span {
    color: #666;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .flags-group {
        flex-direction: column;
        gap: 8px;
    }
}