*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-app-bg: #f8fafb;
  /* --color-theme: #6f6af8; */
  --color-theme: #2c2c30;
  /* --color-theme-light: #8e89ff; */
  --color-theme-light: #777777;
  --color-theme-lightest: #e1e1ee;
  --color-icon-bg: #e8e7ff;

  --appPanel-mt: 3rem;
  --bg-soft-gradient: linear-gradient(-225deg, #edfaff 0%, #ffe6fa 100%);

  --color-text-main: #1a1556;
  --color-text-sec: gray;

  --color-success: #20c996;
  --color-success-dark: #0f8863;
  --color-danger: #dc3546;
  --color-danger-dark: #9f222f;
  --color-primary: #0074d9;
  --color-primary-dark: #0074d9;

  --margin-y: 1rem;
  --margin-x: 1.5rem;
  --padding-y: 1rem;
  --padding-x: 1.5rem;

  --box-shadow: 0 5px 15px rgb(150 132 254 / 15%);
  --box-shadow-float: 0px 17px 10px -10px rgb(0 0 0 / 40%);
}

html {
  font-size: 9px;
}

body {
  font-size: 1.6rem !important;
  font-family: "Montserrat", sans-serif;
  position: relative;
  height: 100%;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

input {
  outline: none;
}

.btn {
  outline: none;
  box-shadow: none;
  border: none;
}
.btn:hover,
.btn:focus,
.btn:active {
  outline: none;
  box-shadow: none;
  border: none;
}
.btn:active {
  transform: scale(0.8);
}

p.icon-text {
  display: flex;
  gap: 0.5rem;
}
p.icon-text span {
  flex: 1;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: inherit;
  text-decoration: none;
}

ul {
  padding: 0;
  margin: 0;
}

.container,
.container-fluid {
  padding: 0 !important;
}

.datepicker-container {
  z-index: 10000 !important;
}

select {
  appearance: none !important;
  cursor: pointer;
}

/*------------------------------Scroller------------------------------*/

/* width */

::-webkit-scrollbar {
  width: 0;
}

/* Track */

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */

::-webkit-scrollbar-thumb {
  background: rgb(200, 199, 199);
}

/* Handle on hover */

::-webkit-scrollbar-thumb:hover {
  background: rgb(200, 199, 199);
}

/* width */

::-webkit-scrollbar {
  width: 1rem;
  height: 1rem;
}

/* Track */

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2rem;
}

/* Handle */

::-webkit-scrollbar-thumb {
  background: rgb(66 255 89);
  border-radius: 2rem;
}

/* Handle on hover */

::-webkit-scrollbar-thumb:hover {
  background: rgb(66 255 89);
}

/*------------------------------Swal------------------------------*/

.swal2-popup {
  padding-bottom: 0 !important;
  max-width: 80% !important;
  box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px,
    rgba(9, 30, 66, 0.08) 0px 0px 0px 1px !important;
}

.swal2-icon {
  margin: 1.5em auto 0em !important;
}

.swal2-title {
  margin: 0 !important;
  margin-bottom: 0.5em !important;
  font-size: 1.4rem !important;
}

.swal2-html-container {
  margin: 0 !important;
  margin-bottom: 0.5em !important;
  font-size: 1.6rem !important;
}

.swal2-actions {
  margin: 0 !important;
  margin-bottom: 0.5em !important;
  width: 100% !important;
}

.swal2-styled.swal2-confirm {
  background-color: var(--color-theme);
}

.swal2-styled.swal2-cancel {
  background-color: var(--bs-danger);
}

.swal2-styled.swal2-confirm:focus,
.swal2-styled.swal2-cancel:focus {
  box-shadow: none !important;
}

/*------------------------------Error------------------------------*/

.conent_main .error {
  margin-top: 5rem;
}

.error-card {
    margin: auto;
}

