@import url("https://rsms.me/inter/inter.css");
@import url("https://fonts.googleapis.com/css2?family=Pacifico&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

:root {
  --bg-color: #222327;

  /* 🔥 ЭНЭГ НЭМНЭ */
  --page-bg:
    radial-gradient(
      circle at 12% -8%,
      rgba(41, 253, 83, 0.14),
      transparent 34%
    ),
    radial-gradient(
      circle at 88% 3%,
      rgba(108, 155, 207, 0.17),
      transparent 38%
    ),
    linear-gradient(180deg, #15171d 0%, #1c2028 52%, #161a22 100%);
  --text-color: #fff;
  --main-color: #29fd53;
  --color-primary: #6c9bcf;
  --color-danger: #ff0060;
  --color-success: #1b9c85;
  --color-warning: #f7d060;
  --color-white: #fff;
  --color-info-dark: #7d8da1;
  --color-dark: #363949;
  --color-light: rgba(132, 139, 200, 0.18);
  --color-dark-variant: #677483;
  --color-background: #222327;
  --color-div: #3f3b46;
  --color-gray: #bcbcbc;
  --card-border-radius: 2rem;
  --border-radius-1: 0.4rem;
  --border-radius-2: 1.2rem;
  --card-padding: 1.8rem;
  --padding-1: 1.2rem;
  --box-shadow: 0 2rem 3rem var(--color-light);
  --border-radius-lg: 1.2rem;
  --border-radius-md: 0.75rem;
  --border-radius-sm: 0.4rem;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.45);
}

.dark-mode-variables {
  --color-background: #181a1e;
  --color-white: #202528;
  --color-dark: #edeffd;
  --color-dark-variant: #a3bdcc;
  --color-light: rgba(0, 0, 0, 0.4);
  --box-shadow: 0 2rem 3rem var(--color-light);
  --bg-color: #f6f6f9;
  --color-div: #fff;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at top,
    rgba(255, 255, 255, 0.04),
    transparent 60%
  );
}

.logo .star {
  color: var(--color-white);
  /* Set color for "Star" */
}

.logo .gpa {
  color: var(--main-color);
  /* Set color for "GPA" */
}

h1 {
  color: var(--color-white);
}

p {
  color: var(--color-white);
}

h2 {
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--color-white);
}

h3 {
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-white);
}

.text-muted {
  color: var(--color-info-dark);
}

c {
  color: var(--color-white);
}
header,
header * {
  font-family: "outfit", sans-serif;
}
body {
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text-color);
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: transparent;
  padding: 14px;
  transition: all 0.5s ease;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  width: 40px;
}

.logo span {
  color: var(--text-color);
  font-size: 1.7rem;
  font-weight: 600;
}

.navbar_1 {
  display: flex;
  margin-left: 20px;
}

.navbar_1 a {
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 5px 0;
  margin: 0px 50px;
  transition: all 0.5s ease;
}

.navbar_1 a:hover {
  color: var(--main-color);
}

.navbar_1 a.active {
  color: var(--main-color);
}

@media (max-width: 1286px) {
  header {
    padding: 2px 2%;
    transition: 0.2s;
  }
  .navbar_1 a {
    padding: 5px 0;
    margin: 0px 20px;
  }
}

@media (max-width: 1324px) {
  header {
    padding: 2px 2%;
    transition: 0.2s;
  }
  .navbar_1 a {
    padding: 5px 0;
    margin: 0px 20px;
  }
}

.main {
  display: flex;
  align-items: center;
}

.main a {
  margin-right: 25px;
  margin-left: 10px;
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.5s ease;
}

#menu-icon {
  font-size: 35px;
  color: var(--text-color);
  z-index: 10001;
  display: none;
}

@media (max-width: 1280px) {
  header {
    padding: 13px 2%;
    transition: 0.2s;
  }
  .navbar_1 a {
    padding: 5px 0;
    margin: 0px 20px;
  }
}

