@import url("https://fonts.googleapis.com/css?family=Open+Sans:600|Work+Sans:400,500,600,700&display=swap");

.login_container {
  background-color: rgb(34, 82, 195);
  font-family: "work sans";
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login_container #loginform {
  max-width: 500px;
  min-width: 300px;
  max-height: 700px;
  width: 30%;
  height: 60%;
  background-color: #ffffff;
  border-radius: 25px;
}

.login_container #headerTitle {
  text-align: center;
  font-family: "open sans", sans-serif;
  padding: 2rem 0;
  margin: 0;
  font-size: 2rem;
}

.login_container .row {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2rem;
  max-width: 100%;
}

.login_container .row input {
  width: 80%;
  box-sizing: border-box;
  border: none;
  font-size: 1.3rem;
  padding-left: 1.5rem;
  padding-bottom: 1rem;
  box-shadow: inset 0px -3px 0px 0px rgba(187, 187, 187, 0.2);
  transition: box-shadow 0.2s ease-in;
}

.login_container .row input:focus {
  box-shadow: inset 0px -3px 0px 0px rgba(34, 193, 195, 0.7);
  outline: none;
}

.login_container .row input::-webkit-input-placeholder {
  opacity: 1;
  transition: opacity 0.25s ease-out;
}

.login_container .row input:hover::-webkit-input-placeholder,
.login_container .row input:focus::-webkit-input-placeholder {
  opacity: 0;
}

.login_container .row label {
  align-self: start;
  padding-left: 4.5rem;
  padding-bottom: 0.5rem;
  color: rgba(187, 187, 187, 0.9);
}

.login_container .row button {
  border-radius: 25px;
  width: 80%;
  height: 40px;
  font-size: 1.3rem;
  color: white;
  font-weight: 700;
  background: rgb(34, 95, 199);
  border: 0px;
  cursor: pointer;
}

.login_container #button {
  padding-bottom: 1.5rem;
}

.q-icon {
  height: 2rem;
}

.icon {
  vertical-align: middle;
  line-height: 1px;
  font-size: 20px;
}

.icon_header {
  vertical-align: middle;
  line-height: 1px;
  font-size: 26px;
}

.icon,
.icon_header {
  margin-right: 5px;
}

.close_icon {
  color: red;
  margin-left: 30px;
  margin-top: 10px;
  cursor: pointer;
}

.grid-container {
  display: grid;
  grid-template-columns: 260px 1fr 1fr 1fr;
  grid-template-rows: 0.2fr 3fr;
  grid-template-areas:
    "sidebar header header header"
    "sidebar main main main";
  height: 100vh;
}

/* Header  */
.header {
  grid-area: header;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px 0 30px;
  box-shadow: 0 6px 7px -3px rgba(0, 0, 0, 0.35);
}

.menu-icon {
  display: none;
}

/* Sidebar  */
#sidebar {
  grid-area: sidebar;
  height: 100%;
  background-color: #263043;
  overflow-y: auto;
  transition: all 0.5s;
  -webkit-transition: all 0.5s;
}

.sidebar-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px 0px 30px;
  margin-bottom: 30px;
}

.sidebar-title > span {
  display: none;
}

.sidebar-brand {
  margin-top: 15px;
  font-size: 20px;
  font-weight: 700;
}

.sidebar-list {
  padding: 0;
  list-style-type: none;
}

.sidebar-list-item {
  padding: 20px 20px 20px 20px;
  font-size: 18px;
  color: #9e9ea4;
}

.sidebar-list-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.sidebar-list-item-container {
  text-decoration: none;
  color: #9e9ea4;
}

.sidebar-responsive {
  display: inline !important;
  position: absolute;
  /*
    we want the z-index of the sidebar higher so that
    the charts are not showing over the sidebar 
    on small screens
  */
  z-index: 12 !important;
}

/* Main  */
.main-container {
  grid-area: main;
  overflow-y: auto;
  padding: 20px 20px;
}

.main-title {
  display: flex;
  justify-content: space-between;
}

.main-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
  margin: 15px 0;
}

.PleaseLogin .card {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 8px 15px;
  border-radius: 5px;
}

