:root {
    --primary: rgba(16,185,129,0.40);
    --primary-dark: rgba(20,184,166,0.10);
    --secondary: rgba(20,184,166,0.45);
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --light: #f8f9fa;
    --dark: #212529;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --sidebar-bg: #f5f7fb;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --border-color: #e0e6ef;
    --error-1: #e3f2fd;
    --error-1-border: #bbdefb;
    --error-2: #fff8e1;
    --error-2-border: #ffecb3;
    --error-3: #ffebee;
    --error-3-border: #ffcdd2;
    --fixed-error: #e0e0e0;
    --fixed-error-border: #b0b0b0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*Added to fix footer*/
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: #f5f7fb;
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    gap: 8px;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
#saveDocumentBtn {
    margin-left: auto;
}
#pruefenBtn {
    background-color: #C3EDE1;
    border-color: #9BE2CC;
    color: black;
    font-weight: bold;
}
#saveDocumentBtn:hover {
    background-color: #C3EDE1;
    border-color: #9BE2CC;
    color: black;
}

.editor-button {
    padding: 8px 12px;
    margin: 3px;
    background-color: #e9ecef;
    color: #34495e;
    border: 1px solid #adb5bd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95em;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}
.editor-button:hover {
    background-color: #dee2e6;
    border-color: #868e96;
}
select.editor-button {
    padding: 7px 10px;
    min-width: 80px;
}
input[type="color"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 35px;
    height: 35px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    border-radius: 4px;
    overflow: hidden;
    vertical-align: middle;
    border: 1px solid #adb5bd;
}
input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
input[type="color"]::-webkit-color-swatch {
    border: none;
}
input[type="color"]::-moz-color-swatch {
    border: none;
}

/* Main Content Styles */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    margin: 0 auto; /* Removed margin-top/bottom to maximize space */
    width: 100%;
    padding: 0 20px;
    height: 100%; /* Ensure main takes full height */
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary), #0d47a1);
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: white;
}

.header-links {
    display: flex;
    gap: 20px;
}

.header-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    padding: 5px 8px;
    border-radius: 4px;
}

.header-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}
/**/

#editorContainer {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    /* Use viewport height minus estimated header/toolbar height */
    height: calc(100vh - 140px);
    min-height: 0; /* Crucial for Firefox flexbox scrolling */
}

.main-content {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
}


#editor {
    flex: 3;
    padding: 20px 25px;
    font-size: 16px;
    line-height: 1.6;
    outline: none;
    overflow-y: auto; /* Scroll internally */
    background-color: #fff;
    border-right: 1px solid #e9ecef;
    white-space: pre-wrap;
    word-wrap: break-word;
    min-width: 300px;
    max-width: 800px;
    margin: 0 auto;
    height: 100%; /* Fill the flex container */
}

#editor h1 { font-size: 2em; margin: 0.67em 0; }
#editor h2 { font-size: 1.5em; margin: 0.83em 0; }
#editor p { margin: 1em 0; }
#editor b, #editor strong { font-weight: bold; }
#editor i, #editor em { font-style: italic; }
#editor u { text-decoration: underline; }

#editor font[size="1"] { font-size: 0.8em; }
#editor font[size="2"] { font-size: 1em; }
#editor font[size="3"] { font-size: 1.2em; }
#editor font[size="4"] { font-size: 1.5em; }

#sidebar {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    padding: 20px 25px;
    background-color: #f2f5f9;
    border-left: 1px solid #e9ecef;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: inset 2px 0 5px rgba(0, 0, 0, 0.03);
}
#sidebar h2 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.6em;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}
#errorInfo {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
#errorInfo h3 {
    margin-top: 0;
    color: #007bff;
    font-size: 1.3em;
    margin-bottom: 10px;
}
#errorInfo p {
    margin: 5px 0;
    font-size: 0.95em;
    line-height: 1.5;
}
#errorInfo .error-info-category {
    font-weight: bold;
    color: #6c757d;
}
.confirm-button {
    padding: 10px 18px;
    background-color: #28a745;
    color: white;
    border: 1px solid #218838;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    font-size: 1em;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.confirm-button:hover {
    background-color: #218838;
    border-color: #1e7e34;
}
.confirm-button:disabled {
    background-color: #cccccc;
    border-color: #aaaaaa;
    cursor: not-allowed;
}

#ratedErrorList {
    flex-grow: 1;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
#ratedErrorList h3 {
    margin-top: 0;
    color: #6c757d;
    font-size: 1.3em;
    margin-bottom: 10px;
    border-bottom: 1px dashed #e0e0e0;
    padding-bottom: 8px;
}
#ratedErrorsUl {
    list-style: none;
    padding: 0;
    margin: 0;
}
#ratedErrorsUl li {
    padding: 8px 0;
    border-bottom: 1px dotted #f0f0f0;
    font-size: 0.9em;
    color: #555;
    word-break: break-word;
}
#ratedErrorsUl li:last-child {
    border-bottom: none;
}

