.input-container.ic3 {
  position: relative;
}
.info-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #7daaff;
  cursor: pointer;
  z-index: 2;
  background: none;
  border: none;
  outline: none;
  pointer-events: auto;
}
.info-tooltip {
  display: none;
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #22223a;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  width: 270px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}
.info-tooltip.show {
  display: block;
}
.input-with-info {
  position: relative;
  align-items: center;
  width: 100%;
}
.input-with-info {
  display: flex;
  width: 100%;
}
.info-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #7daaff;
  cursor: pointer;
  z-index: 2;
  background: none;
  border: none;
  outline: none;
}
.info-icon {
  pointer-events: auto;
}
.info-icon:focus {
  color: #08d;
}

html {
  box-sizing: border-box;
  font-family: sans-serif;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #222;
}

::-webkit-scrollbar-thumb {
  background: #08d;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0af;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  margin: 0;
  background-color: #000;
  overflow-x: hidden;
}
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

nav,
footer {
  width: 100%;
  color: white;
  background-color: #111;
  padding: 1px 0;
  text-align: center;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background-color: #111;
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow: visible;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 101;
  width: 35px;
  height: 35px;
  position: relative;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #eee;
  transition: all 0.3s ease;
  border-radius: 0;
  display: block;
  position: relative;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(0px);
  position: absolute;
  top: 50%;
  margin-top: -1.5px;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(0px);
  position: absolute;
  top: 50%;
  margin-top: -1.5px;
}

/* Navigation menu */
.nav-menu {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    right: 0;
    background-color: #111;
    flex-direction: column;
    width: 200px;
    padding: 20px;
    gap: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 100;
    align-items: center;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu a {
    width: auto;
    text-align: center;
    padding: 12px 0;
    margin: 0;
    display: block;
  }
}

