/* General styles for the body */
body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #1e1e1e;
    color: #d4d4d4;
    line-height: 1.6;
}
h1 {
    color: #ffffff;
    text-align: center;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

/* Summary section styles */
.summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    padding: 20px;
    background: #2d2d2d;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.summary .item {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    background: #3c3c3c;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
}
.summary .item:hover {
    transform: translateY(-5px);
}
.summary .item span {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #9cdcfe;
}
.summary .item small {
    display: block;
    font-size: 14px;
    color: #aaaaaa;
}
.summary .item.pass {
    border-top: 7px solid #4caf50;
}
.summary .item.fail {
    border-top: 7px solid #f44336;
}
.summary .item.summ {
    border-top: 7px solid #9cdcfe;
}

/* Chart container styles */
.chart-container {
    width: 100px;
    height: 100px;
    margin-left: auto;
}

/* Filter buttons and search bar */
.filter-buttons, .search-container {
    text-align: center;
    margin: 20px 0;
}
.filter-buttons button, .search-container input {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    background-color: #007acc;
    color: white;
    cursor: pointer;
}
.filter-buttons button:hover {
    background-color: #005f99;
}
.search-container input {
    width: 300px;
    padding: 8px;
    background-color: #3c3c3c;
    color: #d4d4d4;
    border: 1px solid #555555;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    table-layout: fixed;
    border: 1px solid #555555;
}
th, td {
    padding: 5px;
    text-align: center;
    word-wrap: break-word;
    border: 1px solid #555555;
}
th {
    background-color: #3c3c3c;
    color: #9cdcfe; /* rgb(255, 226, 111); */
    padding: 10px;
}
td {
    padding: 5px;
    text-align: center;
    color: #d4d4d4;
}
td.pass {
    color: #4caf50;
    font-weight: bold;
}
td.fail {
    color: #f44336;
    font-weight: bold;
}
.group-header {
    background:  #2d2d2d;
    color: #d4d4d4;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    border-bottom: 1px solid #555555;
    border-radius: 4px;
}
.group-header:hover {
    background: #3c3c3c;
}
.hidden {
    display: none;
}

.test-link {
    color: #569cd6;
    text-decoration: none;
    font-weight: bold;
}
.test-link:hover {
    text-decoration: underline;
    color: #9cdcfe;
}

/* Highlight.js integration for syntax highlighting */
pre code {
    font-size: 1.2em;
    line-height: 1.5;
    background: #1e1e1e;
    color: #dcdcdc;
    border-radius: 5px;
    padding: 10px;
    display: block;
    overflow-x: auto;
}

/* Prism.js syntax highlighting customization */
pre code .hljs-keyword, pre code .hljs-selector-tag {
    color: #569cd6; /* Keywords and tags */
    font-weight: bold;
}
pre code .hljs-string, pre code .hljs-title, pre code .hljs-name {
    color: #d69d85; /* Strings and titles */
}
pre code .hljs-number, pre code .hljs-literal {
    color: #b5cea8; /* Numbers and literals */
}
pre code .hljs-comment {
    color: #6a9955; /* Comments */
    font-style: italic;
}
pre code .hljs-attribute, pre code .hljs-variable {
    color: #9cdcfe; /* Attributes and variables */
}
pre code .hljs-built_in, pre code .hljs-class {
    color: #4ec9b0; /* Built-in objects and classes */
}
pre code .hljs-meta {
    color: #dcdcaa; /* Metadata */
    font-style: italic;
}
pre code .hljs-function {
    color: #c586c0; /* Functions */
}
pre code .hljs-emphasis {
    font-style: italic; /* Emphasized text */
}
pre code .hljs-strong {
    font-weight: bold; /* Strong text */
}

/* Test code styles */
.test-code {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #555555;
    border-radius: 5px;
    background-color: #1e1e1e;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.test-code.highlight-temporary {
    background-color: #5a2c2c;
    border-color: #d16969;
    transition: background-color 0.3s, border-color 0.3s;
}
.test-code.highlight-persistent {
    background-color: #253545;
    border-color: #569cd6;
}
.test-code h2 {
    font-size: 1.2em;
    color: #9cdcfe;
    margin-bottom: 10px;
}

/* Fixed column widths */
th:nth-child(1), td:nth-child(1) {
    width: 10%;
}
th:nth-child(2), td:nth-child(2) {
    width: 45%;
}
th:nth-child(3), td:nth-child(3) {
    width: 35%;
}
th:nth-child(4), td:nth-child(4) {
    width: 10%;
}

/* Responsywność */
@media (max-width: 768px) {
    th:nth-child(1), td:nth-child(1) {
        width: 15%;
    }
    th:nth-child(2), td:nth-child(2) {
        width: 50%;
    }
    th:nth-child(3), td:nth-child(3) {
        width: 25%;
    }
    th:nth-child(4), td:nth-child(4) {
        width: 10%;
    }
}