.error__img {
  width: 100%;
  height: auto;
  text-align: center;
}
.error__img img {
  width: 90%;
  height: 100%;
  max-width: 50rem;
}
.error__icon {
  width: 100%;
  height: auto;
  text-align: center;
}
.error__icon img {
  width: 80%;
  height: 100%;
  filter: drop-shadow(0px 5px 5px rgb(197, 197, 197));
}
.error__icon--small img {
  width: 40%;
  height: 100%;
  filter: drop-shadow(0px 5px 5px rgb(197, 197, 197));
  max-width: 30rem;
}
.error__title {
  text-align: center;
  color: var(--bs-danger);
  font-weight: 700;
}
.redirect__text {
  text-align: center;
  color: var(--color-success);
  font-weight: 700;
}
.redirect__time {
  text-align: center;
  color: var(--color-success-dark);
  font-weight: 700;
}
.redirect__url {
  display: none;
}

/*------------------------------PageLoader------------------------------*/

.loader {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 999999;
  display: none;
}

.loading {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #00000063;
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
}

.loading div {
  width: 8vmax;
  height: 8vmax;
  border-right: 4px solid #ff5100;
  border-radius: 100%;
  -webkit-animation: spinRight 800ms linear infinite;
  animation: spinRight 800ms linear infinite;
}

.loading div:before,
.loading div:after {
  content: "";
  width: 6vmax;
  height: 6vmax;
  display: block;
  position: absolute;
  top: calc(50% - 3vmax);
  left: calc(50% - 3vmax);
  border-left: 3px solid #ffffff;
  border-radius: 100%;
  -webkit-animation: spinLeft 800ms linear infinite;
  animation: spinLeft 800ms linear infinite;
}

.loading div:after {
  width: 4vmax;
  height: 4vmax;
  top: calc(50% - 2vmax);
  left: calc(50% - 2vmax);
  border: 0;
  border-right: 2px solid #00ff00;
  -webkit-animation: none;
  animation: none;
}

@-webkit-keyframes spinLeft {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(720deg);
  }
}
@keyframes spinLeft {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(720deg);
  }
}
@-webkit-keyframes spinRight {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}
@keyframes spinRight {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

/*------------------------------Navbar------------------------------*/

.underline {
  width: 100%;
  height: 2px;
  background: gainsboro;
  margin: 1rem 0;
}

#navbar {
  background-color: var(--color-theme);
  width: 100%;
  border-radius: 3rem;
  /* box-shadow: 0px -11px 26px -19px rgba(0, 0, 0, 0.75); */
  position: relative;
  overflow: hidden;
  height: 100%;
  transition: all 0.6s ease;
  width: 28rem;
  border: 5px solid var(--color-theme-light);
}

#navbar.hide {
    display: none;
}

#navbar_header {
  padding: var(--padding-y) var(--padding-x);
}

.navbar-header__logo {
  width: 12rem;
  height: 12rem;
  margin: auto;
  position: relative;
  border-radius: 50%;
}

.navbar-header__logo .status-icon {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
}

.navbar-header__logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.navbar-header__title {
  text-align: center;
  color: white;
  margin: 1rem 0 0 0;
}

.navbar-header__text {
  text-align: center;
  color: white;
  font-weight: 700;
}

#navbar_body {
  padding: var(--padding-y) var(--padding-x);
  overflow-x: hidden;
  overflow-y: scroll;
}

.navigation-menu {
  display: grid;
  align-items: baseline;
  grid-template-columns: repeat(1, calc(100% - 0));
  column-gap: 2rem;
  row-gap: 1rem;
}

.navigation-menu__item {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
}

.navigation-menu__item__icon {
  width: 3rem;
  color: white;
  font-size: 1.6rem;
  position: relative;
  text-align: left;
}

.navigation-menu__item__icon i.uil-angle-double-right {
  font-size: 2rem;
}

.navigation-menu__item__text {
  color: white;
  font-size: 1.6rem;
  width: 100%;
  line-height: 1;
  text-align: left;
}

/*------------------------------Signals------------------------------*/

