/* Test Reports Styling */

.test-report {
    margin: 2em 0;
    padding: 1em;
    background-color: var(--pst-color-background);
    border: 1px solid var(--pst-color-border);
    border-radius: 0.5em;
}

.test-summary {
    margin-bottom: 2em;
}

.test-summary-table {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.test-cases-table {
    width: 100%;
    margin-top: 1em;
}

.test-pass {
    color: #28a745;
    font-weight: bold;
}

.test-fail {
    color: #dc3545;
    font-weight: bold;
}

.test-error {
    color: #ffc107;
    font-weight: bold;
}

.test-skip {
    color: #6c757d;
    font-style: italic;
}

.test-error-details {
    margin-top: 0.5em;
    padding: 0.5em;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 0.25em;
    font-size: 0.9em;
}

.test-error-details pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Status badges */
.test-status-badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    margin-left: 0.5em;
}

.badge-success {
    color: #fff;
    background-color: #28a745;
}

.badge-danger {
    color: #fff;
    background-color: #dc3545;
}

.badge-warning {
    color: #212529;
    background-color: #ffc107;
}

.badge-secondary {
    color: #fff;
    background-color: #6c757d;
}

/* Dropdown styling */
.sd-dropdown {
    margin-bottom: 1em;
}

.sd-dropdown-toggle {
    font-weight: bold;
}

/* Test trends chart */
.test-trends-container {
    position: relative;
    height: 300px;
    margin: 2em 0;
}

/* Responsive tables */
@media screen and (max-width: 768px) {
    .test-cases-table {
        font-size: 0.9em;
    }
    
    .test-cases-table th,
    .test-cases-table td {
        padding: 0.25em;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .test-report {
        background-color: var(--pst-color-background-muted);
    }
    
    .test-error-details {
        background-color: #5a1e1e;
        border-color: #842029;
    }
}