.form-changelog {
  background-color: #15172b;
  border-radius: 20px;
  box-sizing: border-box;
  height: auto;
  max-height: 550px;
  padding: 40px 20px 0 20px;
  width: 400px;
  overflow-y: auto;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.form {
  background-color: #15172b;
  border-radius: 20px;
  box-sizing: border-box;
  height: auto;
  min-height: 300px;
  padding: 40px 20px;
  width: 320px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.form-stats {
  width: 800px;
  max-width: 90vw;
}

.form-success {
  background-color: #15172b;
  border-radius: 20px;
  box-sizing: border-box;
  height: auto;
  min-height: 200px;
  padding: 40px 20px;
  width: 400px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.title {
  color: #eee;
  font-size: 36px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0;
  text-align: center;
}

.title.successful {
  font-size: 30px;
}

.form-changelog .title {
  font-size: 25px;
}

.form-complete .title {
  margin-top: 0;
}

.subtitle {
  color: #eee;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}
.subtitle-small {
  color: #eee;
  font-size: 12px;
  margin-top: -10px;
  margin-bottom: 0;
  text-align: center;
}
.input-container {
  height: 50px;
  position: relative;
  width: 100%;
}

.input-container.textarea-container {
  height: auto;
  min-height: 100px;
}
.ic1,
.ic2,
.ic3 {
  margin-top: 0;
}
.input {
  background-color: #303245;
  border-radius: 12px;
  border: 0;
  box-sizing: border-box;
  color: #eee;
  font-size: 18px;
  height: 100%;
  outline: 0;
  padding: 4px 20px 0;
  width: 100%;
}

textarea.input {
  min-height: 100px;
  height: auto;
  padding: 15px 20px;
  resize: vertical;
  line-height: 1.5;
}

select.input {
  padding: 4px 40px 0 20px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23eee' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  cursor: pointer;
}

select.input option {
  background-color: #303245;
  color: #eee;
}

.cut {
  background-color: #15172b;
  border-radius: 10px;
  height: 20px;
  left: 20px;
  position: absolute;
  top: -20px;
  transform: translateY(0);
  transition: transform 200ms;
  width: 50px;
}

.email-cut {
  width: 47px;
}

.email-optional-cut {
  width: 95px;
}

.password-cut {
  width: 68px;
}

.confirm-password-cut {
  width: 105px;
}

.department-cut {
  width: 75px;
}

.cut-contact {
  width: 85px;
}

.coursenum-cut {
  width: 172px;
}
.input:focus ~ .cut,
.input:not(:placeholder-shown) ~ .cut {
  transform: translateY(8px);
}
.placeholder {
  color: #65657b;
  left: 20px;
  line-height: 14px;
  pointer-events: none;
  position: absolute;
  transform-origin: 0 50%;
  transition: transform 200ms, color 200ms;
  top: 19px;
  font-size: 14px;
}
.input:focus ~ .placeholder,
.input:not(:placeholder-shown) ~ .placeholder {
  transform: translateY(-30px) translateX(10px) scale(0.75);
}
.input:not(:placeholder-shown) ~ .placeholder {
  color: #808097;
}
.input:focus ~ .placeholder {
  color: #08d;
}

select.input:focus ~ .cut {
  transform: translateY(8px);
}

select.input:focus ~ .placeholder {
  transform: translateY(-30px) translateX(10px) scale(0.75);
  color: #08d;
}

select.input[data-selected="true"] ~ .cut {
  transform: translateY(8px);
}

select.input[data-selected="true"] ~ .placeholder {
  transform: translateY(-30px) translateX(10px) scale(0.75);
  color: #808097;
}

select.input:not([data-selected="true"]):not(:focus) ~ .cut {
  transform: translateY(0);
}

select.input:not([data-selected="true"]):not(:focus) ~ .placeholder {
  transform: translateY(0) translateX(0) scale(1);
  color: #65657b;
  top: 19px;
}

.nav-button {
  display: inline-block;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  box-sizing: border-box;
  color: #eee;
  cursor: pointer;
  font-size: 18px;
  padding: 8px 0;
  text-align: center;
  text-decoration: none;
  transition: border-bottom-color 0.3s ease;
  margin: 0 16px;
}

.login {
  background-color: #08b;
  border-radius: 12px;
  width: 80px;
}

.login:hover {
  background-color: #07b;
}

.login:active {
  background-color: #06b;
}

.logout {
  background-color: rgb(255, 86, 86);
  border-radius: 12px;
  width: 80px;
}

.logout:hover {
  background-color: rgb(216, 32, 47);
}

.logout:active {
  background-color: rgb(209, 0, 31);
}

.nav-button:hover:not(.login):not(.logout) {
  border-bottom: 2px solid #eee;
}

.submit {
  background-color: #08d;
  border-radius: 12px;
  border: 0;
  box-sizing: border-box;
  color: #eee;
  cursor: pointer;
  font-size: 18px;
  height: 50px;
  margin-top: 0;
  text-align: center;
  width: 100%;
}

.submit:active {
  background-color: #06b;
}

.error-message {
  color: #ff6666;
  font-size: 14px;
  margin-top: 20px;
  text-align: center;
}

.success-message {
  color: #66ff66;
  font-size: 14px;
  margin-top: 20px;
  text-align: center;
}

.home-link {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
}

.here-link {
  color: rgb(0, 110, 255);
  text-decoration: none;
}

/* .changelog-link {
  color: rgb(0, 110, 255);
  text-decoration: none;
  font-size: 5px;
  font-weight: 400;
} */

.changelog {
  list-style: none;
  padding: 20px;
}

.changelog li {
  padding: 1rem;
  border-left: 3px solid #4caf50;
  margin-bottom: 1rem;
  background-color: #2a2a2a;
  border-radius: 5px;
  color: #f5f5f5;
}

.changelog li .version {
  font-weight: bold;
  margin-right: 0.5rem;
  font-size: 1.2rem;
  color: #dbdbdb;
}

.changelog li .date {
  color: #aaaaaa;
  font-size: 0.9rem;
}

.changelog li p {
  margin: 0.5rem 0 0 0;
  color: #ddd;
}

.stats-container {
  display: flex;
  gap: 30px;
  width: 100%;
  align-items: flex-start;
}

.stats-left,
.stats-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stats-header {
  text-align: left;
  margin-bottom: 40px;
}

.stat-card.highlight {
  background: linear-gradient(135deg, #2a2d4e 0%, #1a1d3b 100%);
  border: 1px solid rgba(0, 136, 221, 0.3);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 136, 221, 0.2);
}

.stat-icon {
  font-size: 40px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.stat-content {
  flex: 1;
}

.stat-number {
  color: #08d;
  font-size: 36px;
  font-weight: 700;
  margin: 10px;
}

.subtitle.successful-class {
  color: #08d !important;
  font-size: 20px !important;
  font-weight: 600 !important;
}

.stat-label {
  color: #aaa;
  font-size: 14px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.top-courses {
  background: linear-gradient(135deg, #1a1d2e 0%, #15172b 100%);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  color: #eee;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 20px 0;
  text-align: center;
}

.courses-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.course-item {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: background 0.3s ease;
  min-width: 320px;
}

.course-item:hover {
  background: rgba(0, 136, 221, 0.1);
}

.course-name {
  color: #eee;
  font-size: 18px;
  font-weight: 600;
}

.count-badge {
  background: #08d;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

@media screen and (max-width: 768px) {
  .stats-container {
    padding: 20px 15px;
  }

  .stats-title {
    font-size: 32px;
  }

  .stats-subtitle {
    font-size: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .stat-card {
    padding: 20px;
  }

  .stat-number {
    font-size: 28px;
  }

  .stat-icon {
    font-size: 32px;
  }

  .course-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Admin Dashboard Styles */
.admin-stats-container {
  display: flex;
  flex-direction: row;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  margin-top: 30px;
}
.stats-section {
  background: #181a2a;
  border-radius: 12px;
  padding: 24px 32px;
  min-width: 320px;
  box-shadow: 0 2px 8px #0002;
  flex: 1;
}
.subtitle {
  margin-bottom: 16px;
  color: #eee;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}
.admin-list {
  width: 100%;
}
.admin-item {
  margin: 30px;
  padding-bottom: 10px;
  border-bottom: 1px solid #222;
}
.admin-email {
  font-weight: bold;
  color: #1976d2;
}
.admin-class {
  color: #fff;
}
.admin-codes {
  color: #bbb;
}
.admin-date,
.notif-date {
  font-size: 0.95em;
  color: #888;
}
.admin-empty {
  color: #888;
}

.admin-email,
.admin-class,
.admin-codes,
.admin-date,
.notif-date {
  display: block;
}

@media (max-width: 900px) {
  .stats-container {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  .stats-section {
    min-width: 260px;
    width: 100%;
  }
}

.autocomplete-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #222;
  border: 2px solid #08d;
  border-top: none;
  border-radius: 0 0 4px 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  margin-top: -1px;
}

.autocomplete-item {
  padding: 12px 16px;
  cursor: pointer;
  color: #eee;
  font-size: 14px;
  transition: background-color 0.2s;
  border-bottom: 1px solid #333;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
  background-color: #08d;
  color: #fff;
}

.course-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 250px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.course-stat-item:last-child {
  border-bottom: none;
}

.course-name {
  color: #eee;
  font-size: 16px;
  font-weight: 600;
}

.course-count {
  color: #08d;
  font-size: 14px;
  font-weight: 600;
}

.watched-classes-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.watched-class-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.class-info {
  color: #eee;
  font-size: 16px;
  font-weight: 600;
}

.unwatch-btn {
  background-color: #ff5656;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  transition: background-color 0.3s ease;
}

.unwatch-btn:hover {
  background-color: #d81f2f;
}
.unwatch-btn:active {
  background-color: #d1001f;
}

.stat-item {
  width: 100%;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  position: relative;
}

.stat-item:last-of-type {
  border-bottom: none;
}

.stat-item-with-hover {
  cursor: pointer;
}

.stat-item-with-hover:hover .stat-number {
  color: #0af;
  transition: color 0.2s;
}

.notif-history-tooltip {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 100%;
  margin-bottom: 10px;
  background-color: #1a1c2e;
  border: 1px solid #3a3d55;
  border-radius: 8px;
  padding: 15px;
  width: 280px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.stat-item-with-hover:hover .notif-history-tooltip {
  display: block;
}

.tooltip-title {
  color: #eee;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.notif-item {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-class {
  color: #08d;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
}

.notif-date {
  color: #888;
  font-size: 11px;
}

footer.footer {
  width: 100vw !important;
  max-width: 100% !important;
  text-align: left !important;
}

.footer-center-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  justify-content: center;
  flex: 1;
}

.footer-left {
  flex: 1;
}

.footer-center {
  position: relative;
  margin: 0 auto;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}

.footer-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.footer-center:hover {
  background: rgba(255, 255, 255, 0.05);
  opacity: 0.9;
}

.footer-right-link {
  color: #7daaff;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-right-link:hover {
  color: #aaccff;
  opacity: 0.9;
}

.separator {
  margin: 0 8px;
  color: #666;
  font-weight: 600;
}

/* Footer container */
footer.footer {
  background-color: #111;
  color: white;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  border-top: 1px solid #222;
  position: relative;
}

/* Mobile: inline row layout */
@media (max-width: 600px) {
  footer.footer {
    flex-direction: column;
    justify-content: space-between;
  }

  .separator {
    display: none; /* hide the | */
  }

  .last-scrape {
    display: block; /* force new line */
    margin-top: 4px; /* small spacing */
    font-size: 12px; /* optional: make it slightly smaller */
  }

  .system-status {
    display: block; /* also ensure it's on its own line */
  }

  .footer-center {
    position: static;
    transform: none;
  }

  .footer-center-link {
    width: 100%;
    text-align: center;
  }

  .footer-right {
    margin-left: 0;
  }
}