@media (max-width: 1090px) {
  #menu-icon {
    display: block;
  }
  .navbar_1 {
    position: absolute;
    top: 100%;
    right: -100%;
    width: 270px;
    height: 47vh;
    background: var(--main-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 10px;
    transition: all 0.5s ease;
  }
  .navbar_1 a {
    display: block;
    margin: 10px 25px;
    transition: all 0.5s ease;
  }
  .navbar_1 a:hover {
    color: var(--text-color);
  }
  .navbar_1 a.active {
    color: var(--text-color);
  }
  .navbar_1.open {
    right: 2%;
  }
}

.Header1 {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  margin-top: 150px;
  margin-left: 50px;
}

@media (max-width: 600px) {
  /* Adjust the max-width as needed */
  .Header1 {
    margin-top: 100px;
    /* Reduce top margin for smaller screens */
    padding-left: 2rem;
    /* Reduce padding for smaller screens */
    padding-right: 2rem;
    /* Optional: add right padding */
  }
}

.main1 {
  display: grid;
  width: 96%;
  margin: 0 auto;
  gap: 1.8rem;
  grid-template-columns: 1fr 0.4fr;
  /* Default two-column layout */
  min-height: 100vh;
}

@media (max-width: 768px) {
  .main1 {
    grid-template-columns: 1fr;
    /* Single column layout for smaller screens */
  }
}

.container_plus {
  background-color: var(--color-div);
  padding: 50px;
  border-radius: 20px;
  margin-bottom: 20px;
  margin-top: 30px;
  margin: 25px auto;
  align-self: flex-start;
}

h69 {
  font-family: "outfit", sans-serif;
  /* Or your preferred font */
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-white);
  text-align: center;
  line-height: 1.2;
  margin-left: 15px;
}

#inputForm {
  margin-top: 20px;
  /* Additional space above the form */
}

/*weather*/

.time-weather {
  display: flex;
  align-items: center;
  background: linear-gradient(to right, var(--color-success), var(--bg-color));
  padding: 15px 20px;
  border-radius: 10px;
  margin-top: 25px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  height: 120px;
}

.time-weather .time {
  flex: 1;
}

.time-weather .time h2 {
  margin: 0;
  font-size: 24px;
  color: var(--color-white);
}

.time-weather .time p {
  margin: 5px 0 0;
  font-size: 14px;
  color: var(--color-white);
}

.time-weather .weather {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100px;
  height: 100px;
  background-color: var(--bg-color);
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.time-weather .weather img {
  width: 50px;
  height: 50px;
}

.time-weather .weather p {
  margin: 5px 0 0;
  font-size: 14px;
  color: var(--color-white);
}

.section {
  padding: 0 100%;
  width: 80%;
  margin: 80px auto;
}

.title {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  font-size: 1.5vmin;
  color: rgb(255, 255, 255);
  justify-content: space-evenly;
}

/* Events*/

.footer {
  display: flex;
  flex-flow: row wrap;
  padding: 30px 30px 20px 30px;
  color: var(--color-white);
  background-color: var(--bg-color);
  font-family: outfit;
}

.footer > * {
  flex: 1 100%;
}

.footer__addr {
  margin-right: 1.25em;
  margin-bottom: 2em;
}

.footer__logo {
  font-family: "Pacifico", cursive;
  font-weight: 400;
  text-transform: lowercase;
  font-size: 1.5rem;
  color: var(--color-success);
}

.footer__addr h2 {
  margin-top: 1.3em;
  font-size: 15px;
  font-weight: 400;
  color: var(--color-white);
}

.nav__title {
  font-weight: 400;
  font-size: 15px;
  color: var(--color-white);
  font-weight: bold;
}

.footer address {
  font-style: normal;
  color: var(--color-white);
}

.footer__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  max-width: max-content;
  background-color: var(--color-white);
  border-radius: 100px;
  color: var(--color-background);
  line-height: 0;
  margin: 0.6em 0;
  font-size: 1rem;
  padding: 0 1.3em;
}

