thead {
  font-size: small;
}

/* Mobile-first stacked table for better readability */
@media (max-width: 576px) {
  table.stacked-table thead {
    display: none;
  }

  table.stacked-table tbody tr {
    display: block;
    margin-bottom: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #fff;
  }

  table.stacked-table tbody tr td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f1f3f5;
  }

  table.stacked-table tbody tr td:last-child {
    border-bottom: none;
  }

  table.stacked-table tbody tr td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #6c757d;
    margin-right: 1rem;
  }

  table.stacked-table .btn {
    width: 100%;
  }
}

.modal-header {
  color: #ffffff;
  /* -webkit-text-stroke: 1px #ffffff; */
  /* text-shadow: 0px 1px 4px #ffffff; */
}

svg {
  height: 100%;
  font-weight: bold;
  fill: white;
  paint-order: stroke;
  -webkit-text-stroke-width: 8px;
  -webkit-text-stroke-color: #92b0ff;
  -webkit-text-fill-color: white;
}

.svgText {
  height: 100%;
  font-weight: bold;
  fill: white;
  paint-order: stroke;
  -webkit-text-stroke-width: 8px;
  -webkit-text-stroke-color: #92b0ff;
  -webkit-text-fill-color: white;
}

.qotd {
  paint-order: stroke;
  -webkit-text-stroke-width: 8px;
  -webkit-text-stroke-color: #92b0ff;
  -webkit-text-fill-color: white;
}

.alert {
  position: inherit;
}

.list-item {
  background: transparent;
  display: block;
  text-decoration: none;
  border-bottom: solid;
  border-width: 1px;
  border-color: #92b0ff;
}

.bg-list-user {
  background: #C1D2FF;
  background: linear-gradient(90deg, rgba(193, 210, 255, 1) 0%, rgba(193, 241, 255, 1) 0%);
}

.bg-dosen {
  position: sticky;
  top: 0%;
  width: 100%;
  background-color: #c1d2ff;
}

.bg-offcanvas {
  background-color: #c1d2ff;
}

.bg-dnavbar {
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  position: fixed;
  bottom: 0%;
  width: 100%;
  /* background-color: rgb(89, 135, 255); */
}

.bg-list {
  border: solid;
  border-width: 1px;
  border-color: rgb(89, 135, 255);
  background: rgb(89, 135, 255);
  background: linear-gradient(270deg,
      rgba(89, 135, 255, 1) 0%,
      rgba(204, 217, 255, 1) 4%,
      rgba(255, 255, 255, 1) 100%);
}

.bg-list:hover {
  background: rgb(89, 135, 255);
  background: linear-gradient(135deg,
      rgba(89, 135, 255, 1) 0%,
      rgba(114, 153, 255, 1) 25%,
      rgba(89, 135, 255, 1) 100%);
  color: #ffffff;
}

.bg-list-data {
  border-color: rgba(123, 176, 212, 1);
  background: rgb(123, 176, 212);
  background: linear-gradient(315deg,
      rgba(123, 176, 212, 1) 0%,
      rgba(147, 212, 255, 0.5) 25%,
      rgba(255, 255, 255, 0.1) 100%);
}

.bg-list-data:hover {
  border-color: rgba(123, 176, 212, 1);
  background: rgb(123, 176, 212);
  background: linear-gradient(135deg,
      rgba(123, 176, 212, 1) 0%,
      rgba(147, 212, 255, 0.5) 25%,
      rgba(255, 255, 255, 0.1) 100%);
}

.bg-container {
  background-color: #f9f6f0;
}

.bg-form {
  border-color: rgba(161, 161, 161, 1);
  background: rgb(106, 106, 106);
  background: linear-gradient(315deg,
      rgba(106, 106, 106, 1) 0%,
      rgba(161, 161, 161, 0.5) 25%,
      rgba(255, 255, 255, 0.1) 100%);
}

.btn.active {
  color: #39FF14;
  border: none;
  text-shadow: 0 0 2px #000, 0 0 4px #000, 0 0 6px #000;
  /* border-color: #92b0ff; */
  /* background: linear-gradient(
    135deg,
    rgba(89, 135, 255, 1) 0%,
    rgba(146, 176, 255, 1) 100%
  ); */
}

