/* Linter Error Display Styles */

.linter-errors-container {
    background-color: #333333; /* Dark Gray background */
    border: 1px solid #8A2BE2; /* Purple border */
    border-radius: 8px;
    margin-top: 15px;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #f0f0f0; /* Light gray text */
    overflow: hidden; /* Ensures the container respects the border radius */
}

.linter-summary {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #4a4a4a;
    border-bottom: 1px solid #8A2BE2; /* Purple separator */
    font-size: 1em;
    font-weight: 600;
    color: #ffffff;
    cursor: default;
}

.linter-summary span {
    margin-right: 10px;
    font-size: 1.2em;
}

.linter-file-details {
    border-top: 1px solid #4a4a4a;
}

.linter-file-details:first-of-type {
    border-top: none;
}

.linter-file-details summary {
    padding: 12px 15px;
    font-weight: 500;
    background-color: #3a3a3a;
    cursor: pointer;
    outline: none;
    transition: background-color 0.2s ease;
    list-style: none; /* Remove default marker */
    display: flex;
    align-items: center;
}

.linter-file-details summary::-webkit-details-marker {
    display: none; /* Hide default marker in WebKit */
}

.linter-file-details summary::before {
    content: '▶';
    margin-right: 10px;
    font-size: 0.8em;
    transition: transform 0.2s ease;
}

.linter-file-details[open] > summary::before {
    transform: rotate(90deg);
}

.linter-file-details[open] > summary {
    background-color: #4a4a4a;
    border-bottom: 1px solid #8A2BE2;
}

.linter-file-details summary:hover {
    background-color: #5a5a5a;
}

.linter-error-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background-color: #333333;
}

.linter-error-item:not(:last-child) {
    border-bottom: 1px solid #4a4a4a;
}

.linter-error-location {
    font-weight: 600;
    color: #a0a0a0;
    font-family: 'Courier New', Courier, monospace;
}

.linter-error-message {
    color: #f0f0f0;
    word-break: break-word;
}

.linter-error-message strong {
    font-weight: 700;
}

.linter-error-rule {
    color: #888;
    font-style: italic;
    justify-self: end;
}

/* Severity-specific styles */
.linter-error-item.severity-error {
    border-left: 4px solid #e74c3c; /* A clearer red for errors */
    padding-left: 11px;
}

.linter-error-item.severity-error .linter-error-message strong {
    color: #e74c3c;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .linter-error-item {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 12px;
    }

    .linter-error-location {
        grid-row: 1;
        font-size: 0.85em;
    }

    .linter-error-message {
        grid-row: 2;
    }

    .linter-error-rule {
        grid-row: 3;
        justify-self: start;
        font-size: 0.8em;
    }
} 