/* Error Highlighting */
.error-span {
    padding: 1px 2px;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
    display: inline-block;
    line-height: inherit;
}
.error-1 {
    background-color: #add8e6; /* Light Blue */
    border: 1px solid #87ceeb;
}
.error-2 {
    background-color: #fffacd; /* Lemon Chiffon */
    border: 1px solid #f0e68c;
}
.error-3 {
    background-color: #ffb6c1; /* Light Red */
    border: 1px solid #ff6a81;
}
.fixed-error { /* Used for rated errors too */
    background-color: #e0e0e0; /* Light Gray */
    border: 1px solid #b0b0b0;
}
.fixed-error:hover {
    background-color: #d5d5d5;
}

/* General Custom Highlight */
.custom-highlight {
    padding: 1px 2px;
    border-radius: 3px;
    box-sizing: border-box;
    display: inline-block;
    line-height: inherit;
}

/* Rating and Checkbox specific styles */
#ratingSection {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    display: none; /* Hidden by default, shown on error click */
}
#ratingSlider {
    width: 100%;
    height: 8px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
    border-radius: 4px;
}
#ratingSlider:hover {
    opacity: 1;
}
#ratingSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}
#ratingSlider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}
#markAsRatedBtn {
    display: none; /* Hidden by default, shown on error click */
}

/* Collapsible lower section styles */
#lowerSectionContainer {
    border-top: 1px solid #e9ecef;
    /* Removed margin-top to save space */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-shrink: 0; /* Prevent this from shrinking if content is long */
}


#lowerSectionHeader {
    padding: 10px 25px;
    background-color: #f8f9fa;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0; /* Prevent header from shrinking */
}

#lowerSectionContent {
    padding: 0 25px;
    overflow-y: auto; /* Scroll content if it gets too long */
    display: none;
    /* Removed flex: 1 to allow it to expand naturally or be constrained by parent */
    max-height: 50vh; /* Limit the expansion to half the viewport height */
}

#resizeHandle {
    height: 5px;
    background-color: #e9ecef;
    cursor: ns-resize;
    display: none;
}

#bottomSectionsContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
    overflow-y: auto;
    padding: 0;
}

#notFoundErrorsSection, #documentNoteSection { /* Apply shared styles */
    flex: 1; /* Both take equal space */
    min-width: 300px; /* Ensure they don't get too small */
    background-color: #fff;
    border-top: 1px solid #e9ecef;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px 25px;
}

#notFoundErrorsSection h3 {
    color: #dc3545;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4em;
    border-bottom: 1px dashed #f0f0f0;
    padding-bottom: 8px;
}
#notFoundErrorsUl {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
    color: #555;
}
#notFoundErrorsUl li {
    margin-bottom: 5px;
    line-height: 1.4;
    font-size: 0.95em;
}

#documentNoteSection h3 { /* Style for note section title */
    color: #2c3e50; /* A darker blue/grey */
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4em;
    border-bottom: 1px dashed #e0e0e0;
    padding-bottom: 8px;
}
#documentNoteDisplay {
    color: #555;
    line-height: 1.5;
    font-size: 0.95em;
    word-wrap: break-word; /* Ensure long notes wrap */
}
.placeholder-text { /* Style for placeholder messages */
    color: #6c757d;
    font-style: italic;
}

