@font-face {
  font-display: swap;
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400;
  src: url("/assets/fonts/inter-tight-v7-latin-regular.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500;
  src: url("/assets/fonts/inter-tight-v7-latin-500.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 700;
  src: url("/assets/fonts/inter-tight-v7-latin-700.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "MarlinSoftSQ";
  font-style: normal;
  font-weight: 700;
  src: url("/assets/fonts/MarlinSoftSQ-ExtraBold.woff2") format("woff2");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter Tight";
  color: #333;
  background-color: #f0f1fa;
}

.icon-tabler {
  height: 16px;
  width: 16px;
}

.navbar {
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px;
  color: #3139fb;
  background-color: transparent;
  z-index: 2;
  transition: 0.2s ease;
}

.navbar .logo h1 {
  font-size: 20px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links li a {
  background-color: #6e73ff;
  padding: 4px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.nav-links li a span {
  display: none;
  font-size: 16px;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  padding: 2px 0;
  font-size: 16px;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: 0.2s ease;
}

.nav-links li.active-page a {
  background-color: #fff;
  border: 1px solid #3139fb;
  color: #3139fb;
  padding: 4px 8px;
}

.nav-links li.active-page a span {
  display: inline-block;
}

.scrolled .navbar {
  background-color: #3139fb;
  color: #fff;
}

.scrolled .menu-button {
  color: #fff;
}

.scrolled .navbar::after {
  opacity: 1;
}

.navbar .wavy-line {
  display: block;
}

.scrolled .navbar .wavy-line {
  display: none;
}

.wavy-line {
  position: absolute;
  bottom: -13px;
  left: 0;

  --s: 5px;

  --b: 1px;

  --m: 0.9;

  background: #fff;
  --R: calc(var(--s) * sqrt(var(--m) * var(--m) + 1) + var(--b)/2);
  height: calc(2 * var(--R));
  width: 100%;
  --_g: #0000 calc(99% - var(--b)), #000 calc(101% - var(--b)) 99%, #0000 101%;
  mask:
    radial-gradient(var(--R) at left 50% bottom calc(-1 * var(--m) * var(--s)),
      var(--_g)) calc(50% - 2 * var(--s)) calc(50% - var(--s) / 2 - var(--b) / 2) / calc(4 * var(--s)) calc(var(--s) + var(--b)) repeat-x,
    radial-gradient(var(--R) at left 50% top calc(-1 * var(--m) * var(--s)),
      var(--_g)) 50% calc(50% + var(--s) / 2 + var(--b) / 2) / calc(4 * var(--s)) calc(var(--s) + var(--b)) repeat-x;
}

#container {
  background-color: #d2d4ff90;
}

.check-data-availability {
  max-width: 500px;
  margin: auto;
}

.check-data-availability>div {
  display: none;
  gap: 10px;
  margin-block: 4px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
}

.check-data .not-available .tick {
  display: flex;
  height: 80px;
  width: 80px;
  background-color: transparent;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  color: #fb3131;
  font-size: 60px;
}

.calendar-data {
  background-color: #f0f1fa;
}

.info-wrap {
  padding: 75px 15px 30px;
  background-color: #3139fb;
  background-image: url(/assets/noise-light.png);
  color: #fff;
}

#info p {
  word-break: break-word;
}

.edit-college-classcode {
  background-color: #686eff;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  opacity: 1;
  align-items: center;
  transition: 0.2s ease;
  padding: 6px;
}

.edit-college-classcode:hover {
  background-color: #fff;
  color: #3139fb;
}

.or {
  display: flex;
  justify-content: center;
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
}

.or::before,
.or::after {
  content: "";
  height: 1px;
  width: 30px;
  background: rgba(255, 255, 255, 0.2);
  align-self: center;
  margin: 0 10px;
}

.new-list-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 500px;
  margin: 10px auto 30px;
  padding: 0 20px;
}

@media (min-width: 600px) {
  .new-list-buttons {
    grid-template-columns: 1fr 1fr;
  }
}

.new-list-buttons button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-family: inherit;
}

#create-table {
  background-color: #3139fb;
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(49, 57, 251, 0.25);
}

#create-table:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(49, 57, 251, 0.35);
}

#create-table:active {
  transform: translateY(0);
}