.card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-inner > .card_icon {
  font-size: 25px;
}

/* Medium <= 992px */

@media screen and (max-width: 992px) {
  .grid-container {
    grid-template-columns: 1fr;
    grid-template-rows: 0.2fr 3fr;
    grid-template-areas:
      "header"
      "main";
  }

  #sidebar {
    display: none;
  }

  .menu-icon {
    display: inline;
  }

  .sidebar-title > span {
    display: inline;
  }
}

/* Small <= 768px */

@media screen and (max-width: 768px) {
  .main-cards {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 0;
  }

  .charts {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }
}

/* Extra Small <= 576px */

@media screen and (max-width: 576px) {
  .hedaer-left {
    display: none;
  }
}

.spinner {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/*Dashboard form css */

.AdminFormContainer {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: space-around;
  align-items: center;
  gap: 35px;
  margin-top: 25px;
}

.AdminFormContainer .form {
  background-color: rgb(198, 196, 196);
  padding: 3.125em;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 28%;
  max-width: fit-content;
  min-width: fit-content;
  box-shadow: 5px 5px 15px -1px rgba(0, 0, 0, 0.75);
}

.AdminFormContainer .signup {
  color: rgb(243, 237, 237);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  font-weight: bold;
  font-size: x-large;
  margin-bottom: 0.5em;
}

.AdminFormContainer .form--input {
  width: 100%;
  margin-bottom: 1.25em;
  height: 40px;
  border-radius: 5px;
  border: 1px solid gray;
  padding: 0.8em;
  font-family: "Inter", sans-serif;
  outline: none;
}

.AdminFormContainer .form--input:focus {
  border: 1px solid #639;
  outline: none;
}

.AdminFormContainer .form--submit {
  width: 50%;
  padding: 0.625em;
  border-radius: 5px;
  color: white;
  background-color: #639;
  border: 1px dashed #639;
  cursor: pointer;
}

.AdminFormContainer .form--submit:hover {
  color: #639;
  background-color: white;
  border: 1px dashed #639;
  cursor: pointer;
  transition: 0.5s;
}

/* Manage Admin table css*/

.car {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  width: 650px;
}

.car .responsive-table {
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
  white-space: nowrap;
}

.car .table-header th,
.car .table-data td {
  text-align: left;
  border-bottom: 1px solid #ddd;
  /* padding: 5px; */
}

.car .table-header th {
  background-color: #4a8cca;
  color: white;
}

.car .table-data tr:hover {
  background-color: #f5f5f5;
}

.car .delete-button {
  background-color: #d9534f;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
}

.car .delete-button:hover {
  background-color: #c9302c;
}

/* table css */

.userList .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.userList .responsive-table {
  /* width: 80%; */
  border-collapse: collapse;
  overflow-x: auto;
  white-space: nowrap;
}

.userList .table-header th,
.userList .table-data td {
  text-align: left;
  border-bottom: 1px solid #ddd;
  padding: 15px;
}

.userList .table-header th {
  background-color: #4a8cca;
  color: white;
}

.userList .table-data tr:hover {
  background-color: #f5f5f5;
}

.userList .pagination-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  width: 100%;
  padding: 20px 10px;
}

.userList .pagination-buttons button {
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.userList .tableContainer {
  width: 100%;
}

.userList .table-heading-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 2px solid #4a8cca;
  padding: 10px;
  /* width: 80%; */
  margin-bottom: 20px;
}

.userList .date-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.userList .table-data {
  overflow-x: auto;
}

/* =============Table data Scroll bar css================= */

.userList .table-data::-webkit-scrollbar {
  width: 12px;
}

.userList .table-data::-webkit-scrollbar-thumb {
  background-color: grey;
  border-radius: 6px;
}

.userList .table-data::-webkit-scrollbar-track {
  background-color: #f1f1f1;
}

/* Firefox */
.userList .table-data {
  scrollbar-width: thin;
  scrollbar-color: grey #f1f1f1;
}

/* Internet Explorer */
.userList .table-data {
  -ms-overflow-style: none;
}