/* Loading indicator */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    display: none;
    margin: 0 auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    #editor, #sidebar, #lineNumbers {
        flex: none;
        width: 100%;
        min-width: unset;
        max-width: unset;
    }
    #editor {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
 #sidebar {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    padding: 20px 25px;
    background-color: #f2f5f9;
    border-left: 1px solid #e9ecef;
    overflow-y: auto; /* Scroll internally */
    display: flex;
    flex-direction: column;
    box-shadow: inset 2px 0 5px rgba(0, 0, 0, 0.03);
    height: 100%; /* Fill the flex container */
    min-height: 0; /* Crucial for Firefox flexbox scrolling */
}
    #lineNumbers {
        display: none;
    }
    .toolbar {
        justify-content: center;
    }
    #saveDocumentBtn {
        margin-left: 0;
    }
    #bottomSectionsContainer { /* Stack sections on small screens */
        flex-direction: column;
        padding: 0 15px; /* Adjust padding for smaller screens */
    }
    #notFoundErrorsSection, #documentNoteSection {
        min-width: unset; /* Remove min-width on small screens */
    }
}
/* Add loading spinner style */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,.1);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer Styles */
footer {
    background: linear-gradient(to top, #f0f4f8, white);
    color: var(--gray-600);
    padding: 24px 20px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--gray-700);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links a i {
    font-size: 0.85em;
}

.copyright {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.static-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.static-content h1 {
    color: #2c5282;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.static-content h2 {
    color: #4a5568;
    margin-top: 1.5rem;
}

.help-item, .faq {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #edf2f7;
}

/*Added for Top Banner links*/
/* General container styling */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
}

/* Form styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-check {
    margin-bottom: 0.75rem;
}

.form-actions {
    margin-top: 2rem;
    text-align: right;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-left: 0.5rem;
}

.btn-primary {
    background-color: #2c5282;
    color: white;
}

.btn-secondary {
    background-color: #e2e8f0;
    color: #4a5568;
}

/* Stats cards */
.stats-summary{
    display:flex;            /* or display:grid; */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap:1rem;                /* space between cards */
    flex-wrap:wrap;          /* optional – wrap on small screens */
}

.stat-card {
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    color: white;
}

.stat-card.critical { background: linear-gradient(135deg, #e53e3e, #c53030); }
.stat-card.medium { background: linear-gradient(135deg, #dd6b20, #c05621); }
.stat-card.minor { background: linear-gradient(135deg, #38a169, #2f855a); }

.stat-value {
    font-size: 3rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Database cards */
.database-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #f8fafc;
}

.database-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.database-header h2 {
    margin: 0;
    color: #2d3748;
}

.version {
    background: #edf2f7;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.database-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.meta-label {
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Status indicators */
.saved-indicator {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
}

.saving { background: #e2e8f0; color: #4a5568; }
.saved { background: #c6f6d5; color: #2f855a; }
.error { background: #fed7d7; color: #c53030; }

/* Chart container */
.chart-container {
    height: 300px;
    margin: 2rem 0;
}


/*Save document*/
.loader {
    display: none;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#sidebar p .error-info-category {
    font-weight: 600;
    margin-right: 4px;
}
#sidebar #errorSourceDisplay {
    font-style: italic;
    color: #555;
}

/* ====== Load Menu Styles ====== */
.load-menu-container {
    position: relative;
    display: inline-block;
}

.load-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 350px;
    max-width: 450px;
    max-height: 500px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin-top: 5px;
    padding: 10px;
}

.dropdown-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.dropdown-header {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recents-status {
    font-size: 0.85em;
    color: var(--gray-500);
    font-weight: normal;
}

.recents-status.disabled {
    color: var(--gray-400);
}

.dropdown-list {
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-item {
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 4px;
}

.dropdown-item:hover:not(.disabled):not(.placeholder) {
    background-color: var(--gray-100);
}

.dropdown-item.disabled {
    color: var(--gray-400);
    cursor: not-allowed;
}

.dropdown-item.placeholder {
    color: var(--gray-500);
    font-style: italic;
    cursor: default;
}

.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recent-info {
    flex: 1;
    min-width: 0;
}

.recent-name {
    display: block;
    font-weight: 500;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-date {
    display: block;
    font-size: 0.85em;
    color: var(--gray-500);
    margin-top: 2px;
}

.recent-actions {
    display: flex;
    gap: 4px;
    margin-left: 8px;
}

.recent-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 1em;
    transition: background-color 0.2s ease;
    opacity: 0.7;
}

.recent-action-btn:hover {
    background-color: var(--gray-200);
    opacity: 1;
}

.recent-action-btn.load-btn:hover {
    background-color: var(--primary);
}

.recent-action-btn.rename-btn:hover {
    background-color: var(--info);
}

.recent-action-btn.delete-btn:hover {
    background-color: var(--danger);
}

.example-item {
    font-weight: 500;
    color: var(--gray-700);
}

.dropdown-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.dropdown-action-btn {
    width: 100%;
    padding: 10px 12px;
    background-color: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dropdown-action-btn:hover {
    background-color: var(--gray-200);
    border-color: var(--gray-400);
}

.dropdown-action-btn .file-icon {
    font-size: 1.2em;
}

.recents-note {
    font-size: 0.75em;
    color: var(--gray-500);
    margin-top: 8px;
    padding: 8px;
    background-color: var(--gray-100);
    border-radius: 4px;
    line-height: 1.4;
}

/* Scrollbar styling for dropdown */
.load-dropdown::-webkit-scrollbar,
.dropdown-list::-webkit-scrollbar {
    width: 8px;
}

.load-dropdown::-webkit-scrollbar-track,
.dropdown-list::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

.load-dropdown::-webkit-scrollbar-thumb,
.dropdown-list::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

.load-dropdown::-webkit-scrollbar-thumb:hover,
.dropdown-list::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Error Filter Section Styles in Sidebar */
#errorFilterSection {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

#errorFilterSection h3 {
    font-size: 1em;
    margin-bottom: 10px;
    color: var(--gray-700);
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.85em;
    margin-right: 5px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    user-select: none;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.filter-checkbox:hover {
    background-color: var(--gray-200);
}

.filter-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 14px;
    height: 14px;
    accent-color: var(--primary);
}

.filter-checkbox span {
    font-size: 0.8em;
    color: var(--gray-700);
}

#errorTypeFilters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Hidden error spans - remove highlight but keep text visible */
.error-span.hidden {
    background-color: transparent !important;
    border: none !important;
    color: inherit !important;
    text-decoration: none !important;
    cursor: text !important;
}