#app_signals {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 0.5rem;
}
#app_signals span {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
}
#app_signals span:first-child {
  background: #ee1807;
}
#app_signals span:last-child {
  background: #099e0a;
}
#app_signals span:nth-child(2) {
  background: #feb002;
}

/*------------------------------Screen------------------------------*/

#app_wrapper {
  background-color: #e3e3ee;
  position: fixed;
  width: 100%;
  height: -webkit-fill-available;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#app_screen {
  width: calc(100% - 3rem);
  height: calc(100% - 3rem);
  border-radius: 3rem;
  box-shadow: 0px 16px 30px 2px #c4c7ec;
  position: relative;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  background-image: var(--bg-soft-gradient);
  /* background: rgb(136, 127, 255); */
}

#app_panel_left,
#app_panel_right {
  width: fit-content;
  height: 100%;
  /* box-shadow: 0px 7px 15px 3px rgb(200 201 247); */
  z-index: 1;
  background: transparent;
}

#app_panel_left {
  padding: 1rem;
}

#app_panel {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 1rem;
  /* background-image: var(--bg-soft-gradient); */
  padding: 1rem;
  flex: 1;
  overflow: hidden;
}

/*------------------------------App Header------------------------------*/

#app_header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/*------------------------------App Body------------------------------*/

#app_body {
  width: 100%;
  height: 100%;
  border-top: 1px solid var(--color-theme-lightest);
  border-radius: 3rem;
  display: flex;
  flex-direction: column;
  background-color: white;
  position: relative;
  transition: all 0.3s ease;
}

#content_header {
  border-bottom: 1px solid gainsboro;
}

#content_header,
#content_footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: var(--padding-y) var(--padding-x);
}

#content_main {
  overflow-x: hidden;
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: var(--padding-y) var(--padding-x);
  border-radius: 3rem;
  overflow: auto;
}

/*------------------------------Main Header------------------------------*/

.main-header__btn {
  width: 5rem;
  height: 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
}

.main-header__btn img {
  height: 4rem;
  filter: drop-shadow(5px 5px 5px rgb(0 0 0 / 40%));
}

.main-header__logo {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: var(--box-shadow-float);
}

.main-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  /* background: white; */
  /* padding: 1rem 2rem; */
  /* margin: -1.5rem -1.5rem 0 -1.5rem; */
  /* box-shadow: 0 4px 16px 0 rgb(167 175 183 / 33%); */
}

.main-header__site_title {
  color: var(--color-text-main);
  font-size: 2rem;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0;
  font-family: "Josefin Sans", sans-serif;
}

.main-header__list {
  list-style: none;
}

.main-header__list__item {
  display: inline-block;
  padding: 0 0.5rem;
}

.main-header__list__item a {
  display: block;
  background: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--box-shadow-float);
  cursor: pointer;
}



.main-footer {
    background: white;
    margin: 0 -1rem -1rem -1rem;
}

.footer-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .5rem 0; 
}

.footer-btns a {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .5rem;
    height: auto;
}


.footer-btns a span {
    color: var(--color-theme);
    font-weight: 700;
    font-size: 1.2rem;
}


.main-footer__btn {
  width: 4rem;
  height: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
}

.main-footer__btn img {
  height: 4rem;
  filter: drop-shadow(5px 5px 5px rgb(0 0 0 / 40%));
}


/*------------------------------Page Header------------------------------*/

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  padding-top: 1rem;
}

.page-header__btn {
  width: 4rem;
  height: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
}

.page-header__btn img {
  height: 3rem;
  box-shadow: var(--box-shadow-float);
}

.page-title {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 1rem;
}

.page-title__icon {
  /* width: 4rem; */
}

.page-title__icon i {
  font-size: 2.5rem;
}

.page-title__text {
  color: var(--color-text-main);
  font-size: 2.5rem;
  font-weight: 700;
  font-family: "Josefin Sans", sans-serif;
  margin: 0;
  line-height: 3rem;
}

/*------------------------------Card------------------------------*/

.cards-container .card:not(:last-child) {
  margin-bottom: 1rem;
}