.userList .table-data::-ms-scrollbar-thumb {
  background-color: gray;
  border-radius: 6px;
}

.userList .table-data::-ms-scrollbar-track {
  background-color: #f1f1f1;
}

.userList .date-filter input {
  margin-right: 10px;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  max-width: 150px;
}

.userList .table-heading {
  font-size: 1.5em;
  text-align: center;
  flex-grow: 1;
  margin: 0;
}

.generate-report-button {
  padding: 8px 15px;
  background-color: #4a8cca;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

@media only screen and (max-width: 1200px) {
  .userList .responsive-table {
    width: 100%;
  }
}

@media only screen and (max-width: 900px) {
  .userList .responsive-table {
    width: 100%;
  }
}

@media only screen and (max-width: 600px) {
  .userList .responsive-table {
    width: 100%;
  }

  .userList .table-header th,
  .userList .table-data td {
    padding: 10px;
    white-space: normal;
  }

  /* .pagination-buttons,
  .table-heading-container,
  .date-filter {
    width: 80%;
  } */

  .userList .date-filter input {
    width: 100%;
  }
}

@media only screen and (min-width: 601px) and (max-width: 768px) {
  .userList .responsive-table {
    width: 100%;
  }
}

@media only screen and (min-width: 769px) and (max-width: 1024px) {
  .userList .responsive-table {
    width: 100%;
  }
}

@media only screen and (min-width: 1025px) {
  .userList .responsive-table {
    width: 100%;
  }
}

@media only screen and (min-width: 300px) and (max-width: 400px) {
  .userList .responsive-table {
    width: 100%;
  }
}

/* =================================USERS TABLE CSS================== */

/*=========== Invalid access login==== */

.PleaseLogin .wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  padding: 0;
  background-color: #f7f7f7;
}

.PleaseLogin .card {
  width: 500px;
  height: 400px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(69, 2, 2, 0.067);
  padding: 30px;
  text-align: center;
}

.PleaseLogin h1 {
  font-size: 24px;
  color: #db3434;
}

.PleaseLogin p {
  font-size: 16px;
  color: #555;
}

.PleaseLogin .icon {
  font-size: 64px;
  color: #3498db;
  margin-bottom: 20px;
}

