/*LogIn Page*/
.nav_bar {
    background-color: #003cd4;
    height: 250px;
    border-top-right-radius: 120px;
    border-bottom-left-radius: 120px;
    position: relative;
}

.bottom-shape {
    background-color: #003cd4;
    height: 50px;
    border-top-right-radius: 60px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
}

.logo {
    width: 110px;
    height: 110px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -55px auto 10px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.form-container {
    margin-top: 20px;
    padding: 0 30px;
}

.form-control {
    border-radius: 25px;
    background-color: #f1f1f1;
    border: none;
    padding-right: 40px;
}

.form-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #003cd4;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.btn-login {
    border-radius: 25px;
    background-color: #003cd4;
    color: white;
    width: 60%;
    padding: 10px;
    font-weight: bold;
}

.test-btn {
    color: #003cd4;
    text-align: center;
    font-weight: bold;
    display: block;
    margin-top: 15px;
    font-size: 18px;
    text-decoration: none;
}

.school_name {
    color: white;
    text-align: center;
    font-size: 18px;
}

.welcome-title {
    color: #003cd4;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-top: 40px;
}

.welcome-subtitle {
    text-align: center;
    color: #444;
    font-size: 14px;
    margin-bottom: 20px;
}

.forgot-password {
    font-size: 13px;
    color: #aaa;
    text-align: start;
    margin-top: -10px;
    margin-bottom: 10px;
}

/*Sutdents Page*/
.hero {
    background: url('/images/img2.jpg') center/cover no-repeat;
    height: 200px;
    border-bottom-left-radius: 100% 160%;
    border-bottom-right-radius: 100% 160%;
    position: relative;
}

.logo {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid #eee;
}

.logo img {
    width: 100%;
    height: auto;
}

.student-card {
    background-color: #1a2fa0;
    border-radius: 0 60px 0 60px;
    padding: 20px 15px 10px;
    margin: 60px auto auto;
    width: 80%;
    position: relative;
    color: white;
}

.student-card .name-tag {
    position: absolute;
    top: 10px;
    left: -8px;
    background: #1a006a;
    color: white;
    padding: 5px 20px 5px 25px;
    border-radius: 0 20px 20px 0;
    font-weight: bold;
    z-index: 1;
    box-shadow: -3px 4px 6px rgba(0, 0, 0, 0.5);
}

.student-card .name-tag::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-top: 6px solid #1a006a;
    z-index: 0;
}
.student-card .level-tag {
    position: absolute;
    bottom: 10px;
    right: -8px;
    background: #1a006a;
    color: white;
    padding: 5px 25px 5px 20px;
    border-radius: 20px 0 0 20px;
    font-weight: bold;
    z-index: 1;
    box-shadow: 3px 4px 6px rgba(0, 0, 0, 0.5);
}
.student-card .level-tag::after {
    content: "";
    position: absolute;
    bottom: -5px;
    right: 0px;
    width: 0;
    height: 0;
    border-right: 8px solid transparent;
    border-top: 6px solid #1a006a;
    z-index: 0;
}

.student-card img {
    width: 100%;
    border-radius: 0 40px 0 40px;
}

.bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1a2fa0;
    padding: 10px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1;
}

.bottom-navbar .icon-box {
    background: white;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

/*Details Page*/
.header {
    background-color: #0b40d2;
    height: 180px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
    overflow: visible;
    z-index: 1;
}

.header::after {
    content: "";
    position: absolute;
    bottom: -82px;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    height: 175px;
    background-color: white;
    border-top-left-radius: 175px;
    border-top-right-radius: 175px;
    z-index: 1;
}

.header h2 {
    color: white;
    font-size: 20px;
    z-index: 2;
    position: relative;
}

.profile-img {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border-radius: 20px;
    object-fit: cover;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); */
    z-index: 3;
}

.content {
    padding: 80px 20px 20px;
    max-width: 400px;
    margin: auto;
    position: relative;
    z-index: 2;
}

.grade-button {
    background-color: #8dd2f5;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 20px;
    padding: 10px;
    margin: 10px 0;
    width: 100%;
}

