/* =========== Google Fonts ============ */
@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap");

/* =============== Globals ============== */
* {
  font-family: "Ubuntu", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #2a2185;
  --white: #fff;
  --gray: #f5f5f5;
  --black1: #222;
  --black2: #999;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  position: relative;
  width: 100%;
}

/* =============== Navigation ================ */
.navigation {
  position: fixed;
  width: 300px;
  height: 100%;
  background: var(--blue);
  border-left: 10px solid var(--blue);
  transition: 0.5s;
  overflow: hidden;
}
.navigation.active {
  width: 80px;
}

.navigation ul {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.navigation ul li {
  position: relative;
  width: 100%;
  list-style: none;
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
}

.navigation ul li:hover,
.navigation ul li.hovered {
  background-color: var(--white);
}

.navigation ul li:nth-child(1) {
  margin-bottom: 40px;
  pointer-events: none;
}

.navigation ul li a {
  position: relative;
  display: block;
  width: 100%;
  display: flex;
  text-decoration: none;
  color: var(--white);
}
.navigation ul li:hover a,
.navigation ul li.hovered a {
  color: var(--blue);
}

.navigation ul li a .icon {
  position: relative;
  display: block;
  min-width: 60px;
  height: 60px;
  line-height: 75px;
  text-align: center;
}
.navigation ul li a .icon ion-icon {
  font-size: 1.75rem;
}

.navigation ul li a .title {
  position: relative;
  display: block;
  padding: 0 10px;
  height: 60px;
  line-height: 60px;
  text-align: start;
  white-space: nowrap;
}

/* --------- curve outside ---------- */
.navigation ul li:hover a::before,
.navigation ul li.hovered a::before {
  content: "";
  position: absolute;
  right: 0;
  top: -50px;
  width: 50px;
  height: 50px;
  background-color: transparent;
  border-radius: 50%;
  box-shadow: 35px 35px 0 10px var(--white);
  pointer-events: none;
}
.navigation ul li:hover a::after,
.navigation ul li.hovered a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -50px;
  width: 50px;
  height: 50px;
  background-color: transparent;
  border-radius: 50%;
  box-shadow: 35px -35px 0 10px var(--white);
  pointer-events: none;
}

/* ===================== Main ===================== */
.main {
  position: absolute;
  width: calc(100% - 300px);
  left: 300px;
  min-height: 100vh;
  background: var(--white);
  transition: 0.5s;
}
.main.active {
  width: calc(100% - 80px);
  left: 80px;
}

.topbar {
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}

.toggle {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  cursor: pointer;
}

.search {
  position: relative;
  width: 400px;
  margin: 0 10px;
}

.search label {
  position: relative;
  width: 100%;
}

.search label input {
  width: 100%;
  height: 40px;
  border-radius: 40px;
  padding: 5px 20px;
  padding-left: 35px;
  font-size: 18px;
  outline: none;
  border: 1px solid var(--black2);
}

.search label ion-icon {
  position: absolute;
  top: 0;
  left: 10px;
  font-size: 1.2rem;
}

.user {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
}

.user img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card {
  position: relative;
  background: var(--white);
  padding: 30px;
  margin: 20px;
  margin-top: 50px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
}

.card .cardName {
  color: var(--black2);
  font-size: 1.1rem;
  margin-top: 5px;
}
.card h2{
  font-weight: 700;
  color: var(--blue);
  font-size: xx-large;
}

.card .iconBx ion-icon{
  font-size: 3.5rem;
  color: var(--black2);
  size: 80px;
}
/* ================== Order Details List ============== */
.details {
  position: relative;
  width: 100%;
  padding: 20px;
  display: grid;
 
  grid-gap: 30px;
  /* margin-top: 10px; */
}

.details .recentOrders {
  position: relative;
  display: grid;
  min-height: 100px;
  background: var(--white);
  padding: 20px;
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
  border-radius: 20px;
}

.details .cardHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.cardHeader h2 {
  font-weight: 600;
  color: var(--blue);
}
.cardHeader .btn {
  position: relative;
  padding: 5px 10px;
  background: var(--blue);
  text-decoration: none;
  color: var(--white);
  border-radius: 6px;
}