.footer ul {
  list-style: none;
  padding-left: 0;
}

.footer li {
  line-height: 2em;
}

.footer a {
  text-decoration: none;
}

.footer__nav {
  display: flex;
  flex-flow: row wrap;
}

.footer__nav > * {
  flex: 1 50%;
  margin-right: 1.25em;
}

.nav__ul a {
  color: var(--color-white);
}

.nav__ul--extra {
  column-count: 2;
  column-gap: 1.25em;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  color: var(--color-white);
}

.legal__links {
  display: flex;
  align-items: center;
}

.heart {
  color: var(--color-white);
}

@media screen and (min-width: 24.375em) {
  .legal .legal__links {
    margin-left: auto;
  }
}

@media screen and (min-width: 40.375em) {
  .footer__nav > * {
    flex: 1;
  }
  .nav__item--extra {
    flex-grow: 2;
  }
  .footer__addr {
    flex: 1 0px;
  }
  .footer__nav {
    flex: 2 0px;
  }
}

/* right section */

.right-section {
  margin-top: 0.4rem;
}

.nav {
  display: flex;
  justify-content: end;
  gap: 2rem;
}

.nav button {
  display: none;
}

.dark-mode {
  background-color: var(--color-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 1.6rem;
  width: 4.2rem;
  cursor: pointer;
  border-radius: var(--border-radius-1);
}

.dark-mode span {
  font-size: 1.2rem;
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-mode span.active {
  background-color: var(--main-color);
  color: var(--color-white);
  border-radius: var(--border-radius-1);
}

.right-section .reminders .header span {
  padding: 10px;
  box-shadow: var(--box-shadow);
  background-color: var(--color-white);
  border-radius: 50%;
}

/* MOBILE NAV */

@media (max-width: 900px) {
  header {
    padding: 0 16px;
  }

  .navbar_1 {
    position: absolute;
    top: 64px;
    right: -100%;
    flex-direction: column;
    align-items: flex-start;
    background: #020617;
    width: 220px;
    padding: 16px 18px;
    border-radius: 0 0 0 1rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
    transition: right 0.25s ease-out;
  }

  .navbar_1.open {
    right: 0;
  }

  #menu-icon {
    display: block;
  }
}

/* ------------------------------
   HERO SECTION (.Header1)
------------------------------ */

.Header1 {
  margin-top: 120px;
  padding: 40px 10vw 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.Header1 h1 {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.Header1 p {
  max-width: 680px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--color-gray);
}

.Header1 button {
  margin-top: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: #022c22;
  box-shadow: 0 14px 34px rgba(34, 197, 94, 0.45);
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease;
}

.Header1 button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(34, 197, 94, 0.6);
}

/* MOBILE HERO TWEAKS */
@media (max-width: 600px) {
  .Header1 {
    margin-top: 96px;
    padding-inline: 1.5rem;
  }

  .Header1 h1 {
    font-size: 1.8rem;
  }
}

/* ------------------------------
   SCHEDULE LAYOUT
------------------------------ */

.schedule_1 {
  padding: 10px 10vw 80px;
}

.schedule-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
}

/* LEFT: FILTERS PANEL */

.filters-panel {
  position: sticky;
  top: 84px;
  align-self: flex-start;
  padding: 18px 18px 20px;
  border-radius: var(--border-radius-lg);
  background: radial-gradient(
    circle at top left,
    rgba(55, 65, 81, 0.4),
    rgba(17, 24, 39, 0.95)
  );
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.filters-panel h2 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.filters-hint {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--color-gray);
  margin-bottom: 16px;
}

.filter-group {
  margin-top: 16px;
}

.filter-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.filter-help {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--color-gray);
}

/* CHIP INPUTS */

.chip-input {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 6px 8px;
  border-radius: var(--border-radius-md);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  min-height: 40px;
}

.chip-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-input input[type="text"] {
  flex: 1;
  min-width: 80px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-color);
  font-size: 0.85rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.4);
  font-size: 0.78rem;
}