#upload-timetable {
  background-color: #fff;
  color: #3139fb;
  border: 1px solid rgba(49, 57, 251, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

#upload-timetable:hover {
  background-color: #f8f9ff;
  border-color: rgba(49, 57, 251, 0.4);
}

#upload-timetable:active {
  transform: scale(0.98);
}

.edit-college-classcode:active {
  transform: scale(0.9);
}

.no-tables-info {
  max-width: 500px;
  background-color: #6e73ff;
  padding: 10px;
  border-radius: 10px;
  margin: auto;
  font-size: 1.2rem;
}

.no-tables-info a {
  color: #fff;
  background-color: #3139fb;
  padding: 1px 3px;
  border-radius: 5px;
  text-decoration: none;
}

.no-tables-info a:hover {
  background-color: #434bff;
}

#info .table-info {
  max-width: 600px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  margin: auto;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
  color: #fff;
  position: relative;
}

.info-content {
  display: flex;
  flex-direction: column;
}

.info-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.info-label i {
  font-size: 1.1em;
  opacity: 0.8;
}

.info-value {
  font-size: 1.15rem;
  color: #ffffff;
  font-weight: 500;
  line-height: 1.4;
  word-break: break-word;
}

#switch-class-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-controls {

  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 10;
}

.info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.info-title {
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.popup-content {
  display: flex;
  flex-direction: column;
}

.popup-buttons {
  margin-top: 15px;
  display: flex;
  justify-content: end;
  gap: 10px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.search-container {
  text-align: center;
  padding: 20px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  max-width: 500px;
  width: 100%;
  transition: all 0.2s ease;
  z-index: 1;
}

.input-wrapper:focus-within {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.input-wrapper:focus-within i {
  color: #3139fb;
  opacity: 1;
}

.input-wrapper:focus-within #search-college {
  color: #3139fb;
}

.input-wrapper:focus-within #search-college::placeholder {
  color: #3139fb;
  opacity: 0.5;
}

.input-wrapper i {
  position: absolute;
  left: 18px;
  font-size: 20px;
  color: #fff;
  opacity: 0.8;
  transition: color 0.2s ease;
}

#search-college {
  border: none;
  outline: none;
  font-size: 17px;
  padding: 14px 16px 14px 50px;
  width: 100%;
  background: transparent;
  color: #fff;
  font-weight: 500;
  font-family: "Inter Tight", sans-serif;
  border-radius: 14px;
  transition: color 0.2s ease;
}

#search-college::placeholder {
  color: #fff;
  opacity: 0.6;
  font-weight: 400;
  transition: color 0.2s ease;
}

.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 0px);
  left: -2px;
  color: #3139fb;
  background-color: #fff;
  width: calc(100% + 4px);
  max-width: 500px;
  border-radius: 15px;
  border: 2px solid #3139fb;
  z-index: 4;
  transition: 0.2s ease;
  max-height: 50vh;
  overflow-y: scroll;
}

.search-results:hover,
.search-container input:focus+.search-results {
  display: block;
  border-radius: 0 0 15px 15px;
}

.input-wrapper:has(input:focus),
.input-wrapper:has(.search-results:hover) {
  border-radius: 15px 15px 0 0;
  animation: none;
}

.search-results div {
  display: flex;
  justify-content: space-between;
  padding: 7px 10px 7px 15px;
  align-items: center;
  gap: 5px;
}

.search-results div:not(:last-child) {
  border-bottom: 1px solid #000;
}

.search-results p {
  margin-top: 0;
  word-break: break-word;
  text-align: left;
}

.search-results>p {
  padding: 20px 10px;
  text-align: center;
}

.search-results p span {
  display: block;
  font-size: 13px;
}

.sync-btn {
  background-color: #d2d4ff90;
  border: none;
  padding: 8px 15px;
  border-radius: 30px;
  flex-shrink: 0;
  transition: 0.2s ease;
  cursor: pointer;
}

.sync-btn:hover {
  background-color: #3139fb;
  color: #fff;
}

#last-sync-div {
  display: none;
  padding: 20px 10px 10px;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  background-color: #ffffff90;
  border-radius: 0 0 15px 15px;
  font-size: 0.8rem;
  margin-top: -10px;
  width: 100%;
  max-width: 500px;
  align-items: center;
}

#resync-btn {
  border: none;
  padding: 5px 8px;
  background-color: #d2d4ff90;
  border-radius: 10px;
  flex-shrink: 0;
  cursor: pointer;
  transition: 0.1s ease;
}