.btn-input {
  color: #000000;
  border-color: rgb(123, 176, 212);
  background: linear-gradient(315deg,
      rgba(123, 176, 212, 1) 90%,
      rgba(147, 212, 255, 1) 10%);
}

.btn-input:hover {
  color: #ffffff;
  animation-name: input;
  animation-duration: 0.15s;
  border-color: rgb(123, 176, 212);
  background: linear-gradient(315deg,
      rgba(147, 212, 255, 1) 15%,
      rgba(123, 176, 212, 1) 90%);
}

.btn-cancel {
  color: #000000;
  border-color: rgb(255, 92, 92);
  background: linear-gradient(315deg,
      rgba(255, 92, 92, 1) 90%,
      rgba(255, 224, 224, 1) 15%);
}

.btn-cancel:hover {
  color: #ffffff;
  animation-name: cancel;
  animation-duration: 0.15s;
  border-color: rgb(255, 92, 92);
  background: linear-gradient(315deg,
      rgba(255, 224, 224, 1) 15%,
      rgba(255, 92, 92, 1) 90%);
}

@keyframes input {
  0% {
    color: white;
    border-color: rgb(123, 176, 212);
    background: linear-gradient(135deg,
        rgba(147, 215, 255, 1) 15%,
        rgba(123, 176, 212, 1) 25%);
  }

  25% {
    color: white;
    border-color: rgb(123, 176, 212);
    background: linear-gradient(135deg,
        rgba(147, 215, 255, 1) 15%,
        rgba(123, 176, 212, 1) 50%);
  }

  50% {
    color: white;
    border-color: rgb(123, 176, 212);
    background: linear-gradient(135deg,
        rgba(123, 176, 212, 1) 15%,
        rgba(147, 215, 255, 1) 50%,
        rgba(123, 176, 212, 1) 75%);
  }

  75% {
    color: white;
    border-color: rgb(123, 176, 212);
    background: linear-gradient(315deg,
        rgba(147, 215, 255, 1) 15%,
        rgba(123, 176, 212, 1) 75%);
  }
}

@keyframes cancel {
  0% {
    color: white;
    border-color: rgb(255, 92, 92);
    background: linear-gradient(135deg,
        rgba(255, 224, 224, 1) 15%,
        rgba(255, 92, 92, 1) 25%);
  }

  25% {
    color: white;
    border-color: rgb(255, 92, 92);
    background: linear-gradient(135deg,
        rgba(255, 224, 224, 1) 15%,
        rgba(255, 92, 92, 1) 50%);
  }

  50% {
    color: white;
    border-color: rgb(255, 92, 92);
    background: linear-gradient(135deg,
        rgba(255, 92, 92, 1) 15%,
        rgba(255, 224, 224, 1) 50%,
        rgba(255, 92, 92, 1) 75%);
  }

  75% {
    color: white;
    border-color: rgb(255, 92, 92);
    background: linear-gradient(315deg,
        rgba(255, 224, 224, 1) 15%,
        rgba(255, 92, 92, 1) 75%);
  }
}

.btn-edit {
  color: #000000;
  border-color: rgba(93, 153, 93, 1);
  background: linear-gradient(315deg,
      rgba(93, 153, 93, 1) 90%,
      rgba(163, 223, 163, 1) 15%);
}

.btn-edit:hover {
  animation-name: edit;
  animation-duration: 0.15s;
  color: white;
  border-color: rgba(93, 153, 93, 1);
  background: linear-gradient(315deg,
      rgba(163, 223, 163, 1) 15%,
      rgba(93, 153, 93, 1) 90%);
}

