.test-container {
    width: 650px;
    height:auto;
    min-height: 300px; 
    border: 3px dashed #4A90E2;
    border-radius: 10px;
    padding: 30px; 
    margin: 80px auto;
    background-color: rgb(255, 255, 255);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

/* select test css */
.tab-switch {
  position: relative;
  display: flex;
  width: 360px;
  height: 50px;
  background: #e0e0e0;
  border-radius: 25px;
  margin: 0 auto 30px auto;
  overflow: hidden;
  font-family: 'Trebuchet MS', sans-serif;
}

.tab-option {
  flex: 1;
  text-align: center;
  line-height: 50px;
  z-index: 1;
  cursor: pointer;
  font-weight: 600;
  transition: color 0.3s;
  color: #333;
}

.tab-option.active {
  color: white;
}

.tab-slider {
  position: absolute;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgb(57, 122, 195), rgb(205, 65, 65));
  border-radius: 25px;
  transition: transform 0.3s ease-in-out;
  z-index: 0;
}


/* form css  */

.allow_passing {
    display: inline-flex;
    align-items:center; 
}

.time-inputs {
    display: flex;
    gap: 10px;  
  }

  .keyboard-img {
    max-width: 100%; 
    height: auto; 
  }

.create-test-btn{
  padding: 10px;
  border-radius: 15px;
  background-color: #343A40;
}

.wpm-desc{
  font-size: 1rem; 
  color: #444; 
  max-width: 400px; 
  margin-bottom: 1rem;
}

.dark-mode .test-container {
  background-color: #262A2D;
  border-color: black;
}


.dark-mode .tab-slider {
  background: linear-gradient(to right,  #FFC844, rgb(221, 107, 14));
}


.dark-mode .wpm-desc {
  color:white;
}


.dark-mode .create-test-btn {
  background-color:#FFFFFF;
  color:black;
}

/** Recent Test **/

.recent-tests-container-container {
  margin-top: 80px;
}

.test-card {
  background-color: #2c3034;
  border-radius: 10px;
  padding: 20px 30px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 90px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.test-score {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  margin-right: 20px;
  white-space: nowrap;
}

.test-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 400px; /* Fix size of the metrics bar */
}

.metric {
  text-align: center;
  color: white;
  font-size: 0.8rem;
}

.metric small {
  display: block;
  font-size: 0.7rem;
  color: #bbb;
  margin-bottom: 2px;
}

.test-details i {
  margin-bottom: 5px;
}