#resync-btn:hover {
  opacity: 0.8;
}

#resync-btn:active {
  transform: scale(0.9);
}

#timetable-display .section-title {
  padding-top: 40px;
}

.export-lists-div {
  margin: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.export-tables {
  border: none;
  padding: 5px 6px;
  background-color: #d2d4ff90;
  border-radius: 8px;
  font-size: 1rem;
  margin-top: -10px;
  color: #3d3b39;
  transition: 0.1s ease;
}

.export-tables:active {
  transform: scale(0.9);
}

.subject-lists {
  display: flex;
  padding: 0 20px;
  gap: 20px;
  flex-wrap: wrap;
}

.list {
  flex-grow: 1;
  background-color: #f9f9ff;
  border-radius: 12px;
  border: 1px solid #3139fb;
}

.list .wef {
  display: flex;
  padding: 7px 7px 7px 12px;
  align-items: center;
  justify-content: space-between;
  color: #3139fb;
}

.wef button {
  font-size: 20px;
  display: flex;
  border: none;
  background-color: #fff;
  border-radius: 9px;
  padding: 3px;
  color: #3d3b39;
}

.list ul {
  list-style: none;
}

.list ul li {
  display: flex;
  border-top: 1px solid #dddeff;
  padding: 5px 10px 2px;
}

.day-name {
  font-weight: bold;
  width: 5ch;
  flex-shrink: 0;
  margin-bottom: 5px;
}

.subject-names .subject {
  padding: 1px 4px;
  background-color: #eae7ff;
  border-radius: 5px;
  border: 1px solid #ddd;
  display: inline-block;
  margin-bottom: 4px;
}

#unused-subjects-section {
  display: block;
  padding: 15px;
  background-color: #f9f9ff;
  border-radius: 10px;
  box-shadow:
    rgba(0, 0, 0, 0.1) 0px 1px 3px 0px,
    rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
  margin: 40px 20px 0;
}

.unused-subject-list {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.unused-subject-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  margin: 4px 0;
  padding: 8px;
  border-radius: 4px;
}

.delete-subject-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.section-title {
  color: #3139fb;
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
  font-family: "MarlinSoftSQ";
}

#popup,
#popup-create,
#edit-popup,
#confirmation-popup {
  position: fixed;
  top: 0;
  left: 0;
  background-color: #3139fb90;
  backdrop-filter: blur(5px);
  padding: 20px;
  z-index: 222;
  height: 100%;
  width: 100%;
}

.popup-content,
.edit-popup,
.confirmation-popup {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 0);
  width: 100%;
  max-width: 500px;
  background-color: #fff;
  padding: 20px;
  border-radius: 15px 15px 0 0;
  animation: pop 0.2s ease forwards;
}

.popup-title {
  font-size: 1.2em;
  font-weight: bold;
  padding: 0 5px 15px 0;
}

.popup-btns,
.edit-popup-actions {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.edit-subs {
  margin-bottom: 20px;
}

.edit-subs label,
#popup-create-info label {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 3px;
}

#confirm-timetable,
#cancel-timetable,
#next-step,
#done-table,
#download-table,
#close-popup,
.close-popup,
.done-edit-button,
#save-edit,
#cancel-edit,
.confirm-delete,
.dont-delete,
.next-page {
  display: flex;
  align-items: center;
  border: none;
  background-color: #3139fb;
  border-radius: 30px;
  padding: 10px 15px;
  color: #fff;
  font-size: 1em;
  gap: 5px;
}

.delete-button,
.confirm-delete {
  display: flex;
  align-items: center;
  border: none;
  background-color: #d2d4ff90;
  border-radius: 30px;
  padding: 10px;
  color: #3d3b39;
  font-size: 1em;
  gap: 5px;
}

#cancel-timetable,
#close-popup,
.close-popup,
#cancel-edit {
  background-color: #d2d4ff90;
  color: #3d3b39;
  border: none;
  padding: 5px;
  float: right;
}

#popup-create input {
  margin-block: 4px;
  padding: 2px 0px;
  border: none;
  border-bottom: 1px solid #3139fb;
  width: 100%;
  outline: none;
  font-size: 1rem;
  font-family: "Inter Tight", sans-serif;
}

.not-match-options {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  gap: 10px;
}

