/* General Styles */
html {
    overflow: hidden;
}

body {
    display: flex;
    height: 100vh;
    padding: 0;
    margin: 0;
    background: #f5f6f8;
    font-family: Arial, sans-serif;
    flex-direction: column;
}

.content {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 50% 50%;
}

/* Layout adjustments */
.tests-tree {
    padding: 0 0.5em;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.fixtures {
    overflow-y: auto;
    flex-grow: 1;
}

/* Base fixture style */
.fixture {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Align elements to occupy available space */
    width: calc(100% - 1em);
    padding: 0.5em;
    background-color: #e0e0e0; /* Light background */
    border-radius: 0.5em;
    margin-bottom: 12px;
}

/* Ensure .test elements stack below .fixtureName when .fixture is selected */
.fixture.selected {
    flex-direction: column;
    align-items: flex-start;
}

/* Styling for .fixtureName */
.fixtureName {
    background: #9187dfdb;
    padding: 0.25em 1em;
    border-radius: 0.5em;
    font-weight: bold;
    font-size: 1.2em;
    color: #000;
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.fixtureName::before {
    content: "\25BA"; /* Unicode character for right-pointing triangle (►) */
    font-size: 1em;
    margin-right: 0.5em;
    opacity: 0.5;
}

.selected .fixtureName::before {
    opacity: 1;
    transform: rotate(90deg);
}

.fixture.selected .fixtureName {
    width: stretch;
}

/* .summary placed on the right side */
.fixture .summary {
    display: contents;
    gap: 0.5em;
    align-items: center;
    padding-left: 1em;
}

/* Styling the summary badges */
.fixture .summary div {
    margin-left: 10px;
    padding: 0.2em 0.5em;
    border-radius: 6px;
    font-weight: bold;
    color: #333;
}

.fixture .summary .passed {
    background-color: #a8e6a1;
}

.fixture .summary .failed {
    background-color: #f6a1a1;
}

.fixture .summary .broken {
    background-color: #f3e99f;
}

.fixture .summary .skipped {
    background-color: #cccccc;
}

/* Tests Styles */
.tests {
    margin-left: 1em;
}

.test {
    display: none;
    padding: 0.5em 1em;
    margin: 0.5em 0;
    border-radius: 0.5em;
    font-weight: bold;
    font-size: 1em;
    white-space: pre-line;
    transition: background 0.3s;
    position: relative;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* .test styling */
.fixture.selected .test {
    display: block;
    width: calc(100% - 2em);
    margin: 0.5em 1em;
    padding: 0.5em;
    border-radius: 0.25em;
    font-weight: bold;
    text-align: left;
}

/* Status-based colors for .test elements */
.fixture.selected .test[status="passed"] {
    border-left: 10px solid #4caf50;
}

.fixture.selected .test[status="failed"] {
    border-left: 10px solid #f44336;
}

.fixture.selected .test[status="broken"] {
    border-left: 10px solid #ffeb00;
}

.fixture.selected .test[status="skipped"] {
    border-left: 10px solid #cccccc;
}

/* Hover effects */
.fixtureName:hover,
.test:hover {
    background: #c9c9c9;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.test.selected {
    font-size: 1.1em;
    box-shadow: 0 0 0 2px #4f7cff;
}

/* Tag Icon Styles */
.test .tag {
    width: auto;
    height: auto;
    margin-left: 0.5em;
    cursor: pointer;
    display: inline-block;
}

.test .tag::before {
    content: "\2605"; /* Unicode character for a star */
    font-size: 1em;
}

.test .tag.filtered::before {
    content: "\2606"; /* Unicode character for an empty star (☆) */
}

.test .tag:hover {
    border: 1px double black;
    border-radius: 0.5em;
}

/* Hidden Elements */
.fixture.selected .test.hidden, .fixture.selected .test.tag-hidden, .fixture.selected .test.search-hidden, .fixture.selected .test.stable-hidden, .fixture.hidden {
    display: none;
}

.shortInfo {
  display: none;/*inline-flex*/
  align-items: center;
  gap: 6px;
}

.shortInfo > span,
.shortInfo > img,
.shortInfo > input {
  height: 20px;
}

.shortInfo > span {
  display: inline-flex;
  width: 20px;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 16px;
}

.shortInfo > img {
  width: 20px;
  height: 20px;
  vertical-align: text-bottom;
}

.shortInfo > input {
  box-sizing: border-box;
  height: 20px;
  padding: 0 6px;
  line-height: 20px;
  display: block;
  resize: horizontal;
  overflow: auto;
}