.chip span {
  max-width: 120px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.chip-remove {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
  color: #f97373;
}

/* DAY TOGGLE */

.day-toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.day-toggle {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  padding: 4px 10px;
  font-size: 0.78rem;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease;
}

.day-toggle:hover {
  transform: translateY(-1px);
}

.day-toggle.active {
  background: rgba(34, 197, 94, 0.18);
  border-color: #22c55e;
  color: #bbf7d0;
}

/* RIGHT: SCHEDULE RESULTS */

.schedule-results {
  padding: 10px;
  border-radius: var(--border-radius-lg);
  background: radial-gradient(
    circle at top right,
    rgba(31, 41, 55, 0.35),
    rgba(15, 23, 42, 0.95)
  );
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-soft);
  min-height: 260px;
}

.schedule-header {
  margin-bottom: 10px;
}

.schedule-header h2 {
  font-size: 1.1rem;
}

.schedule-subtitle {
  font-size: 0.8rem;
  color: var(--color-gray);
  margin-top: 2px;
}

/* ------------------------------
   TABLE STYLING (#schedule)
------------------------------ */

#schedule {
  margin-top: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

#schedule table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(51, 65, 85, 0.9);
}

#schedule h2 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 16px 0 6px;
}

#schedule th,
#schedule td {
  border: 1px solid rgba(51, 65, 85, 0.9);
  padding: 6px 8px;
  font-size: 0.78rem;
  text-align: center;
  vertical-align: middle;
}

#schedule th {
  background: #020617;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

#schedule td {
  background: #020617;
}

#schedule td:first-child {
  font-weight: 500;
  white-space: nowrap;
  background: #020617;
}

#schedule td:not(:first-child) {
  min-width: 110px;
}

#schedule td[rowspan] {
  background: radial-gradient(
    circle at top,
    rgba(34, 197, 94, 0.14),
    rgba(15, 23, 42, 1)
  );
  border-color: rgba(34, 197, 94, 0.45);
  font-weight: 500;
}

/* ------------------------------
   SCHEDULE COUNTER
------------------------------ */

#scheduleCount {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;

  margin: 0;
  padding: 8px 16px;

  background: rgba(15, 23, 42, 0.96);
  color: var(--color-gray);
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 999px;
  font-size: 0.85rem;

  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

#scheduleCount:not(.fade-out) {
  opacity: 1;
  transform: translateY(0);
}

#scheduleCount.fade-out {
  opacity: 100;
}

/* ------------------------------
   RESPONSIVE LAYOUT
------------------------------ */

@media (max-width: 900px) {
  .schedule-layout {
    grid-template-columns: 1fr;
  }

  .filters-panel {
    position: static;
    margin-bottom: 10px;
  }

  .schedule_1 {
    padding-inline: 1.5rem;
  }
}

@media (max-width: 600px) {
  .filters-panel {
    padding-inline: 14px;
  }

  #schedule table {
    font-size: 0.75rem;
  }
}
/* 3 мөрөөр нь бүлэглэж ялгаруулах */

/* 3 мөрөөр нь бүлэглэж ялгаруулах */

/* Блок хооронд нь илүү бүдүүн шугам */
#schedule table tr:nth-child(2) td,
#schedule table tr:nth-child(5) td,
#schedule table tr:nth-child(8) td,
#schedule table tr:nth-child(11) td {
  border-top: 1.7px solid rgba(148, 163, 184, 0.9);
}
/* wrapper reference */
.chip-input-wrapper {
  position: relative;
}

/* overlay dropdown */
.suggestions-box {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;

  margin-top: 6px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 10px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);

  max-height: 200px;
  overflow-y: auto;

  display: none;
  z-index: 999; /* 👈 хамгийн чухал */
}

.suggestion-item {
  padding: 8px 10px;
  font-size: 0.85rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.suggestion-item:hover {
  background: rgba(34, 197, 94, 0.15);
}
.suggestion-item.active {
  background-color: #00ff0d;
  cursor: pointer;
}