.PleaseLogin button {
  background-color: #3498db;
  color: #fff;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/*======== PAGE 404 CSS ===========*/

.Page404-page-container {
  font-family: "Arial", sans-serif;
  text-align: center;
  color: #e71919e3;
  margin: 0;
  padding: 0;
  height: 98vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.Page404-container {
  max-width: 600px;
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  50% {
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes Page404-bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-30px);
  }

  60% {
    transform: translateY(-15px);
  }
}

.Page404-icon {
  font-size: 48px;
  margin-bottom: 20px;
  color: #6e6e6e;
}

.Page404-title {
  font-size: 120px;
  margin-bottom: 10px;
  animation: Page404-bounce 1s infinite;
}

.Page404-message {
  font-size: 18px;
  margin-bottom: 20px;
  color: #4e4e4e !important;
}

.Page404-link {
  color: #428bca;
  text-decoration: none;
  font-weight: bold;
}

.Page404-link:hover {
  text-decoration: underline;
}

.Page404-home-1 {
  color: #6e6e6e;
}

/* ====Query Page CSS========= */

.QueryPage .userList .table-responsive {
  width: 100%;
}

.QueryPage .tableheadingpadding {
  padding-top: 1rem;
}

.QueryPage .tablePadding {
  padding-top: 1rem;
}

.QueryPage .tb-overflow {
  overflow-x: auto;
}

.QueryPage .userList .date {
  color: gray;
}

.QueryPage .userList .table-header th,
.QueryPage .userList .table-data td {
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.QueryPage .userList .open-button {
  padding: 8px 15px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.box {
  background-color: #ffffff;
  height: 9vh;
  width: 200px;
  display: flex;
  border: 2px solid #3498db;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  border-radius: 5rem;
}

.active {
  background-color: #30acff;
  color: white;
  border-radius: 32px;
  width: 100px;
  height: 45px;
  text-align: center;
  line-height: 50px;
  transition: background-color 0.3s ease, border-radius 0.3s ease,
    width 0.3s ease, height 0.3s ease;
}

.x {
  display: flex;
  justify-content: center;
}

/* ====QueryForm CSS================== */

.queryform .contact-form-container {
  max-width: 700px;
  margin: auto;
  margin-top: 0.5rem;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
}

.arrowiiiicon {
  border: 0 !important;
  background: white;
}

.queryform .form-group {
  margin-bottom: 15px;
}

.queryform label {
  display: block;
  margin-bottom: 5px;
}

.queryform input,
.queryform textarea {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.queryform button {
  background-color: #4f90f1;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.quequeryform button:hover {
  background-color: #4f90f1;
}

/* Dashboard CSS */

.dashboard .dash-app {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.dashboard .dash-card {
  width: 30%;
  margin: 1%;
  box-sizing: border-box;
  border: 1px solid #ddd;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.dashboard .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard .title-number {
  flex-grow: 1;
  margin-right: 10px;
}

.dashboard h2 {
  color: #333;
  margin-bottom: 5px;
}

.dashboard p {
  font-size: 18px;
  color: #555;
}

.dashboard .icon {
  font-size: 24px;
  color: #28a745;
}

@media (max-width: 768px) {
  .dashboard .dash-card {
    width: 100%;
  }
}

/* =================SUBJECT CSS=========================== */

.subject table {
  border-collapse: collapse;
  margin-top: 20px;
}

.subject .last-cell {
  width: fit-content;
}

.subject th,
.subject td {
  border: 1px solid #ddd;
  padding: 8px;
}

.subject th {
  background-color: #f2f2f2;
}

.subject button {
  padding: 5px 10px;
  cursor: pointer;
  background-color: #4c93af;
  color: white;
  border: none;
  border-radius: 4px;
}

.subject button:hover {
  background-color: #4571a0;
}

/* Subject Modal styles */
.subject .modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.subject .modal-content {
  background-color: #fefefe;
  padding: 20px;
  border: 1px solid #888;
  width: 50%;
  max-width: 500px;
}

.subject .close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  justify-content: flex-end;
  display: flex;
}

.subject .close:hover {
  color: black;
}

/* Additional styling for the modal content */
.subject .modal h2 {
  margin-bottom: 10px;
}

.subject .modal input {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
}

.subject .modal button {
  background-color: #4c89af;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.subject .modal button:hover {
  background-color: #4577a0;
}

@media only screen and (max-width: 600px) {
  .subject .modal-content {
    width: 90%;
    max-width: none;
  }
}

/* =====QUESTION PAGE CSS */

.mcq-question form {
  max-width: 400px;
  margin: 0 auto;
}

.mcq-question label {
  display: block;
  margin-bottom: 5px;
}

.mcq-question input {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
}

.mcq-question button {
  background-color: #4c91af;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.mcq-question button:hover {
  background-color: #458ca0;
}

.mcq-question h2 {
  margin-bottom: 10px;
}

.mcq-question hr {
  margin: 20px 0;
  border: none;
  border-top: 1px solid #ddd;
}

.mcq-question .cross-button {
  display: flex;
  justify-content: flex-end;
}

.mcq-question .card {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 20px;
  margin: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  align-items: normal;
}

.mcq-question .btn-cross {
  width: 35px;
  height: 35px;
  padding: 0;
}

.mcq-question .btn-danger {
  background-color: #dc3545;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.mcq-question .mbb-3 {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-right: 20px;
}

.mcq-question .mbb-4 {
  margin: 10px;
}

/* Style for the question label */
.mcq-question .form-label {
  font-weight: bold;
  width: 90px;
}

/* Style for the options container */
.mcq-question #optionsContainer {
  margin-top: 10px;
}

/* Style for the options input */
.mcq-question .form-control {
  margin-top: 5px;
  border: var(--bs-border-width) solid var(--bs-border-color) !important;
}

/* Optional: Add some spacing between cards */
.mcq-question .card + .card {
  margin-top: 20px;
}

.mcq-question .option-flex {
  display: flex;
  align-items: center;
}
