/* Digital3D Regex Tester - Global Styles */

html, body {
    font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Monospace textareas */
textarea.font-monospace,
input.font-monospace {
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', 'Courier New', monospace;
    font-size: 0.9rem;
}

pre {
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', 'Courier New', monospace;
    font-size: 0.875rem;
}

/* Focus styles */
.btn:focus, .btn:active:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(var(--bs-primary-rgb), 0.35);
}

/* Error boundary */
.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
    border-radius: 0.375rem;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* Card tweaks for dark mode */
[data-bs-theme="dark"] .card {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Table tweaks */
.table-sm td, .table-sm th {
    vertical-align: middle;
}

/* Match highlight animations */
@keyframes highlightFadeIn {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

pre span[title^="Match"] {
    animation: highlightFadeIn 0.3s ease-in;
}

/* Engine selector active state enhancements */
.btn-check:checked + .btn-outline-primary,
.btn-check:checked + .btn-outline-success,
.btn-check:checked + .btn-outline-warning {
    font-weight: 600;
}

/* Scrollable table on small screens */
.table-responsive {
    max-height: 500px;
    overflow-y: auto;
}

/* Admin dashboard card */
.stat-card {
    text-align: center;
    padding: 1rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}