@keyframes edit {
  0% {
    color: white;
    border-color: rgba(93, 153, 93, 1);
    background: rgba(93, 153, 93, 1);
    background: linear-gradient(135deg,
        rgba(163, 223, 163, 1) 15%,
        rgba(93, 153, 93, 1) 25%);
  }

  25% {
    color: white;
    border-color: rgba(93, 153, 93, 1);
    background: rgba(93, 153, 93, 1);
    background: linear-gradient(135deg,
        rgba(163, 223, 163, 1) 15%,
        rgba(93, 153, 93, 1) 50%);
  }

  50% {
    color: white;
    border-color: rgba(93, 153, 93, 1);
    background: linear-gradient(135deg,
        rgba(93, 153, 93, 1) 15%,
        rgba(163, 223, 163, 1) 50%,
        rgba(93, 153, 93, 1) 75%);
  }

  75% {
    color: white;
    border-color: rgba(93, 153, 93, 1);
    background: rgba(93, 153, 93, 1);
    background: linear-gradient(315deg,
        rgba(163, 223, 163, 1) 15%,
        rgba(93, 153, 93, 1) 75%);
  }
}

.btn-delete {
  color: white;
  border-color: rgba(185, 77, 77, 1);
  background: rgba(185, 77, 77, 1);
  background: linear-gradient(315deg,
      rgba(185, 77, 77, 1) 90%,
      rgba(255, 147, 147, 1) 10%);
}

.btn-delete:hover {
  animation-name: delete;
  animation-duration: 0.15s;
  color: rgba(115, 7, 7, 1);
  border-color: rgba(185, 77, 77, 1);
  background: rgba(255, 147, 147, 1);
  background: linear-gradient(135deg,
      rgba(255, 147, 147, 1) 90%,
      rgba(185, 77, 77, 1) 10%);
}

@keyframes delete {
  0% {
    color: white;
    border-color: rgba(185, 77, 77, 1);
    background: rgba(185, 77, 77, 1);
    background: linear-gradient(135deg,
        rgba(255, 147, 147, 1) 15%,
        rgba(185, 77, 77, 1) 15%);
  }

  25% {
    color: white;
    border-color: rgba(185, 77, 77, 1);
    background: rgba(185, 77, 77, 1);
    background: linear-gradient(135deg,
        rgba(255, 147, 147, 1) 15%,
        rgba(185, 77, 77, 1) 25%);
  }

  50% {
    color: white;
    border-color: rgba(185, 77, 77, 1);
    background: rgba(185, 77, 77, 1);
    background: linear-gradient(135deg,
        rgba(255, 147, 147, 1) 15%,
        rgba(185, 77, 77, 1) 50%);
  }

  75% {
    color: white;
    border-color: rgba(185, 77, 77, 1);
    background: rgba(185, 77, 77, 1);
    background: linear-gradient(135deg,
        rgba(255, 147, 147, 1) 15%,
        rgba(185, 77, 77, 1) 75%);
  }
}

.btn-navbar {
  background: linear-gradient((315deg,
        rgb(192, 226, 139) 90%,
        rgb(215, 236, 179) 10%)25%);
}

.btn-navbar:hover {
  border-color: #92b0ff;
  background: linear-gradient(135deg,
      rgba(89, 135, 255, 1) 0%,
      rgba(146, 176, 255, 1) 100%);
}

.btn-navbar:active {
  border-color: #92b0ff;
  background: rgb(89, 135, 255);
  background: linear-gradient(135deg,
      rgba(89, 135, 255, 1) 0%,
      rgba(146, 176, 255, 1) 100%);
}

.btn-menu {
  color: white;
  border-color: #92b0ff;
  background-color: rgb(89, 135, 255);
  border-radius: 5px;
}

.btn-menu:hover {
  color: white;
  border-color: #92b0ff;
  background: rgb(89, 135, 255);
  background: linear-gradient(135deg,
      rgba(89, 135, 255, 1) 0%,
      rgba(146, 176, 255, 1) 100%);
}

.btn-profile {
  border-width: 3px;
  border-color: #92b0ff;
  text-align: center;
  border-radius: 6px;
  height: 42px;
  width: 42px;
  background-color: #5987ff;
}

.btn-profile:hover {
  border-width: 3px;
  border-color: #92b0ff;
  text-align: center;
  border-radius: 6px;
  height: 42px;
  width: 42px;
  background-color: #c1d2ff;
}

.blockquote {
  color: #8d2bff;
}