.header-box {
    background-color: #4f85f0;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    padding: 45px 20px 120px;
    position: relative;
    color: white;
    overflow: hidden;
  }
  
  .header-box::before,
  .header-box::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    z-index: 0;
  }
  
  .header-box::before {
    top: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
  }
  
  .header-box::after {
    top: -50px;
    right: 30px;
    width: 150px;
    height: 150px;
  }
  
  .header-box .wave {
    position: absolute;
    top: 20px;
    right: 80px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    z-index: 0;
    animation: ripple 6s ease-in-out infinite alternate;
  }
  
  .notification-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .notification-icon::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    width: 10px;
    height: 10px;
    background-color: red;
    border-radius: 50%;
  }
  
  .search-box {
    background-color: white;
    border-radius: 30px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 25px;
    width: 90%;
  }
  
  .search-box input {
    border: none;
    outline: none;
    flex: 1;
    background: transparent;
    font-size: 15px;
  }
  
  .dropdown-toggle {
    background: transparent;
    border: none;
    color: #777;
    font-size: 14px;
  }
  
  .dropdown-toggle::after {
    margin-right: 6px;
    vertical-align: middle;
  }
  
  .dropdown-toggle:hover {
    color: #4f85f0;
  }
  
  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
  }
  
  .card-service {
    background: white;
    border: solid 2px #0d6efd;
    border-radius: 20px;
    text-align: center;
    padding: 20px 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
  }
  
  .card-service:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
  }
  
  .card-service img {
    height: 80px;
    margin-bottom: 10px;
    border: solid 2px #0d6efd;
    border-radius: 20px;
  }
  
  .card-service .title {
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
    background: #0d6efd;
    padding: 3px;
    border-radius: 10px;
  }
  
  .card-service .subtitle {
    color: gray;
    font-size: 14px;
  }
  
  /*marks*/
  .card {
    background-color: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    color: #000;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
  }

  .table-responsive {
    overflow-y: auto;
    flex-grow: 1;
  }

  .table thead tr {
    background-color: #b8e3ff !important;
    position: sticky;
    top: 0;
    z-index: 1;
  }

  th {
    background-color: #7eb7f1 !important;
  }

  .table td,
  .table th {
    vertical-align: middle;
  }

  tbody tr td:last-child {
    background-color: #7eb7f1 !important;
    font-weight: bold;
  }

  .table tbody tr td {
    background-color: #fff;
  }

  .summary {
    background-color: #eef7ff;
    color: #000;
    padding: 1rem;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .summary div {
    background: #7eb7f1;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-weight: bold;
    flex: 1 1 calc(33% - 1rem);
    text-align: center;
  }

  .table thead {
    position: relative;
    z-index: 2;
    border: solid 1px #fff;
    height: 60px;
  }

  .table tbody {
    position: relative;
    z-index: 1;
  }

  @media (max-width: 767.98px) {
    thead::after {
      content: "";
      display: block;
      height: 12px;
      background-color: #fff;
      border: none !important;
    }

    thead tr:last-child th {
      border-bottom: none !important;
    }
  }

  thead th:first-child {
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
  }

  thead th:last-child {
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
  }

  thead th {
    border: none !important;
    border-bottom: none !important;
  }

  @media (max-width: 767.98px) {
    thead th:first-child {
      border-top-right-radius: 0.75rem;
      border-bottom-right-radius: 0.75rem;
    }

    thead th:last-child {
      border-top-left-radius: 0.75rem;
      border-bottom-left-radius: 0.75rem;
    }
  }
  .page-title {
background-color: #1a2fa0;
padding: 0.75rem 1.25rem;
border-radius: 2rem;

font-size: 1.25rem;
font-weight: bold;
color: #fff;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.page-title .title-box {
display: inline-block;
}
.icon-blue {
filter: invert(21%) sepia(85%) saturate(748%) hue-rotate(203deg) brightness(88%) contrast(98%);
}
/*quiz*/
.questions-section {
  margin-top: 80px;
  padding: 0 15px;
}

.question-card {
  background-color: #809ad9;
  border: solid 2px #0d6efd;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.question-card .form-check-input {
  margin-left: 10px;
}

.answers-group {
  background-color: #fff;
  padding: 15px;
  margin-top: 10px;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
}

.form-control:disabled {
  background-color: #e4e4e4;
  color: #888;
  border-radius: 10px;
  text-align: center;
  width: 200px;
}

.btn-custom {
  background-color: #edf0fb;
  color: #083fa8;
  border-radius: 10px;
  margin-top: 10px;
}

.share-icon {
  display: block;
  text-align: center;
  color: #083fa8;
  font-size: 20px;
  background: #fff;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
}

.form-check-input {
  appearance: none;
  -webkit-appearance: none;
  background-color: #acaaaa;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.form-check-input:checked::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5.5px;
  width: 10px;
  height: 10px;
  background-color: #083fa8;
  border-radius: 50%;
}

.form-check-label {
  cursor: pointer;
  margin-right: 8px;
}

/*final*/
.stats-header {
  background-color: #043fc6;
  padding: 30px;
  text-align: center;
  color: white;
  position: relative;
}

.stats-header img {
  position: absolute;
  top: 10px;
  right: 20px;
  width: 70px;
  height: auto;
}

.chart-container {
  display: flex;
  justify-content: center;
  margin-top: -50px;
  position: relative;
}

.pie-chart {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin-top: 66px;
  background: conic-gradient(#1a2fa0 0% 50%,
          var(--bs-link-hover-color) 50% 65%,
          var(--bs-primary) 65% 80%,
          var(--bs-info) 80% 100%
      );
  position: relative;
}

.pie-chart::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: white;
  border-radius: 50%;
}

.chart-label {
  position: absolute;
  font-size: 14px;
  font-weight: bold;
}

.label-1 {
  top: 95px;
  left: 80%;
  transform: translateX(-50%);
  color: white;
}

.label-2 {
  top: 15%;
  right: 100px;
  color: var(--bs-secondary);
}

.label-3 {
  bottom: 60px;
  left: 15%;
  color: var(--bs-dark);
}

.label-4 {
  bottom: 20px;
  right: 60%;
  color: var(--bs-secondary-border-subtle);
}

.custom-card {
  background-color: #f4f4f4;
  border-radius: 20px;
  padding: 20px;
  margin: 15px;
}

.custom-card p {
  margin: 4px 0;
}

.percent {
  color: red;
  font-weight: bold;
  margin-left: 5px;
}

.highlight {
  color: red;
  font-weight: bold;
}

.small-card {
  background-color: #f4f4f4;
  border-radius: 20px;
  padding: 20px;
  margin: 10px 15px;
}