.cards-container .card {
  box-shadow: none;
}

.card {
  display: flex;
  flex-direction: column;
  border-radius: 1.5rem;
  border: 1px solid var(--color-theme-lightest);
  box-shadow: var(--box-shadow);
  padding: 1rem;
  gap: 1rem;
  min-width: auto !important;
}

.card.active {
  background: var(--color-theme-light);
  box-shadow: var(--box-shadow-float);
}
.card.active .text-main {
  color: white;
}
.card.active img {
  filter: contrast(300%);
}

.card--sm {
  padding: .5rem;
}

/* Header */

.card-header {
  margin: 0 -1rem !important;
  padding: 0 2rem !important;
  position: relative !important;
  background: none !important;
  border: none !important;
}

.card-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0.6rem;
  height: 100%;
  background: var(--color-theme-light);
  border-top-right-radius: 100px;
  border-bottom-right-radius: 10rem;
}

/* Body */

.card-body {
  padding: 0;
}

/* Text */

.card-title {
  font-weight: 700;
  font-size: 1.4rem;
  margin: 0;
}

.card-text {
  margin: 0;
  font-size: 1.2rem;
}

/* Icon */

.card-icon {
  width: 5rem;
  height: 5rem;
}

.card-icon--bg {
  border-radius: 1rem;
  border: 1px solid var(--color-theme-lightest);
  background: var(--color-icon-bg);
}

.card-icon img {
  width: 5rem;
  height: 5rem;
}

/* Design */

.card-underline {
  width: 100%;
  height: 1px;
  background: gainsboro;
}

/*------------------------------Modal------------------------------*/

body > .modal-backdrop {
  display: none !important;
}
.modal-backdrop {
  position: absolute;
  opacity: 0.3 !important;
}
.modal {
  position: absolute;
}
.modal-dialog {
  position: absolute;
  margin: 0;
  /* bottom: 0; */
  z-index: 99;
  max-height: calc(100% - var(--appPanel-mt));
  width: 100%;
  /* height: auto; */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) !important;
}
.modal-content {
  border-radius: 2rem 2rem 2rem 2rem;
  border: none;
  box-shadow: 0px -11px 26px -19px rgba(0, 0, 0, 0.75);
  top: 50%;
  transform: translateY(-50%);
}
.modal-header {
  background: var(--color-theme);
  border: 0.2rem solid var(--color-theme-light);
  border-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: initial;
  border-radius: 2rem 2rem 0 0;
}
.modal-title {
  color: white;
  font-size: 1.8rem !important;
}
.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.modal.fade .modal-dialog {
  /* bottom: -100%; */
  /* scale: 0; */
  opacity: 0;
  transition: all 0.3s;
}
.modal.fade.show .modal-dialog {
  /* bottom: 0; */
  /* scale: 1; */
  opacity: 1;
}

/*------------------------------Menu Modal------------------------------*/

.menu-modal .modal-header {
  background: white;
  border: none;
}
.menu-modal .modal-header span {
  width: 3rem;
}
.menu-modal .modal-header .modal-title {
  color: var(--color-text-sec);
  text-align: center;
  flex: 1;
  text-overflow: ellipsis;
  overflow: hidden;
}
.menu-modal .modal-header .modal-title .text-sec {
  color: var(--color-text-sec);
  text-align: center;
  font-size: 1.2rem;
}
.menu-list {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu-list li a {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem;
  cursor: pointer;
}
.menu-list li a p {
  flex: 1;
}

/*------------------------------Login Panel------------------------------*/

.login-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 1rem;
  position: relative;
}

.login-logo img {
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  box-shadow: var(--box-shadow);
}

.bounce {
  animation: bounce 0.8s;
  animation-direction: alternate;
  animation-iteration-count: infinite;
}

.bounce-shadow {
  position: absolute;
  bottom: -0.7rem;
  background: #000;
  opacity: 0.3;
  width: 9rem;
  height: 2rem;
  border-radius: 90%;
  filter: blur(5px);
  animation: bounceShadow 0.8s;
  animation-direction: alternate;
  animation-iteration-count: infinite;
}