.d-li {
  border-bottom: solid 0.5px rgba(93, 153, 93, 1);
}

.d-li:hover {
  color: white;
  animation-name: li;
  animation-duration: 0.15s;
  background: rgba(118, 129, 155, 0.5);
  background: linear-gradient(315deg,
      rgba(118, 129, 155, 0.75) 90%,
      rgba(156, 127, 127, 0.75) 15%);
}

@keyframes li {
  0% {
    color: white;
    border-color: rgba(93, 153, 93, 1);
    background: rgba(93, 153, 93, 1);
    background: linear-gradient(135deg,
        rgba(163, 223, 163, 1) 15%,
        rgba(93, 153, 93, 1) 25%);
  }

  25% {
    color: white;
    border-color: rgba(93, 153, 93, 1);
    background: rgba(93, 153, 93, 1);
    background: linear-gradient(135deg,
        rgba(163, 223, 163, 1) 15%,
        rgba(93, 153, 93, 1) 50%);
  }

  50% {
    color: white;
    border-color: rgba(93, 153, 93, 1);
    background: linear-gradient(135deg,
        rgba(93, 153, 93, 1) 15%,
        rgba(163, 223, 163, 1) 50%,
        rgba(93, 153, 93, 1) 75%);
  }

  75% {
    color: white;
    border-color: rgba(93, 153, 93, 1);
    background: rgba(93, 153, 93, 1);
    background: linear-gradient(315deg,
        rgba(163, 223, 163, 1) 15%,
        rgba(93, 153, 93, 1) 75%);
  }
}

.dropdown-item {
  border-bottom: #39FF14 solid 0.05px;
  background: linear-gradient(135deg, rgba(150, 150, 150, 0.75) 0%, rgba(209, 209, 209, 0.75) 95%, rgba(201, 201, 201, 0.75) 1%);
}

.dropdown-item:hover {
  color: #39FF14;
  text-shadow: 0 0 2px #000, 0 0 4px #000, 0 0 6px #000;
  background: linear-gradient(135deg, rgba(150, 150, 150, 1) 0%, rgba(209, 209, 209, 1) 95%, rgba(201, 201, 201, 1) 50%);
}

