#test {
    background-color: var(--background-second);
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    position: relative;
    min-height: 100vh;
}

/* INTRO */

#test .intro {
    max-width: 1000px;
    padding-left: 5vw;
    padding-right: 5vw;
}
#test .intro h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
    font-weight: 500;
}
#test .intro p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.4;
}
#test .intro #auth-code {
    background-color: transparent;
}
#test .intro .input-row {
  display: flex;
  gap: 10px;
  width: 100%;
}
#test .intro .input-row .auth-code {
  flex: 1;
  max-width: 20%;
}
#test .intro .input-row .run-test {
  flex: 3;
  max-width: 80%;
}
#test .intro .search-input {
    width: 100%;
    padding: 18px 24px;
    font-size: 1.4rem;
    border-radius: 20px;
    border: none;
    outline: none;
    margin-top: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s;
}
#test .intro .search-input:focus {
    box-shadow: 0 4px 24px var(--theme-color);
}

@media (max-width: 600px) {
  #test .intro .input-row {
    flex-direction: column;
  }
  #test .intro  .input-row .auth-code,
  #test .intro .input-row .run-test {
    margin-bottom: -20px;
    max-width: 100%;
  }
}

/* PROGRESS */

#test .progress {
  display: none;
}
#test .progress #step-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 0 1rem;
}
#test .progress #step-text {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}
#test .progress .progress-bar {
  width: 100%;
  max-width: 600px;
  height: 8px;
  background: white;
  border-radius: 4px;
  overflow: hidden;
}
#test .progress .progress-fill {
  width: 0%;
  height: 100%;
  background: var(--theme-color);
  transition: width 3s linear;
}

@media (max-width: 767px) {
  #test .progress #step-text {
    font-size: 2rem;
  }
}

/* STATUS */

#test .status {
  display: none;
  padding-left: 2vw;
  padding-right: 2vw;
}
#test .status .banner {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
#test .status .summary-left, .summary-right {
  flex: 1 1 40%;
}
#test .status .summary-left h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
#test .status .summary-left p {
  font-size: 1rem;
  line-height: 1.3;
  color: #555;
}
#test .status .summary-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
#test .status, 
.result {
  font-size: 1rem;
  color: #333;
}
#test .status, 
#asset-result,
#technique-result {
  color: #222;
}
#test .status #timer {
  font-size: 4rem;
  color: #222;
  text-align: center;
}
#test .status .grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
#test .status .grid-box {
  width: 19%;
  background: #f0f0f0;
  padding: 10px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.2s, background 0.2s;
  flex-shrink: 0;
}
#test .status .grid-box:hover {
  background-color: var(--background-primary);
}
#test .status .grid-box .name {
  font-weight: bold;
  margin-bottom: 6px;
  word-wrap: break-word;
}
#test .status .grid-box .label {
  font-size: 12px;
  color: var(--text-dark);
}
#test .status .grid-box.selected.red {
  background: #fcdada;
  border-color: red;
}

@media (max-width: 768px) {
  #test .status .banner {
    flex-direction: column;
    gap: 1rem;
    padding: 16px;
  }

  #test .status .summary-left,
  #test .status .summary-right {
    flex: 1 1 100%;
    text-align: left;
  }

  #test .status .summary-left h2 {
    font-size: 1.8rem;
  }

  #test .status #timer {
    font-size: 2.5rem;
  }

  #test .status .grid {
    flex-direction: column;
    gap: 10px;
  }

  #test .status .grid-box {
    width: 100%;
  }
}