#keep-cached,
#keep-new {
  border: none;
  background-color: #d2d4ff90;
  color: #3d3b39;
  padding: 15px;
  border-radius: 12px;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
}

#edit-class-code {
  border: none;
  background-color: #3139fb;
  color: #fff;
  padding: 15px;
  border-radius: 12px;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
}

.edit-subs input,
.popup-content input {
  margin-block: 4px;
  padding: 2px 0px;
  border: none;
  border-bottom: 1px solid #3139fb;
  flex-grow: 1;
  outline: none;
  font-size: 1rem;
  font-family: "Inter Tight", sans-serif;
}

#edit-popup label input {
  width: 100%;
  font-size: 1rem;
  font-family: "Inter Tight", sans-serif;
}

.modal {
  display: none;

  position: fixed;
  top: 0;
  left: 0;
  background-color: #3139fb90;
  backdrop-filter: blur(5px);
  padding: 20px;
  z-index: 222;
  height: 100%;
  width: 100%;
}

.modal-content {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 0);
  width: 100%;
  max-width: 500px;
  background-color: #fff;
  padding: 30px 20px 20px;
  border-radius: 15px 15px 0 0;
  animation: pop 0.2s ease forwards;
}

.modal-content p {
  margin-bottom: 30px;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.modal-buttons button {
  margin: 0 10px;
  padding: 8px 16px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
}

#modalConfirm {
  display: flex;
  align-items: center;
  border: none;
  background-color: #3139fb;
  border-radius: 30px;
  padding: 10px 15px;
  color: #fff;
  font-size: 1em;
  gap: 5px;
}

#modalCancel {
  display: flex;
  align-items: center;
  border-radius: 30px;
  font-size: 1em;
  gap: 5px;
  background-color: #fff;
  color: #fb3131;
  border: 1px solid #fb3131;
  padding: 9px 14px;
}

#alertConfirm {
  display: flex;
  align-items: center;
  border: none;
  background-color: #3139fb;
  border-radius: 30px;
  padding: 10px 15px;
  color: #fff;
  font-size: 1em;
  gap: 5px;
  float: right;
  cursor: pointer;
}

footer {
  padding: 20px 20px 130px;
  background-color: #3139fb;
  background-repeat: no-repeat;
  color: #fffcf2;
  overflow: hidden;
  min-height: calc(100vh - 45px);
  position: relative;
}

footer .explore {
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
  margin-block: 20px;
  gap: 5px;
}

footer .explore span {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  opacity: 0.8;
}

footer .dev {
  position: absolute;
  bottom: 20px;
}

footer h2 {
  float: right;
  position: relative;
  font-size: 5rem;
  text-align: left;
  opacity: 0.5;
}

footer a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  transition: 0.2s ease;
}

footer .explore a:hover {
  text-decoration: underline;
}

footer h3 {
  font-size: 1.7rem;
}

footer h3 {
  color: #ffffff70;
}

footer h3 a {
  font-size: 1.7rem;
  color: #ffffff;
}

footer .dev .social {
  background-color: #ffffff40;
  padding: 5px;
  margin-right: 5px;
  border-radius: 12px;
  display: inline-flex;
  margin-top: 5px;
}

@keyframes pop {
  from {
    transform: translate(-50%, 100%);
  }

  to {
    transform: translate(-50%, 0);
  }
}

@keyframes scaleUpFooter {
  0% {
    border-radius: 30px;
    transform: scale(0.9);
  }

  100% {
    border-radius: 0;
    transform: scale(1);
  }
}

@supports (animation-timeline: view()) {
  footer {
    border-radius: 30px;
    transform: scale(0.9);
    animation: scaleUpFooter 1s linear forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 25%;
  }
}

@media (min-width: 768px) {
  .nav-links li {
    display: block;
  }

  .nav-links li a {
    padding: 4px 8px;
    display: flex;
  }

  .nav-links li a span {
    display: inline-block;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.7rem;
    margin-bottom: 20px;
  }

  footer h2 {
    float: none;
    font-size: 6.5rem;
  }
}

@media (max-width: 700px) {
  footer h2 {
    font-size: 6rem;
  }
}

@media (max-width: 600px) {
  footer h2 {
    font-size: 5rem;
  }
}

@media (max-width: 500px) {
  footer h2 {
    font-size: 4rem;
  }
}

@media (max-width: 400px) {
  footer h2 {
    font-size: 3rem;
  }
}