.login-text {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.login-text .text-main {
  font-family: "Style Script", cursive;
  color: var(--color-text-main);
  font-size: 3rem;
}

/*------------------------------Skeleton------------------------------*/

.skeleton {
  display: flex;
  flex-direction: column;
  border-radius: 1.5rem;
  border: 1px solid var(--color-theme-lightest);
  box-shadow: var(--box-shadow);
  padding: 1rem;
  gap: 1rem;
  margin-bottom: 1rem;
}

.skeleton p {
  position: relative;
  background: #d9d9d9;
  border-radius: 1rem;
  overflow: hidden;
  height: 1.2rem;
  margin: 1rem 0;
}

.skeleton span {
  position: relative;
  background: #d9d9d9;
  border-radius: 1rem;
  overflow: hidden;
  height: 1.2rem;
  margin: 1rem 0;
  width: 50%;
  display: block;
}

.skeleton button {
  position: relative;
  background: #d9d9d9;
  padding: 0;
  outline: none;
  border: none;
  border-radius: 3rem;
  overflow: hidden;
  height: 3rem;
  pointer-events: none;
  width: 33%;
}

.skeleton .icon {
  width: 5rem;
  height: 5rem;
  position: relative;
  background: #d9d9d9;
  border-radius: 50%;
  overflow: hidden;
}

.skeleton .icon::before,
.skeleton span::before,
.skeleton p::before,
.skeleton button::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background-image: linear-gradient(
    to right,
    #d9d9d9 0%,
    #888b94 20%,
    #d9d9d9 40%,
    #d9d9d9 100%
  );
  background-size: 450px 400px;
  background-repeat: no-repeat;
  animation: shimmer 1.4s linear infinite;
}

/*------------------------------Toast------------------------------*/

.toast {
  position: absolute;
  bottom: 10rem;
  max-width: 70%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 1rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: var(--box-shadow-float);
  z-index: 99999;
}

.toast--success {
  background: var(--color-success);
  color: white;
  border: none;
}

.toast--error {
  background: var(--color-danger);
  color: white;
  border: none;
}

/*------------------------------Table------------------------------*/

td,
th {
  vertical-align: middle !important;
}

table thead th,
table thead td,
table tbody th,
table tbody td {
  padding: 10px 10px !important;
}

table tfoot th,
table tfoot td {
  padding: 10px 10px !important;
}

.dataTables_length select {
  width: 7rem;
  border: 1px solid gainsboro;
  border-radius: 5px;
  padding: 0.5rem 1rem;
}
.dataTables_length select:focus {
  outline: none;
}

.dataTables_wrapper .dataTables_filter input {
  margin-left: 0.5em;
  border: 1px solid gainsboro;
  border-radius: 5px;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
}

.dataTables_wrapper .dataTables_paginate {
  margin-top: 2rem;
}
.dataTables_wrapper .dataTables_info {
  margin-top: 2rem;
}

/*------------------------------Animations------------------------------*/

@keyframes shimmer {
  0% {
    background-position: -450px 0px;
  }
  100% {
    background-position: 450px 0px;
  }
}
@keyframes bounce {
  0% {
    transform: translateY(0);
    height: 90%;
  }
  100% {
    transform: translateY(-3rem);
  }
}
@keyframes bounceShadow {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: scale(0.85) translateY(-3rem);
  }
}
@keyframes flipInX {
  0% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    -webkit-transition-timing-function: ease-in;
    opacity: 0;
  }

  40% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    -webkit-transition-timing-function: ease-in;
  }

  60% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    opacity: 1;
  }

  80% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
  }

  100% {
    -webkit-transform: perspective(400px);
  }
}
@keyframes shake {
  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

/*------------------------------Responsive------------------------------*/

@media screen and (max-width: 1700px) {
  html {
    font-size: 9px;
  }
}

.dataTables_wrapper {
    overflow: auto;
}