.fs-amita {
  font-family: "Amita", serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.fs-dancing {
  font-family: "Dancing Script", cursive;
  font-optical-sizing: auto;
  font-style: normal;
}

.fs-eduvic {
  font-family: "Edu VIC WA NT Hand Pre", cursive;
  font-optical-sizing: auto;
  font-style: normal;
}

.fs-bona {
  font-family: "Bona Nova", serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.fs-nunito {
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.img-avatar {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 3px solid #ccc;
}

.tengah {
  align-items: center !important;
  min-height: 100vh;
}

a {
  text-decoration: none;
}

body {
  /* text-shadow: 0px 1px 4px #ffffff; */
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  background: rgba(143, 188, 143, 0.845);
}

#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: none;
  /* Hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  /* On top of other elements */
}

.loader {
  border: 8px solid #f3f3f3;
  /* Light grey */
  border-top: 8px solid #3498db;
  /* Blue */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

.pre-gbr {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50vh;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.or-divider {
  text-align: center;
  margin: 18px 0 12px 0;
  color: #aaa;
  font-size: 0.95rem;
  position: relative;
}

.or-divider:before {
  content: "";
  display: inline-block;
  width: 20%;
  height: 1px;
  background: #e0e0e0;
  vertical-align: middle;
  margin: 0 8px;
}

.or-divider:after {
  content: "";
  display: inline-block;
  width: 20%;
  height: 1px;
  background: #e0e0e0;
  vertical-align: middle;
  margin: 0 8px;
}

.profile-avatar {
  box-shadow: 0 2px 8px 0 rgba(78, 84, 200, 0.13);
  transition: transform 0.18s, box-shadow 0.18s;
  border: 3px solid #fff;
  background: linear-gradient(135deg, #8f94fb 0%, #4e54c8 100%);
  padding: 2px;
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.profile-avatar:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px 0 rgba(78, 84, 200, 0.18);
}

.profile-level-badge {
  background: #f4f7ff;
  color: #4e54c8;
  border: 1px solid #4e54c8;
  font-weight: 600;
  font-size: 0.95em;
  padding: 0.25em 0.8em;
  border-radius: 1em;
  margin-top: 0.2em;
  display: inline-block;
}

.profile-password-badge {
  background: #f4f7ff;
  color: #4e54c8;
  border: 1px solid #9eed9e;
  font-weight: 600;
  font-size: 0.95em;
  padding: 0.25em 0.8em;
  border-radius: 1em;
  margin-top: 0.2em;
  display: inline-block;
}

.modul-badge {
  font-size: 0.85em;
  padding: 0.25em 0.7em;
  border-radius: 1em;
  background: linear-gradient(90deg, #4e54c8 0%, #43cea2 100%);
  color: #fff;
  font-weight: 500;
  border: none;
  margin-left: 0.5em;
}

.submodul-badge {
  font-size: 0.8em;
  padding: 0.18em 0.6em;
  border-radius: 1em;
  background: linear-gradient(90deg, #43cea2 0%, #185a9d 100%);
  color: #fff;
  font-weight: 500;
  border: none;
}

.list-group-item.modul {
  border-radius: 0.5em;
  margin-bottom: 0.5em;
  border: none;
  box-shadow: 0 1px 4px rgba(78, 84, 200, 0.04);
  transition: box-shadow 0.15s, transform 0.15s;
  position: relative;
  overflow: hidden;
}

.list-group-item.modul:hover {
  box-shadow: 0 3px 12px rgba(78, 84, 200, 0.1);
  transform: translateY(-1px) scale(1.01);
  z-index: 2;
}

.list-group-item.submodul {
  border: none;
  margin-bottom: 0.1em;
  font-size: 0.97em;
  transition: background 0.13s;
}

.list-group-item.submodul:hover {
  background: #f0f4ff;
}

.modul-icon {
  font-size: 1.2em;
  vertical-align: middle;
  margin-right: 0.3em;
  color: #4e54c8;
}

.submodul-icon {
  font-size: 1em;
  vertical-align: middle;
  margin-right: 0.2em;
  color: #43cea2;
}

.divider {
  border-top: 1.5px dashed #5f749c78;
  border-bottom: 1.5px dashed #5f749c78;
  margin: 0.5em;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}

.text-small {
  font-size: 0.93em;
}

/* Futuristic Time Limit Badge */
.timelimit-futuristic {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: linear-gradient(90deg, #0f2027 0%, #2c5364 100%);
  color: #fff;
  border-radius: 2em;
  box-shadow: 0 0 12px #43cea2aa, 0 2px 8px #4e54c855;
  overflow: hidden;
  z-index: 1;
  transition: box-shadow 0.2s;
}

.timelimit-futuristic:hover {
  box-shadow: 0 0 24px #43cea2cc, 0 4px 16px #4e54c8aa;
}

.timelimit-glow {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 10% 50%, #43cea2 0%, transparent 70%);
  opacity: 0.25;
  animation: timelimit-glow-pulse 2.5s infinite alternate;
}

@keyframes timelimit-glow-pulse {
  0% {
    opacity: 0.18;
  }

  100% {
    opacity: 0.38;
  }
}

.timelimit-icon {
  color: #43cea2;
  z-index: 1;
  filter: drop-shadow(0 0 4px #43cea2aa);
}

.timelimit-label {
  text-transform: uppercase;
  color: #8f94fb;
  z-index: 1;
  margin-right: 0.2em;
}

.timelimit-value {
  font-family: "Orbitron", "Consolas", monospace;
  color: #fff;
  text-shadow: 0 0 6px #43cea2cc, 0 1px 2px #2228;
  z-index: 1;
}

.tengah {
  display: grid !important;
  align-items: center;
  min-height: 100vh;
}

.flexible-text {
  /* Ukuran font akan menjadi 4% dari lebar viewport */
  /* font-size: 50vw; */
  font-size: 100%;
  flex-grow: 1;
  /* Penting: Teks tidak akan melompat ke baris baru */
  white-space: nowrap;
}