ion-icon {
  font-size: 24px;
}

.cardHeader{
  display: flex;
   align-items: center;
   grid-template-columns: 1fr 1fr;
}

span{
  width: 120px;
  height: 30px;
  text-align: center;
  margin-left: 0%;
  margin-right: 0%;
}




h1 {
    margin-bottom: 20px;
    text-align: center;
    color: #007BFF;
}

/* form {
    display: flex;
    flex-direction: column;
} */

label {
    margin-top: 10px;
    color: #333;
}

input, textarea, select {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ddd;
    width: 100%;
    box-sizing: border-box;
}



.btnquize{
  
    width: 100%;
    background-color: white;
    padding: 20px;
}

button {
    background-color: blue;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
   margin-left: 80%;
}

button:hover {
    background-color: #0056b3;
}

.quiz-info{
    display: flex;
   align-items: center;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 96%;
    margin-left: 4%;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
    align-self: center;
    margin-top: 5%;

}
.options{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    align-self: center;
    margin-left: 2%;
    margin-top: 2%;
    width: 100%;
}
.option{
    /* display: grid; */
    /* grid-template-columns: repeat(2fr,1fr); */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 5px;
    border: lightgray solid 1pt;
}
.option input[type="text"]{
    border: none;
    flex: 3;
}

.option input[type="radio"]{
    border: none;
    flex: 1;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 5px solid blue;
    border-radius: 50%;
    /* width: 20px; */
    height: 50px;
    max-width: 50px;
    position: relative;
    margin-right: 10px;
    cursor: pointer;
}
.option input[type="radio"]:checked {
    border-color: blue;
    background-color: blue;
}

.option input[type="radio"]:checked::after{

    content: '';
    display: block;
    max-width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.question{
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    align-self: center;
    margin-left: 2%;
    margin-top: 2%;
    width: 100%;
}
#quizContainer {
    margin-top: 20px;
}

.quiz-item {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
    border: 1px solid #ddd;
}

.quiz-item h3 {
    margin: 0 0 10px 0;
}

.SavedUnsevedQuestion{
    display: flex;
    width: 100%;
    background-color: white;
    grid-template-columns: 20%, 80%;
    gap: 2%;
    padding: 20px;
   
    
}

.qestionReponse{
    flex: 8;
  
}

.quizContainer{
    flex: 3;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-left: 2%;
    margin-top: 1%;  
} 

.questionCard{
  padding: 15px;
    border-radius: 5px;
    border: lightgray solid 2pt;
    display: flex;
    grid-template-columns: 8%, 90%;
    gap: 2%;
    width: 100%;
}

.questionNumber{
  flex: 1;
  font-size: xx-large;
  max-width: 10px;
  margin-right: 10px;
}
.savedQuestion{
  flex: 9;
  font-size: X-larger;
  margin-left: 20px;
}

.savedQuestion h3{
  color: green;
}
/* ====================== Responsive Design ========================== */
@media (max-width: 991px) {
    .navigation {
      left: -300px;
    }
    .navigation.active {
      width: 300px;
      left: 0;
    }
    .main {
      width: 100%;
      left: 0;
    }
    .main.active {
      left: 300px;
    }
    .cardBox {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 768px) {
    .details {
      grid-template-columns: 1fr;
    }
    .recentOrders {
      overflow-x: auto;
    }
    .status.inProgress {
      white-space: nowrap;
    }
  }
  
  @media (max-width: 480px) {
    .cardBox {
      grid-template-columns: repeat(1, 1fr);
    }
    .cardHeader h2 {
      font-size: 20px;
    }
    .user {
      min-width: 40px;
    }
    .navigation {
      width: 100%;
      left: -100%;
      z-index: 1000;
    }
    .navigation.active {
      width: 100%;
      left: 0;
    }
    .toggle {
      z-index: 10001;
    }
    .main.active .toggle {
      color: #fff;
      position: fixed;
      right: 0;
      left: initial;
    }
  }
@media (max-width: 600px) {
    .container {
        width: 95%;
    }
}
