:root {
  --bg: #f5f9fb;
  --loader-bg: rgba(169, 169, 169, 0.7);
  --text: #0a0a0b;
  --subtext: #494949;
  --footer: rgba(0, 0, 0, 0.05);
  --button-bg: #ffffff57;
  --button-hover: #ffffff9e;
  --button-active: #ececec2e;
  --sidebar-bg: rgb(242 242 242 / 30%);
  --sidebar-mobile-bg: rgb(225 241 244);
  --header-color: #434343;
  --border: rgb(184 184 184 / 55%);
  --svg-stroke-color: black;
  --card-bg: rgb(255 255 255 / 41%);
  --list-bg: #ffffff57;
  --list-tool-bg: rgba(0, 0, 0, 0.05);
  --chip: rgb(244 250 255 / 40%);
  --scrollbar-bg: rgba(0, 0, 0, 0.05);
  --scrollbar-thumb: #c398ff;
  --refresh-btn-bg: #00b4d8;
  --refresh-btn-hover-bg: #00d6ff;
  --refresh-btn-active-bg: #009ab3;
  --refresh-btn-svg: #ffffff;
  --divider-color: #bdbdbd;
  --reset-btn-bg: #e05624;
  --button-hover-shadow-gradient: 0 0 15px rgb(198 0 159 / 69%);
  --button-active-shadow-gradient: 0 0 15px rgb(232 15 1 / 69%);
  --button-text-gradient: #ffffff;
  --shadow-glow: 0 0 25px rgba(0, 198, 106, 0.2);
  --border-ai: rgba(0, 0, 0, 0.08);
  --accent: #00c66a;
  --accent-secondary: #ff7035;
  --gradient-primary: linear-gradient(130deg, #00ffcb 0%, #0062ff 100%);
  --gradient-secondary: linear-gradient(135deg, #ff8457 0%, #f72585 100%);
  --select-items: rgb(255 255 255 / 30%);
  --dialog: #e0d5ff;
  --complete-dialog: #f2ffff;
  --glass-bg: rgba(0, 0, 0, 0.05);
  --header-bg: rgb(255 255 255 / 21%);
  --header-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --dragging-task: #f7fafb;
  --welcome-text-gradient: linear-gradient(
    90deg,
    #9fbdeb,
    #c18af0,
    #8e8ef8,
    #c18af0,
    #9fbdeb
  );
  --welcome-splash-text: #8f8fe2;
  --welcome-splash-shadow: #efe2ffdb;
  --slider-timer-bg: #0000003b;
  --slider-df-fill: #ffffff;
  --bg-sb-sl: #4e9da887;
  --bg-lb-sl: #7ed575bd;
  --fill-sb-sl: #aaf2ff;
  --fill-lb-sl: #a8ffaf;
  --shine-bg: #d3d2d269;
  --shine-before: rgba(255, 255, 255, 0.9);
  --cookie-bg: rgb(239 255 252 / 36%);
  --chat-textarea: linear-gradient(
    90deg,
    rgb(217 252 216) 10%,
    #dfdffe 50%,
    rgb(243 228 255) 80%
  );
  --rank-txt-gold: #b930ff;
  --rank-txt-silver: #3c61ff;
  --rank-txt-bronze: #44bd44;
  --lb-bg-gold: linear-gradient(90deg, #eec0ff 0%, var(--list-bg) 60%);
  --lb-bg-silver: linear-gradient(90deg, #b4e0ff 0%, var(--list-bg) 60%);
  --lb-bg-bronze: linear-gradient(90deg, #b3fdd3 0%, var(--list-bg) 60%);
  --other-rank-gr: #ddddddbf;
  --lb-rank-bg-gold: linear-gradient(315deg, #9c44c1, #e46bfa);
  --lb-rank-bg-silver: linear-gradient(315deg, #3c6ce7, #9ae6ff);
  --lb-rank-bg-bronze: linear-gradient(315deg, #1a9625, #71eeab);
  --cu-red: rgb(255, 0, 0);
  --cu-blue: rgb(0 167 255);
  --cu-yellow: #ff8f17;
  --cu-orange: #f97316;
  --cu-green: #22c55e;
  --cu-gray: #6b7280;
  --cu-gr-red: #ffcff2;
  --cu-gr-orange: #ffdfc4;
  --cu-gr-yellow: #fff5d0;
  --cu-gr-green: #bbffd4;
  --cu-gr-blue: #b0d4ff;
  --cu-gr-gray: #bdc5cf;
}

[data-theme="dark"] {
  --bg: #0a0a0b;
  --text: #ffffff;
  --subtext: #afafaf;
  --footer: rgba(0, 0, 0, 0.1);
  --loader-bg: rgba(0, 0, 0, 0.7);
  --button-bg: rgb(255 255 255 / 7%);
  --button-hover: rgb(255 255 255 / 11%);
  --button-active: rgba(255, 255, 255, 0.03);
  --sidebar-bg: rgb(43 49 62 / 25%);
  --sidebar-mobile-bg: #17171e;
  --header-color: #bfbfbf;
  --border: rgba(255, 255, 255, 0.12);
  --scrollbar-bg: rgba(255, 255, 255, 0.04);
  --scrollbar-thumb: #5c467a;
  --list-bg: rgb(75 78 88 / 35%);
  --list-tool-bg: rgb(255 255 255 / 9%);
  --refresh-btn-bg: #0295b2;
  --refresh-btn-hover-bg: #06aac9;
  --refresh-btn-active-bg: #00869c;
  --refresh-btn-svg: #ffffff;
  --reset-btn-bg: #c33d28;
  --divider-color: rgba(255, 255, 255, 0.1);
  --svg-stroke-color: white;
  --chip: rgba(255, 255, 255, 0.05);
  --button-text-gradient: #ffffff;
  --border-ai: rgba(255, 255, 255, 0.12);
  --shadow-glow: 0 0 40px rgba(0, 255, 136, 0.15);
  --card-bg: rgb(20 20 25 / 21%);
  --select-items: rgba(75, 79, 87, 0.25);
  --dialog: #1f1b2b;
  --complete-dialog: #0e0a33;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --header-bg: rgb(10 10 11 / 21%);
  --header-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --dragging-task: #282f3a;
  --welcome-text-gradient: linear-gradient(
    90deg,
    #5c6bc0,
    #8a4ca8,
    #6a5acd,
    #8a4ca8,
    #5c6bc0
  );
  --welcome-splash-text: #b8a2f7;
  --welcome-splash-shadow: #554d8edb;
  --slider-timer-bg: #525252a1;
  --slider-df-fill: #a3a3a3;
  --bg-sb-sl: #273d55;
  --bg-lb-sl: #385930ad;
  --fill-sb-sl: #3b7cb3;
  --fill-lb-sl: #4e903e;
  --shine-bg: #3e3e3e52;
  --shine-before: rgba(83, 83, 83, 0.8);
  --cookie-bg: rgb(19 24 26 / 64%);
  --chat-textarea: linear-gradient(
    90deg,
    rgb(0 26 18) 10%,
    #110423 50%,
    rgb(33 17 36) 80%
  );
  --rank-txt-gold: #ce6eff;
  --rank-txt-silver: #7e97ff;
  --rank-txt-bronze: #5ed25e;
  --lb-bg-gold: linear-gradient(90deg, #511b61 0%, var(--list-bg) 60%);
  --lb-bg-silver: linear-gradient(90deg, #1e3f54 0%, var(--list-bg) 60%);
  --lb-bg-bronze: linear-gradient(90deg, #134030 0%, var(--list-bg) 60%);
  --other-rank-gr: #44444499;
  --lb-rank-bg-gold: linear-gradient(315deg, #a44aca, #f2abff);
  --lb-rank-bg-silver: linear-gradient(315deg, #3c6ce7, #9ae6ff);
  --lb-rank-bg-bronze: linear-gradient(315deg, #21ae2e, #a2ffcd);
  --cu-red: rgb(232, 72, 72);
  --cu-blue: rgb(0, 118, 186);
  --cu-yellow: #e68e00;
  --cu-orange: #c2410c;
  --cu-green: #16a34a;
  --cu-gray: #374151;
  --cu-gr-red: #381b1b;
  --cu-gr-orange: #3e240e;
  --cu-gr-yellow: #38321b;
  --cu-gr-green: #0d301a;
  --cu-gr-blue: #172a41;
  --cu-gr-gray: #1e2136;
}

html {
  height: 100%;
  margin: 0;
  width: 100%;
  overflow: hidden;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
}

body {
  font-family: "Urbanist", "Segoe UI", sans-serif;
  background: var(--bg);
  background-image: radial-gradient(
      circle at 12% 80%,
      rgb(7 255 0 / 10%) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 90% 15%,
      rgb(172 37 247 / 16%) 0%,
      transparent 50%
    ),
    radial-gradient(circle at 40% 40%, rgb(0 230 221 / 14%) 0%, transparent 50%),
    radial-gradient(circle at 60% 70%, rgb(215 0 255 / 11%) 0%, transparent 50%),
    radial-gradient(circle at 10% 10%, rgb(0 59 255 / 17%) 0%, transparent 50%);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  -webkit-user-select: none;
  user-select: none;
  overflow: hidden;
  line-height: 1.6;
  transition: background 0.35s ease;
}

.no-animations *,
.no-animations *::before,
.no-animations *::after {
  transition: none !important;
}

.subtask-completed {
  text-decoration: line-through;
  pointer-events: none;
}
.grey {
  color: #5d5d5d !important;
}
.complete-toggle-st.completed {
  color: var(--subtext);
}

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

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

button,
a,
img,
span,
div,
.toggle-switch {
  -webkit-tap-highlight-color: transparent;
}

.help-icon-text {
  display: flex;
  gap: 10px;
}

.non-interactive-grey {
  opacity: 0.5;
}

#global-tooltip {
  position: fixed;
  background: var(--button-hover);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 18px;
  font-size: 1rem;
  pointer-events: none;
  white-space: normal;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 99999;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
}

#global-tooltip.visible {
  opacity: 1;
  transform: scale(1);
}

#timer-blocks-stat {
  position: absolute;
  top: 40px;
  width: calc(100% - 365px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 5px;
}

.timer-slider {
  height: 4px;
  background: var(--slider-timer-bg);
  position: relative;
  margin: 4px 0;
  border-radius: 50px;
  border: 1px solid var(--border);
}
.timer-slider .slider-fill {
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  transition: width 0.3s ease;
  background: var(--slider-df-fill);
  border-radius: 50px;
}
.timer-slider.pomo-th-sl.pomo-sb-sl {
  background: var(--bg-sb-sl);
}
.timer-slider.pomo-th-sl.pomo-lb-sl {
  background: var(--bg-lb-sl);
}
.timer-slider.pomo-th-sl.pomo-sb-sl .slider-fill {
  background: var(--fill-sb-sl);
}
.timer-slider.pomo-th-sl.pomo-lb-sl .slider-fill {
  background: var(--fill-lb-sl);
}

.cookie-banner {
  background-color: var(--cookie-bg);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  color: var(--subtext);
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: calc(50% - 30px);
  padding: 15px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border: 2px solid var(--border);
  transition: all 0.3s ease;
  flex-direction: column;
  border-radius: 30px;
  text-align: left;
  box-shadow: 0px 0px 20px 7px rgba(0, 0, 0, 0.3);
}

.cookie-banner.hide {
  opacity: 0;
  transform: translateX(-1000px);
  pointer-events: none;
}

.cookie-banner.hidden {
  display: none;
  visibility: hidden;
}

.cookie-banner p {
  font-size: 1rem;
  margin: 0;
  width: 100%;
  margin-bottom: 5px;
}

.cookie-head-p {
  color: var(--text);
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 7px;
}

.cookie-banner-btn-flex {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.cookie-banner button {
  background-color: var(--button-bg);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 16px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
}

.cookie-banner button:hover {
  background-color: var(--button-hover);
  transform: scale(1.05);
}

.cookie-banner button:active {
  background-color: var(--button-active);
  transform: scale(0.95);
}

.shining {
  width: 200px;
  height: 20px;
  background-color: var(--shine-bg);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.shining::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--shine-before),
    transparent
  );
  animation: shine 1.5s ease-in-out infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(300%);
  }
}

/* Loading Screen */
.blur-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  background-image: radial-gradient(
      circle at 12% 80%,
      rgb(7 255 0 / 10%) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 90% 15%,
      rgb(172 37 247 / 16%) 0%,
      transparent 50%
    ),
    radial-gradient(circle at 40% 40%, rgb(0 230 221 / 14%) 0%, transparent 50%),
    radial-gradient(circle at 60% 70%, rgb(215 0 255 / 11%) 0%, transparent 50%),
    radial-gradient(circle at 10% 10%, rgb(0 59 255 / 17%) 0%, transparent 50%);
  overflow: hidden;
  z-index: 9999;
  transition: opacity 0.4s ease;
  display: block;
  visibility: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.blur-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.blur-loader.hide {
  display: none;
  visibility: hidden;
}

.logo-container {
  position: absolute;
  width: 100%;
  height: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
}

.u-logo {
  width: 60px;
  height: 60px;
  opacity: 0;
  margin-left: 170px;
  animation: logoFadeIn 1s ease-out forwards,
    logoSwoop 1.6s cubic-bezier(0.77, 0, 0.175, 1) 1.4s forwards;
}

.text-container {
  position: relative;
  overflow: hidden;
  height: 80px;
  display: flex;
  align-items: center;
}

.pgrind-text {
  font-size: 3rem;
  font-weight: bold;
  background: linear-gradient(180deg, #00ffcb 0%, #0041ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateX(-120px) scale(0.95);
  animation: textSlideIn 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) 2.3s
    forwards;
  opacity: 0;
  margin-left: -3px;
  margin-top: 5px;
  width: 170px;
}

.final-logo {
  opacity: 0;
  animation: finalGlow 2s ease-in-out 3.5s infinite alternate;
}

@keyframes logoFadeIn {
  0% {
    opacity: 0;
    transform: scale(4) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(4) translateY(0);
  }
}

@keyframes logoSwoop {
  0% {
    transform: scale(4) translate(0, 0) rotate(0);
    margin-left: 170px;
  }
  40% {
    transform: scale(2.5) translate(-80px, -40px) rotate(25deg);
    margin-left: 100px;
  }
  70% {
    transform: scale(1.1) translate(-130px, 0) rotate(-20deg);
    margin-left: 20px;
  }
  100% {
    transform: scale(1) translate(0, 0) rotate(0);
    margin-left: 12px;
  }
}

@keyframes textSlideIn {
  0% {
    transform: translateX(-120px) scale(0.95);
    opacity: 0;
  }
  60% {
    opacity: 0.4;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes finalGlow {
  0% {
    opacity: 0;
    filter: drop-shadow(0 0 10px rgba(0, 255, 203, 0.3));
  }
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 30px rgba(0, 255, 203, 0.8))
      drop-shadow(0 0 40px rgba(0, 65, 255, 0.6));
  }
}

.logo-container.final-state {
  animation: containerGlow 2s ease-in-out infinite alternate;
}

@keyframes containerGlow {
  0% {
    filter: drop-shadow(0 0 0 transparent);
  }
  100% {
    filter: drop-shadow(0 0 60px rgba(0, 255, 204, 0.846))
      drop-shadow(0 0 80px rgba(0, 64, 255, 0.657));
  }
}

/* Login Screen */

.tag {
  background: var(--gradient-secondary);
  color: #fff;
  padding: 1px 8px;
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: 800;
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.popup {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--button-bg);
  backdrop-filter: blur(7px);
  color: var(--text);
  padding: 0 20px;
  border-radius: 20px;
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15);
  font-weight: 500;
  z-index: 2200;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 400px;
  transform: translateX(1000px);
  transition: opacity 0.7s ease, transform 0.45s ease;
  border: 1px solid var(--border);
  border-left: 5px solid rgb(232, 72, 72);
}
.popup.show {
  opacity: 1;
  transform: translateX(0);
}

.popup.hide {
  display: none;
}

.popup button {
  background-color: var(--button-bg);
  padding: 0;
  border-radius: 50%;
  text-align: center;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  min-width: 30px;
  min-height: 30px;
  cursor: pointer;
  position: absolute;
  right: 12px;
  top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.popup button:hover {
  transform: scale(1.05);
  background-color: var(--button-hover);
}
.popup button:active {
  transform: scale(0.95);
  background-color: var(--button-active);
}

.dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: var(--dialog);
  color: var(--text);
  padding: 16px 24px;
  border-radius: 24px;
  box-shadow: rgb(0 0 0 / 20%) 0px 0px 11px 0px;
  font-weight: 500;
  z-index: 2000;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.2s ease, transform 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  font-size: 1.4rem;
  width: calc(45% - 48px);
  text-align: left;
  overflow: hidden;
  border: 1.5px solid var(--border);
}

.dialog-backdrop {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  pointer-events: none;
  display: none;
  align-items: center;
  justify-content: center;
  top: unset;
  font-size: 4rem;
  position: absolute;
  opacity: 0.16;
  filter: blur(1.5px);
  right: unset;
  height: 80px;
  left: 0;
  width: 100px;
  bottom: 10px;
  transform: rotate(353deg);
}

.dialog p {
  margin-top: 0;
  width: calc(100% - 30px);
  margin-bottom: 5px;
  padding-right: 30px;
}

#dialog-sub-message {
  font-size: 0.9rem;
  color: var(--subtext);
  margin: 0;
  margin-bottom: 10px;
}

.dialog.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.dialog-flex.hide,
.dialog.hide {
  display: none;
}

.dialog-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
  position: absolute;
  background: var(--loader-bg);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2000;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.dialog-flex.show {
  opacity: 1;
}

#dialog-buttons {
  margin-top: 25px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  width: calc(100% + 10px);
  height: 45px;
}

.dialog button {
  background-color: var(--button-bg);
  padding: 0 20px;
  border-radius: 18px;
  min-width: 110px;
  height: 100%;
  text-align: center;
  border: none;
  color: var(--subtext);
  font-size: 1.2rem;
  cursor: pointer;
  transform: scale(1);
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0px 3px 7px 0px rgb(0 0 0 / 7%);
}

.dialog button.danger {
  background-color: var(--cu-red);
  color: white;
}

.dialog button.danger:hover {
  background-color: #ff3742;
  transform: scale(1.05);
}

.dialog button.danger:active {
  background-color: #b9262d;
  transform: scale(0.95);
}

.dialog button.positive {
  background-color: var(--cu-blue);
  color: white;
}

.dialog button.positive:hover {
  background-color: #3784ff;
  transform: scale(1.05);
}

.dialog button.positive:active {
  background-color: #2666b9;
  transform: scale(0.95);
}

.dialog button.warning {
  background-color: var(--cu-yellow);
  color: white;
}

.dialog button.warning:hover {
  background-color: #ffbd39;
  transform: scale(1.05);
}

.dialog button.warning:active {
  background-color: #c78823;
  transform: scale(0.95);
}

.dialog button.outline {
  background-color: transparent;
  border: 2.5px solid var(--button-hover);
}

.dialog button.outline:hover,
.dialog button:hover {
  background-color: var(--button-hover);
  transform: scale(1.05);
}

.dialog button.outline:active,
.dialog button:active {
  background-color: var(--button-active);
  transform: scale(0.95);
}

.dialog input {
  width: calc(100% - 23px);
  padding: 10px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background-color: var(--sidebar-bg);
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.dialog input:focus {
  outline: none;
  border: 2px solid var(--border);
  box-shadow: 0 0 4px var(--text);
}

.login-screen {
  background-color: transparent;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  transition: opacity 0.3s ease;
  opacity: 1;
  pointer-events: auto;
}

.login-screen.hidden,
.main-screen.hidden,
.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.login-screen.hide,
.main-screen.hide,
.loading-screen.hide {
  display: none;
}

.header {
  position: absolute;
  top: 0px;
  left: 250px;
  width: calc(100% - 250px);
  height: 80px;
  text-align: center;
  border-radius: 0px 30px 0px 0px;
  background-color: transparent;
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.75rem;
}

.header h1 {
  margin-left: 35px;
}

.welcome-text {
  position: absolute;
  top: 40%;
  left: 250px;
  width: calc(100% - 250px);
  height: 80px;
  text-align: center;
  border-radius: 0px 30px 0px 0px;
  background-color: transparent;
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  flex-direction: column;
}

.welcome-text h1 {
  margin-left: 35px;
  margin-bottom: 20px;
  display: block;
  color: var(--text);
}

.welcome-text h3 {
  margin-left: 35px;
  color: var(--subtext);
  font-size: 0.9rem;
  margin-top: 0;
  display: block;
}

.login-form {
  padding: 20px;
  border-radius: 40px;
  height: 100%;
  width: 50%;
  justify-content: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: scale(1);
  opacity: 1;
  z-index: 2;
}

.login-form.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  position: absolute;
}
.login-form.hide {
  display: none;
}

.login-form h1 {
  color: var(--text);
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.login-form button {
  background-color: var(--button-bg);
  color: var(--subtext);
  border: none;
  border-radius: 18px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, opacity 0.3s ease, transform 0.4s ease,
    border-radius 0.4s ease;
  height: 100%;
  width: 100%;
  max-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.login-form button:hover {
  background-color: var(--button-hover);
  transform: scale(1.05);
}

.login-form button:active {
  background-color: var(--button-active);
  transform: scale(0.95);
}

.button-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  width: 100%;
  height: 50px;
  padding: 0;
}

.button-flex-2 {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
  width: 100px;
  height: 70%;
}

.password-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.password-flex button {
  position: absolute;
  width: 50px;
  height: 40px;
  background-color: transparent;
  right: 3%;
  color: var(--subtext);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.password-flex button:hover {
  background-color: transparent;
  transform: scale(1.1);
}

.password-flex button:active {
  background-color: transparent;
  transform: scale(0.9);
}

.strength-text {
  color: #b42323;
  text-align: left;
  width: 87%;
  margin-top: -10px;
  margin-bottom: -10px;
  font-size: 0.8rem;
  font-weight: bold;
  height: 0px;
  opacity: 0;
  transition: opacity 0.3s ease, height 0.3s ease;
}

.strength-text.show {
  opacity: 1;
  height: auto;
}

.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  text-align: center;
  border-radius: 0px 30px 0px 0px;
  background-color: var(--footer);
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer p {
  color: var(--subtext);
  font-size: 1rem;
  margin-left: 290px;
}

.username-input,
.password-input {
  width: calc(100% - 22px);
  padding: 10px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background-color: var(--sidebar-bg);
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.password-input {
  width: 100% !important;
}

.username-input:focus,
.password-input:focus {
  outline: none;
  border: 2px solid var(--border);
  box-shadow: 0 0 4px var(--text);
}

.alt-flex-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 450px;
}

.alt-flex-btn button {
  padding: 10px 16px;
  text-align: center;
  align-items: center;
  justify-content: center;
  display: flex;
  gap: 10px;
}

.alt-flex-btn button i {
  font-size: 1.5rem;
  background: radial-gradient(circle at center, #4285f4 27%, transparent 44%),
    conic-gradient(
      from 90deg,
      #4285f4 0deg,
      #34a853 90deg,
      #fbbc05 181deg,
      #ea4335 269deg,
      #ea4335 313deg,
      #4285f4 96deg
    );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 3px;
}

.line-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.line-flex p {
  color: var(--subtext);
  font-size: 1rem;
  margin: 0px 20px;
}

.line {
  width: 100%;
  height: 1.5px;
  background-color: var(--border);
}

/* Main Screen */

.main-screen {
  background-color: transparent;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  opacity: 1;
  pointer-events: auto;
}

.welcome {
  font-family: sans-serif;
  font-size: 2.5rem;
  text-align: center;
  font-weight: 700;
  background: var(--welcome-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 250% 100%;
  animation: gradient-move 8s linear infinite;
  line-height: 1.2;
}

@keyframes gradient-move {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.sidebar {
  background-color: var(--sidebar-bg);
  padding: 20px;
  border-radius: 0px 30px 30px 0px;
  border-right: 1px solid var(--border);
  box-shadow: rgb(0 0 0 / 10%) 3px 0px 20px;
  height: calc(100% - 40px);
  width: 225px;
  justify-content: flex-start;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  z-index: 3;
  pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(0) scaleX(1);
  opacity: 1;
  position: fixed;
  left: 0;
  will-change: transform, opacity;
  color: var(--subtext);
}

.sidebar.hidden {
  opacity: 0;
  transform: translateX(-250px) scaleX(2);
  pointer-events: none;
}

#sidebar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  background-color: var(--loader-bg);
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 2;
  will-change: opacity;
}

#sidebar-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.sidebar h1 {
  color: var(--text);
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.top-logo {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  height: 55px;
  cursor: pointer;
  align-self: flex-start;
}

.top-logo img {
  width: 45px;
  height: 45px;
}

.h-divider {
  height: 1.25px;
  width: 100%;
  margin-top: -10px;
  border-radius: 20px;
  background-color: var(--divider-color);
}

.top-logo span {
  font-weight: bold;
  font-size: 2.25rem;
  align-self: flex-end;
  background: linear-gradient(180deg, #00ffcb 0%, #0041ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: -3px;
}

.sidebar button {
  background-color: var(--button-bg);
  color: var(--subtext);
  border: none;
  padding: 16px;
  border-radius: 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, opacity 0.3s ease, transform 0.4s ease,
    border-radius 0.4s ease;
  width: 100%;
  box-shadow: 0px 3px 7px 0px rgb(0 0 0 / 7%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.username-chip {
  justify-content: space-between !important;
  background: transparent !important;
  border: 1px solid var(--border) !important;
  padding: 0 20px 0px 8px !important;
  height: 50px !important;
}

.flex-s {
  gap: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-profile {
  position: relative;
  font-size: 2rem;
  top: 1px;
  margin-right: 3px;
}

#caret-flyup {
  transform: rotateZ(-180deg);
}

#caret-flyup.active {
  transform: rotateZ(0deg);
}

.flyup-menu {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-direction: column;
  margin-bottom: 15px;
  transform-origin: center bottom;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.flyup-menu.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px) scaleY(0);
}

.flyup-menu.hide {
  display: none;
}

.sidebar button:hover {
  background-color: var(--button-hover);
  transform: scale(1.05);
}

.sidebar button:active {
  background-color: var(--button-active);
  transform: scale(0.95);
}

.sidebar-button-flex {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
  width: calc(100% - 40px);
  padding: 0 20px;
}

.sidebar-scroll-helper {
  height: calc(100% - 100px);
  width: calc(100% + 40px);
  overflow-y: auto;
  overflow-x: visible;
  border-radius: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

.sidebar-scroll-helper::-webkit-scrollbar {
  width: 8px;
  background: var(--scrollbar-bg);
}

.sidebar-scroll-helper::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 8px;
}

.t-sidebar-btn {
  width: 50px;
  height: 50px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  transform: scale(1);
  transition: background-color 0.3s ease, transform 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.t-sidebar-btn:hover {
  background-color: var(--button-hover);
  transform: scale(1.1);
}

.t-sidebar-btn:active {
  background-color: var(--button-active);
  transform: scale(0.9);
}

.t-sidebar-btn svg {
  stroke: var(--subtext);
}

#open-sidebar-btn {
  display: none;
  position: fixed;
  top: 10px;
  left: -25px;
  z-index: 3;
  background-color: transparent;
  height: 35px;
}

.top-flex {
  display: flex;
  justify-content: space-between;
  width: 90%;
}

.quote-home {
  color: var(--subtext);
  font-size: 1.2rem;
  font-style: oblique;
  font-family: initial;
  line-height: 1.2;
}

.quote-author {
  text-align: right;
  font-size: medium;
}

.home-name-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.tasks-header {
  width: 100%;
  min-height: 60px;
  padding: 0 15px 0 15px;
  margin-left: -15px;
  margin-top: -15px;
  color: var(--text);
  font-size: 1.6rem;
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.tasks-header button {
  background-color: var(--button-bg);
  color: var(--subtext);
  border: none;
  border-radius: 16px;
  margin-right: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.4s ease;
  height: 40px;
  width: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0px 3px 7px 0px rgb(0 0 0 / 7%);
}

.tasks-header button i {
  font-weight: bolder;
}

.tasks-header button:hover {
  background-color: var(--button-hover);
  transform: scale(1.05);
}

.tasks-header button:active {
  background-color: var(--button-active);
  transform: scale(0.95);
}

#xp {
  position: relative;
  font-size: 4rem;
  color: var(--subtext);
}

.xp-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  position: relative;
  width: 100%;
  height: 100%;
  opacity: 1;
  pointer-events: auto;
  position: relative;
  transform: scale(1);
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.xp-section.hidden {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: scale(1.5);
}

.xp-section.hide {
  display: none;
}

.xp-controls {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  height: 70%;
  box-sizing: border-box;
  position: relative;
  padding: 20px 20px 20px 290px;
}

.xp-actions {
  display: flex;
  flex-direction: column;
  padding: 15px;
  background-color: var(--sidebar-bg);
  border-radius: 25px;
  box-shadow: rgb(0 0 0 / 18%) 0px 0px 20px 0px;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s ease;
}

.xp-display {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
  height: 15%;
  top: 40px;
  padding-left: 290px;
}

.xp-display button {
  position: relative;
  bottom: 0;
  left: 0;
  width: 70px;
  height: 70px;
  text-align: center;
  border-radius: 50%;
  border: none;
  background-color: var(--reset-btn-bg);
  transition: background-color 0.3s ease, transform 0.3s ease;
  transform: scale(1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.75rem;
  color: var(--refresh-btn-svg);
}

.xp-display button svg {
  width: 80%;
  height: 80%;
  stroke: var(--refresh-btn-svg);
}

.xp-display button:hover {
  background-color: #b74a4a;
  transform: scale(1.05);
}

.xp-display button:active {
  transform: scale(0.95);
  background-color: #762626;
}

/* Leaderboard Section */

.leaderboard-list {
  width: calc(100% - 10px);
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  height: 100%;
  padding: 5px;
  display: flex;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
  border-radius: 25px 38px 38px 25px;
  color: var(--subtext);
  text-align: center;
  font-size: 1rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.leaderboard-list::-webkit-scrollbar {
  width: 8px;
  background: var(--scrollbar-bg);
}

.leaderboard-list::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 8px;
}

.leaderboard-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(
    90deg,
    var(--other-rank-gr) 0%,
    var(--list-bg) 60%
  );
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.leaderboard-item.gold {
  background: var(--lb-bg-gold);
}
.leaderboard-item.silver {
  background: var(--lb-bg-silver);
}
.leaderboard-item.bronze {
  background: var(--lb-bg-bronze);
}

.rank {
  display: inline-flex;
  align-items: center;
  background: none;
  position: relative;
  font-weight: bold;
}

.rank i {
  font-size: 2rem;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent;
  background: var(--list-tool-bg);
}

.rank-number {
  position: relative;
  color: #ffffff;
  text-shadow: 0 0 6px #00000070;
  margin-bottom: 3px;
  right: 21px;
}

.rank.gold i {
  background: var(--lb-rank-bg-gold);
}

.rank.silver i {
  background: var(--lb-rank-bg-silver);
}

.rank.bronze i {
  background: var(--lb-rank-bg-bronze);
}

.rank.gold .rank-number {
  right: 21px;
}

.rank.silver .rank-number {
  right: 22.5px;
  margin-bottom: 0;
}

.rank.bronze .rank-number {
  right: 20.5px;
  margin-bottom: 0;
}

.name {
  flex-grow: 1;
  text-align: left;
  margin-left: 15px;
  color: var(--subtext);
  font-weight: 500;
  font-size: 1.25rem;
}
.name.gold {
  color: var(--rank-txt-gold);
}
.name.silver {
  color: var(--rank-txt-silver);
}
.name.bronze {
  color: var(--rank-txt-bronze);
}

.xp {
  font-weight: bold;
  font-size: 1.25rem;
  color: var(--subtext);
}
.xp.gold {
  color: var(--rank-txt-gold);
}
.xp.silver {
  color: var(--rank-txt-silver);
}
.xp.bronze {
  color: var(--rank-txt-bronze);
}

#refresh-leaderboard {
  background-color: var(--refresh-btn-bg);
}

#refresh-leaderboard:hover {
  background-color: var(--refresh-btn-hover-bg);
}

#refresh-leaderboard:active {
  background-color: var(--refresh-btn-active-bg);
}

.xp-display h1 {
  font-size: 3rem;
  color: var(--subtext);
  max-width: 500px;
}

.custom-select,
.custom-timer-select {
  position: relative;
  font-size: 1rem;
}

.custom-select select,
.custom-timer-select select {
  display: none;
}

.select-arrow {
  transition: transform 0.3s ease;
}

.select-arrow-active {
  transform: rotate(-180deg);
}

.select-items div,
.select-selected {
  background-color: transparent;
  color: var(--subtext);
  padding: 8px 16px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  border-radius: 16px;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0px 3px 7px 0px rgb(0 0 0 / 7%);
  -webkit-tap-highlight-color: transparent;
}

.select-selected {
  background-color: var(--button-bg);
  border-radius: 16px;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.select-items {
  position: absolute;
  background-color: var(--select-items);
  left: 0;
  right: 0;
  z-index: 99;
  border-radius: 16px;
  box-shadow: 0px 20px 20px 9px rgb(0 0 0 / 7%);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.select-hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100px) scaleY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.select-items div:hover,
.same-as-selected {
  background-color: var(--button-hover);
}

#stopwatch {
  font-size: 5rem;
  font-weight: 900;
  color: var(--subtext);
  margin: 0;
  height: 100px;
  display: flex;
  align-items: center;
}

.watch-flex button {
  background-color: var(--button-bg);
  color: var(--subtext);
  width: 125px;
  height: 50px;
  font-size: 1.4rem;
  border: none;
  border-radius: 50pc;
  cursor: pointer;
  transform: scale(0);
  opacity: 0;
  transition: background-color 0.3s, transform 0.4s, opacity 0.4s;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0px 3px 7px 0px rgb(0 0 0 / 7%);
}

#resume {
  width: 150px;
}

#openPiP {
  width: 50px;
}

.watch-flex button i {
  text-align: center;
}

.watch-flex button svg {
  height: 80%;
  width: 80%;
  fill: var(--subtext);
}

.watch-flex button.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.watch-flex button.hidden {
  display: none;
}

.watch-flex button:hover {
  transform: scale(1.1);
  background-color: var(--button-hover);
}

.watch-flex button:active {
  transform: scale(0.9);
  background-color: var(--button-active);
}

.watch-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
}

.watch-btn-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.task-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background-color: var(--list-bg);
  border-radius: 25px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 4px;
  transition: none;
  animation: fadeIn 0.45s ease;
}

.subtask-list-item {
  height: 10px;
  width: calc(100% - 20px);
  padding: 20px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--list-bg);
  box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 4px;
  border-radius: 20px;
  gap: 10px;
  transition: opacity 0.3s ease;
  animation: fadeIn 0.45s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.subtask-list-item.removing,
.task-list-item.removing {
  opacity: 0 !important;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.subtask-list-item.dragging,
.task-list-item.dragging {
  opacity: 1;
  backdrop-filter: blur(7px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.subtask-list-item::before,
.subtask-list-item::after,
.task-list-item::before,
.task-list-item::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  opacity: 0.2;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.subtask-list-item.swiping-right::before,
.task-list-item.swiping-right::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: -40px;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.subtask-list-item.swiping-left::after,
.task-list-item.swiping-left::after {
  content: "\f1f8";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: -40px;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.drag-placeholder {
  transition: min-height 0.25s ease, padding 0.25s ease, margin 0.25s ease;
  min-height: 32px !important;
  padding: 20px;
  margin-bottom: 20px;
}
.drag-placeholder.zero-h,
.drag-placeholder-st.zero-h {
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.drag-placeholder-st {
  transition: min-height 0.25s ease, padding 0.25s ease, margin 0.25s ease;
  min-height: 10px !important;
  padding: 20px;
  margin-bottom: 12px;
}

.drag-handle,
.task-pos {
  font-weight: bold;
  font-size: 1rem;
  color: var(--subtext);
  background-color: var(--list-tool-bg);
  border-radius: 50%;
  padding: 1px 7px;
  cursor: move;
  cursor: n-resize;
}

.drag-handle:active,
.task-pos:active {
  cursor: default;
}

.task-name {
  text-align: left;
  color: var(--subtext);
  font-weight: 500;
  font-size: 1.25rem;
}

.task-duration,
.task-type {
  font-size: 1rem;
  color: var(--subtext);
}

.task-actions-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--list-tool-bg);
  border-radius: 50px;
  padding: 2px 5px 2px 5px;
}

.task-values-flex {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  flex-grow: 1;
  margin-left: 10px;
}

.v-divider {
  height: 20px;
  width: 1.75px;
  border-radius: 20px;
  background-color: var(--divider-color);
}

.flex-duration-input {
  height: 37px;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 6px;
}

.tasks-footer {
  width: calc(100% - 30px);
  padding: 15px 15px;
  position: sticky;
  bottom: 20px;
  color: var(--text) #ffffff;
  font-size: 1.6rem;
  align-items: center;
  display: flex;
  justify-content: space-between;
  background-color: var(--sidebar-bg);
  border: 1px solid var(--border);
  box-shadow: rgb(0 0 0 / 20%) 0px 0px 20px 2px;
  border-radius: 26px;
  backdrop-filter: blur(7px);
}

.create-task-button-flex {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.tasks-footer button {
  background-color: var(--button-bg);
  color: var(--subtext);
  border: none;
  padding: 0px 20px;
  border-radius: 16px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.4s ease;
  height: 40px;
  width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0px 3px 7px 0px rgb(0 0 0 / 7%);
}

.tasks-footer button:hover {
  background-color: var(--button-hover);
}
.tasks-footer button:active {
  background-color: var(--button-active);
}

.leaderboard-list button,
.start-task,
.notes-task,
.delete-task,
.edit-task,
.complete-task,
.more-options-btn,
.complete-toggle-st,
.delete-subtask {
  background-color: transparent;
  color: var(--subtext);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.4s ease;
  height: 25px;
  width: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leaderboard-list button i {
  transition: transform 0.4s ease;
}

.tasks-footer button:hover {
  transform: scale(1.1);
}

.leaderboard-list button:hover {
  transform: scale(1.1);
}

.leaderboard-list button:hover i {
  transform: rotate(12.5deg);
}

.tasks-footer button:active,
.leaderboard-list button:active {
  transform: rotate(0) scale(0.9);
}

.leaderboard-list label {
  color: var(--subtext);
  font-size: 1.6rem;
  font-weight: 500;
}

.leaderboard-list input,
.subtask-edit-input {
  padding: 10px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background-color: var(--sidebar-bg);
  color: var(--subtext);
  font-size: 0.9rem;
  height: 17px;
  width: 175px;
  text-align: left;
  transition: all 0.3s ease;
}

.subtask-edit-input {
  flex-grow: 1 !important;
  background: transparent !important;
  border: none !important;
}

.subtask-edit-input:focus {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.leaderboard-list input:focus {
  outline: none;
  border: 2px solid var(--border);
  box-shadow: 0 0 4px var(--text);
}

.duration-input {
  width: 60px !important;
  min-width: 40px !important;
  padding: 6px 10px;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  opacity: 0.5;
  margin: 0;
}

.your-tasks {
  margin-left: 8px;
  font-size: 1.5rem;
  color: var(--subtext);
}

#create-task-list {
  padding: 25px;
  width: calc(100% - 50px);
  margin-bottom: 10px;
}

.watch-flex {
  display: flex;
  flex-direction: column;
  padding: 15px;
  background-color: var(--sidebar-bg);
  border-radius: 20px;
  box-shadow: rgb(0 0 0 / 20%) 0px 0px 11px 0px;
  box-sizing: border-box;
  min-width: 250px;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  transition: all 0.3s ease;
  gap: 10px;
  border: 1px solid var(--border);
}

.xp-controls.watch {
  align-items: flex-start;
}

.watch-container {
  width: 100%;
  height: 100%;
}

#created-tasks,
#created-subtasks {
  background-color: var(--chip);
  color: var(--subtext);
  font-size: 1.2rem;
  padding: 2px 5px 3px 5px;
  border-radius: 11px;
  font-weight: 600;
  margin-left: 4px;
  box-shadow: 0px 3px 7px 0px rgb(0 0 0 / 7%);
}

.more-options-container {
  position: relative;
  display: inline-block;
}

.more-options-dropdown {
  position: absolute;
  background-color: var(--list-tool-bg);
  backdrop-filter: blur(7px);
  min-width: 150px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 4px;
  border-radius: 16px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.3s ease;
  right: 0px;
  top: 30px;
  padding: 5px 10px;
  justify-content: flex-start;
  transform: scale(0) translate(200px, -200px);
}

.more-options-dropdown.show {
  opacity: 1;
  transform: scale(1) translate(0, 0);
  pointer-events: auto;
}

.more-options-dropdown.hide {
  display: none;
}

.more-options-dropdown button,
.mo-notes-task,
.mo-complete-task,
.mo-edit-task,
.mo-delete-task {
  width: 100%;
  justify-content: flex-start;
  gap: 7px;
  font-size: revert;
}

.complete-task,
.edit-task,
.delete-task,
.notes-task {
  display: flex !important;
}

.more-options-btn {
  display: none !important;
}

.complete-screen-container {
  height: 100%;
  width: 100%;
  background: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 5000;
  position: fixed;
  opacity: 0;
  background-image: radial-gradient(
      circle at 12% 80%,
      rgb(7 255 0 / 10%) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 90% 15%,
      rgb(172 37 247 / 16%) 0%,
      transparent 50%
    ),
    radial-gradient(circle at 40% 40%, rgb(0 230 221 / 14%) 0%, transparent 50%),
    radial-gradient(circle at 60% 70%, rgb(215 0 255 / 11%) 0%, transparent 50%),
    radial-gradient(circle at 10% 10%, rgb(0 59 255 / 17%) 0%, transparent 50%);
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.complete-screen-container.visible {
  opacity: 1;
  pointer-events: auto;
}

.complete-screen-container.hide {
  display: none;
}

.completion-screen {
  text-align: center;
  padding: 2rem;
  border-radius: 35px;
  background-color: var(--complete-dialog);
  position: relative;
  width: 90%;
  max-width: 500px;
  overflow: hidden;
  border: 5px solid var(--border);
  background-image: radial-gradient(
      circle at 12% 80%,
      rgb(7 255 0 / 10%) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 90% 15%,
      rgb(172 37 247 / 16%) 0%,
      transparent 50%
    ),
    radial-gradient(circle at 40% 40%, rgb(0 230 221 / 14%) 0%, transparent 50%),
    radial-gradient(circle at 60% 70%, rgb(215 0 255 / 11%) 0%, transparent 50%),
    radial-gradient(circle at 10% 10%, rgb(0 59 255 / 17%) 0%, transparent 50%);
}

.completion-screen::before {
  content: "\f091";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  bottom: -60px;
  right: -40px;
  filter: blur(5px);
  font-size: 11rem;
  color: rgb(148 125 0 / 28%);
  transform: rotate(11deg);
  pointer-events: none;
  z-index: 0;
  animation: trophyGlow 3s ease-in-out infinite;
}

.completion-screen::after {
  content: "\f559";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: -20px;
  left: -20px;
  font-size: 9rem;
  filter: blur(5px);
  color: rgb(0 110 178 / 18%);
  transform: rotate(-9deg);
  pointer-events: none;
  z-index: 0;
  animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes trophyGlow {
  0%,
  100% {
    text-shadow: 0 0 0 transparent;
  }
  50% {
    text-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
  }
}

@keyframes badgeGlow {
  0%,
  100% {
    text-shadow: 0 0 0 transparent;
  }
  50% {
    text-shadow: 0 0 20px rgba(100, 200, 255, 0.3);
  }
}

.message-box h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.message-box .task-info {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--subtext);
}

.stats p {
  font-size: 1rem;
  margin: 0.3rem 0;
  color: var(--subtext);
  font-weight: bolder;
  align-items: center;
  justify-content: center;
  display: flex;
}

.stats p span {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  font-weight: 600;
}

.message-box button {
  margin-top: 1.5rem;
  padding: 10px 20px;
  background: var(--button-bg);
  color: var(--subtext);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 7px;
}

.message-box button:hover {
  transform: scale(1.1);
  background: var(--button-hover);
}

.message-box button:active {
  transform: scale(0.9);
  background: var(--button-active);
}

.message-box button i {
  color: var(--subtext);
}

.cs-btn-flex {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

.confetti-container {
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: red;
  animation: fall 3s ease-in-out infinite;
  opacity: 0.8;
  transform: rotate(45deg) translateY(-80px);
}

.confetti-square {
  border-radius: 2px;
}

.confetti-strip {
  border-radius: 1px;
}

.confetti-triangle {
  width: 0;
  height: 0;
  background: none !important;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 14px solid currentColor;
  transform-origin: center;
}

.stats i {
  margin-right: 8px;
  color: var(--refresh-btn-hover-bg);
}

@keyframes fall {
  0% {
    transform: translateY(-15vh) translateX(0) rotate(0deg) skew(0deg, 0deg)
      skew(5deg, 3deg);
    opacity: 1;
  }

  100% {
    transform: translateY(calc(100vh + 60px))
      translateX(calc(-50% + var(--random-offset))) rotate(720deg)
      skew(0deg, 0deg);
    opacity: 0;
  }
}

/* Chatbot UI */
#chat-container {
  position: relative;
  top: 0;
  right: 0;
  width: calc(100% - 265px);
  height: 100%;
  background: transparent;
  color: var(--text);
  display: flex;
  flex-direction: column;
  padding-left: 265px;
}

.header-ai {
  position: relative;
  top: 0px;
  text-align: center;
  background-color: transparent;
  color: var(--subtext);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.75rem;
  padding: 10px 40px 10px 40px;
  border-bottom: solid 1px var(--border-ai);
  border-radius: 0 0 25px 0;
  width: calc(100% - 80px);
}

.bottom-area-chatbot {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: auto;
}

.chatbot-input-container {
  position: relative;
  width: 100%;
  justify-content: center;
  align-items: center;
  display: flex;
}

.footer-chatbot {
  width: 100%;
  text-align: center;
  color: var(--subtext);
  font-size: 0.8rem;
  position: relative;
  padding: 7px 0 7px 0;
}

#chat-log {
  padding: 25px 0px 25px 0px;
  display: flex;
  flex-direction: column;
  width: calc(100% - 110px);
  max-width: 800px;
}

.chat-log-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
  margin-bottom: -35px;
}

.chat-log-container::-webkit-scrollbar {
  width: 8px;
  background: var(--bg);
}

.chat-log-container::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 8px;
}

#chat-input-area {
  display: flex;
  align-items: flex-end;
  border: 2px solid var(--border-ai);
  position: relative;
  width: calc(100% - 200px);
  min-height: 80px;
  height: auto;
  background: var(--button-bg);
  border-radius: 40px;
  overflow: hidden;
  transition: all 0.2s ease;
  align-items: center;
  padding: 15px 70px 15px 20px;
  max-width: 710px;
  backdrop-filter: blur(7px);
}

#userInput {
  width: 100%;
  resize: none;
  border: none;
  background-color: transparent;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7em;
  text-align: left;
  transition: all 0.3s ease;
  overflow: hidden;
  overflow-y: auto;
  font-family: "Segoe UI", sans-serif;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
  height: 80px;
}

#userInput:focus {
  outline: none;
  border: none;
}

#userInput::-webkit-scrollbar {
  width: 8px;
  background: var(--button-hover);
}

#userInput::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 8px;
}

#send-ai-btn {
  background: var(--gradient-secondary);
  border: none;
  color: var(--button-text-gradient);
  cursor: pointer;
  width: 50px;
  height: 50px;
  position: absolute;
  bottom: 15px;
  right: 15px;
  border-radius: 50%;
  font-size: 1.25rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

#send-ai-btn:hover {
  box-shadow: var(--button-hover-shadow-gradient);
  transform: scale(1.05);
}
#send-ai-btn:active {
  box-shadow: var(--button-active-shadow-gradient);
  transform: scale(0.95);
}
#send-ai-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

#send-ai-btn i {
  margin-right: 3px;
}

#reset-chat-button {
  padding: 8px 16px;
  font-size: 0.9rem;
  background: var(--button-bg);
  border: none;
  color: var(--subtext);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  margin-left: initial;
  border-radius: 30px;
}

#reset-chat-button:hover {
  background: var(--button-hover);
  transform: scale(1.1);
}
#reset-chat-button:active {
  background: var(--button-active);
  transform: scale(0.9);
}

.bubble {
  margin: 15px 0;
  padding: 0 20px;
  border-radius: 35px;
  word-wrap: break-word;
  background-color: transparent;
  -webkit-user-select: text;
  user-select: text;
  cursor: text;
  display: flex;
  align-items: center;
}
.bubble.user {
  background-color: var(--button-bg);
  align-self: flex-end;
  max-width: 60%;
  border: 1.5px solid var(--border);
  box-shadow: 0px 3px 7px 0px rgb(0 0 0 / 7%);
}
.bubble.ai {
  max-width: 100%;
  padding: 0;
}

.link {
  text-decoration: none;
  color: var(--cu-blue);
  font-weight: 600;
}

.bubble.syslink {
  background-color: transparent;
  padding: 0;
  font-style: italic;
  max-width: 100%;
  margin: 0;
  margin-bottom: 1.2rem;
}

.bubble.system {
  background-color: transparent;
  padding: 0;
  font-style: italic;
  max-width: 100%;
  margin: 0;
  margin-top: -20px;
}

.bubble.stretch {
  padding-bottom: 50px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.9rem;
}

th,
td {
  padding: 0.6em;
  border: 1px solid var(--border);
  text-align: left;
  background-color: transparent;
}

.welcome-content {
  text-align: center;
  max-width: 600px;
  align-self: center;
  margin-top: 35px;
  width: 100%;
}

.welcome-message {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-subtitle {
  font-size: 18px;
  color: var(--subtext);
  margin-bottom: 40px;
}

.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 100px;
}

.suggestion-card {
  background: var(--button-bg);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 20px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(10px);
}

.suggestion-card:hover {
  background: var(--button-hover);
  transform: scale(1.05);
}
.suggestion-card:active {
  background: var(--button-active);
  transform: scale(0.95);
}

.suggestion-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.suggestion-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.suggestion-desc {
  font-size: 14px;
  color: var(--subtext);
}

.intro-ai-flex {
  display: flex;
  align-items: center;
  justify-content: center;
}

/*Loader Animation AI*/
.loader-wrapper {
  position: relative;
  width: 60px;
  height: 40px;
  margin-right: 20px;
}

.loader {
  width: 35px;
  height: 35px;
  background-image: linear-gradient(
    135deg,
    rgb(255, 140, 111),
    rgb(255, 100, 193),
    rgb(171, 93, 255)
  );
  background-size: 300%;
  background-position: 0% 50%;
  animation: colorShift 3s ease-in-out infinite,
    thinkMorph 3s cubic-bezier(0.68, -0.6, 0.32, 1.6) infinite;
  position: relative;
  z-index: 2;
  margin: 0 auto;
}

.cube {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  opacity: 0.15;
  z-index: 1;
}

.cube-left {
  background-color: rgb(255, 140, 111);
  animation: floatLeft 2.5s ease-in-out infinite;
  left: 0;
  top: 40%;
}

.cube-right {
  background-color: rgb(171, 93, 255);
  animation: floatRight 2.5s ease-in-out infinite;
  right: 0;
  top: 40%;
  animation-delay: 0.8s;
}

.cube-top {
  background-color: rgb(255, 100, 193);
  animation: floatTop 2.5s ease-in-out infinite;
  left: 50%;
  transform: translateX(-50%);
  top: -10px;
  animation-delay: 1.2s;
}

@keyframes thinkMorph {
  0% {
    transform: scale(1) rotate(0deg);
    border-radius: 13px;
  }
  30% {
    transform: scale(1.1, 0.95) rotate(-12deg);
    border-radius: 13px 17px 16px 16px;
  }
  50% {
    transform: scale(0.95, 1.1) rotate(12deg);
    border-radius: 18px 20px 16px 16px;
  }
  70% {
    transform: scale(1.05, 0.95) rotate(-8deg);
    border-radius: 13px;
  }
  100% {
    transform: scale(1) rotate(0deg);
    border-radius: 13px;
  }
}

@keyframes colorShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes floatLeft {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.2) rotate(15deg);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes floatRight {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-15px) scale(1.1) rotate(-15deg);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes floatTop {
  0% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  50% {
    transform: translateX(-50%) translateY(-25px) scale(1.25) rotate(10deg);
  }
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

/* New Welcome screen styles */

header {
  position: fixed;
  top: 0;
  width: 85.6%;
  z-index: 1000;
  background: transparent;
  backdrop-filter: blur(10px);
  margin-top: 20px;
  border-radius: 30px;
  border: 1px solid var(--border);
  justify-self: center;
  transition: transform 0.5s ease;
  max-width: 1200px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.nav-links-strip {
  color: var(--subtext);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links-strip:hover {
  color: var(--accent);
}

#hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 24px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

#hamburger:hover {
  transform: rotate(5deg);
}
#hamburger:active {
  transform: rotate(0);
}

#ham-menu {
  opacity: 0;
  pointer-events: none;
  width: 200px;
  height: 230px;
  position: fixed;
  top: 120px;
  right: 20px;
  background: transparent;
  border-radius: 30px;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transform: scale(0.4) translateY(-120px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 3;
}

.join-btn {
  background: var(--gradient-primary);
  color: var(--text);
  padding: 12px 28px;
  border: none;
  border-radius: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 0 0 transparent;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 100px;
}

.hero-badge {
  background: var(--button-bg);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 20px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 30px;
  display: inline-block;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 0 0 transparent;
}

.hero-badge:hover {
  transform: scale(1.1) rotate(2deg);
  box-shadow: 0px 0px 20px rgb(0 255 157 / 40%);
  background: var(--accent);
  color: black;
}
.hero-badge:active {
  transform: scale(0.9) rotate(0);
  box-shadow: 0 0 0 transparent;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 30px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 0;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--subtext);
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 50px;
}

.primary-btn {
  background: var(--gradient-primary);
  color: #000000;
  padding: 18px 40px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
}

.join-btn:hover,
.primary-btn:hover {
  transform: scale(1.05);
  box-shadow: 0px 0px 30px rgb(0 213 255 / 40%);
}
.join-btn:active,
.primary-btn:active {
  transform: scale(0.95);
  box-shadow: 0 0 0 transparent;
}

.secondary-btn {
  background: var(--button-bg);
  color: var(--text);
  padding: 18px 40px;
  border: 1px solid var(--border);
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}

.secondary-btn:hover {
  transform: scale(1.05);
  background: var(--button-hover);
  border-color: var(--accent);
}
.secondary-btn:active {
  transform: scale(0.95);
  background: var(--button-active);
  border-color: var(--accent);
}

.description {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.description::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
}

.description-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
  opacity: 0;
  transform: scale(0.85) translateY(80px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stat-item.visible,
.description-content.visible,
.feature-card.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.description-content:nth-child(even) {
  direction: rtl;
}

.description-content:nth-child(even) > * {
  direction: ltr;
}

.description-text {
  padding: 0 20px;
}

.description-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.4;
}

.description-detail {
  font-size: 1.1rem;
  color: var(--subtext);
  line-height: 1.8;
  margin-bottom: 30px;
}

.description-features {
  list-style: none;
  margin-bottom: 35px;
  padding: 0 !important;
}

.description-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--subtext);
  font-size: 1rem;
}

.description-features li i {
  color: var(--accent);
  font-size: 1.1rem;
  padding: 0;
}

.description-visual {
  position: relative;
  width: 100%;
  max-width: 800px;
  background: var(--card-bg);
  border-radius: 30px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: block;
  box-shadow: 0 0 0 transparent;
  transition: box-shadow 0.3s ease;
}

.screenshot-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
}

.screenshot-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 30px;
}

.features {
  padding: 150px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 100px;
}

.landing-section-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-section-subtitle {
  font-size: 1.2rem;
  color: var(--subtext);
  max-width: 500px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 80px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 40px;
  transition: all 0.6s ease;
  transform: scale(0.5) translateY(80px);
}

.feature-card:hover,
.description-visual:hover {
  box-shadow: 0 30px 80px rgba(0, 255, 136, 0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
  color: var(--accent);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--accent);
}

.feature-description {
  color: var(--subtext);
  line-height: 1.6;
  font-size: 1rem;
}

.stats-section {
  padding: 60px 0 120px 0;
}

.stats-grid {
  display: flex;
  justify-content: space-evenly;
  gap: 40px;
  flex-wrap: wrap;
  align-items: stretch;
}

.stat-item {
  background: var(--card-bg);
  border-radius: 30px;
  padding: 50px;
  text-align: center;
  min-width: 200px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: scale(0.5) translateY(80px);
  transition: box-shadow 0.3s ease, opacity 0.5s ease, transform 0.5s ease;
  flex: 1;
}

.stat-item:hover {
  box-shadow: var(--shadow-glow);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.stat-label {
  font-size: 1rem;
  color: var(--subtext);
  font-weight: 500;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
  margin-bottom: 5px;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.logo span {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(180deg, #00ffcb 0%, #0041ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 2px 0 0 -2px;
}

footer {
  background: var(--footer);
  border-top: 1px solid var(--divider-color);
  padding: 48px 0 24px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.footer-links a {
  color: var(--subtext);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 14px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: scale(1);
}

.footer-links a:hover {
  background: var(--button-bg);
  color: var(--accent);
  transform: scale(1.05);
}

.footer-links a:active {
  transform: scale(0.97);
}

.footer-links a i {
  width: 16px;
  font-size: 0.9rem;
}

.brand-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.socials-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.socials {
  display: flex;
  gap: 12px;
  margin: 0;
}

.socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--subtext);
  font-size: 1.2rem;
  background: none;
  border: none;
  padding: 0;
  transition: all 0.2s ease;
  text-decoration: none;
  border-radius: 14px;
}

.socials a:hover {
  color: var(--accent);
  transform: scale(1.1);
  background: var(--button-bg);
}

.socials a:active {
  transform: scale(0.95);
}

.copyright {
  color: var(--subtext);
  font-size: 0.85rem;
  margin-top: 12px;
}

.footer-bottom {
  text-align: center;
  color: var(--subtext);
  font-size: 0.85rem;
  padding-top: 24px;
  border-top: 1px solid var(--divider-color);
}

.footer-bottom strong {
  color: var(--accent);
}

.login-back-btn {
  background: transparent;
  border: solid 1px var(--accent);
  border-radius: 50%;
  color: var(--text);
  padding: 2px 10px 0 10px;
  font-size: 1.8rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.login-back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}
.login-back-btn:active {
  background: rgba(204, 204, 204, 0.1);
  transform: scale(0.9);
}

#info-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.3s ease;
  position: absolute;
  overflow: hidden;
  inset: 0;
}

#info-scroll-helper {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  width: 100%;
  position: relative;
  scroll-behavior: smooth;
}

#login-container {
  width: calc(100% - 10px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.3s ease;
  padding: 0 5px 0px 5px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 100px;
  scroll-behavior: smooth;
}

#info-container.hidden,
#login-container.hidden,
#info-scroll-helper.hidden {
  opacity: 0;
  pointer-events: none;
}

#info-container.hide,
#login-container.hide,
#info-scroll-helper.hide {
  display: none;
}

#feature,
#support,
#about {
  display: flex;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.settings-icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  opacity: 0.8;
}

.settings-header {
  text-align: center;
  margin-bottom: 80px;
}

.settings-header h1 {
  font-size: 4rem;
  font-weight: 700;
  background: var(--subtext);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0;
  letter-spacing: -0.02em;
}

.version-link {
  margin-top: 5px;
  color: var(--subtext);
  cursor: pointer;
  text-decoration: none;
}

.settings-content {
  padding: 0px 50px;
  width: calc(100% - 100px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.section-title {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 24px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title .emoji {
  font-size: 1.5rem;
}

.settings-grid {
  margin-bottom: 60px;
  width: 100%;
}

.setting-card {
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 24px;
  box-shadow: rgb(0 0 0 / 18%) 0px 0px 20px 0px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.setting-row.mobile {
  flex-direction: row;
}

.setting-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.setting-info {
  flex: 1;
}

.setting-info h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 500;
}

.setting-info p {
  font-size: 0.9rem;
  color: var(--subtext);
  line-height: 1.4;
  display: block;
}

.setting-control {
  margin-left: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-switch {
  position: relative;
  width: 60px;
  height: 32px !important;
  background: var(--button-hover) !important;
  border-radius: 16px !important;
  cursor: pointer !important;
  transition: background 0.3s ease !important;
  border: 1px solid var(--text) !important;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  box-shadow: 0px 3px 9px 0px rgb(0 0 0 / 27%) !important;
}

.toggle-switch:hover {
  transform: scale(1) !important;
}
.toggle-switch:active {
  transform: scale(1) !important;
}

.toggle-switch.active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}

.toggle-switch::after {
  content: "\f00d";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: var(--text);
  border-radius: 50%;
  transition: transform 0.3s ease, content 0.3s ease, background 0.3s ease,
    color 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--bg);
}

.toggle-switch::after:hover {
  transform: scale(1.1) !important;
}

.toggle-switch::after:active {
  transform: scale(0.95) !important;
}

.toggle-switch.active::after {
  transform: translateX(28px);
  content: "\f00c";
  box-shadow: none;
  background: white;
  color: var(--scrollbar-thumb);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
}

.link-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: var(--button-bg);
  border-radius: 20px;
  text-decoration: none;
  color: var(--subtext);
  transition: all 0.3s ease;
  font-weight: 500;
  box-shadow: 0px 3px 7px 0px rgb(0 0 0 / 13%);
}

.link-item:hover {
  background: var(--button-hover);
  transform: scale(1.05);
}
.link-item:active {
  background: var(--button-active);
  transform: scale(0.95);
}

.link-item .emoji {
  margin-right: 12px;
  font-size: 1.2rem;
}

#settings-section,
#xp-section,
#create-task-section {
  overflow-y: auto;
  overflow-x: hidden;
  padding-left: 265px;
  width: calc(100% - 265px);
  justify-content: space-evenly;
}

#duration-flex,
#breaks-flex {
  opacity: 1;
  pointer-events: auto;
  display: block;
  width: 100%;
  transition: opacity 0.3s ease;
}
#duration-flex.hidden,
#breaks-flex.hidden {
  opacity: 0;
  pointer-events: none;
}
#duration-flex.hide,
#breaks-flex.hide {
  display: none;
}

.settings-content input {
  padding: 10px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background-color: var(--sidebar-bg);
  color: var(--subtext);
  font-size: 0.9rem;
  height: 17px;
  min-width: 150px;
  transition: all 0.3s ease;
  box-shadow: 0px 3px 7px 0px rgb(0 0 0 / 7%);
}

.settings-content input:focus {
  outline: none;
  border: 2px solid var(--border);
  box-shadow: 0 0 4px var(--text);
}

.settings-content button,
.f-linkies {
  background-color: var(--button-bg);
  color: var(--subtext);
  border: none;
  padding: 0px 20px;
  border-radius: 16px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.4s ease;
  height: 40px;
  box-shadow: 0px 3px 7px 0px rgb(0 0 0 / 7%);
}

.f-linkies {
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-content button:hover,
.f-linkies:hover {
  background-color: var(--button-hover);
  transform: scale(1.05);
}

.settings-content button:active,
.f-linkies:active {
  background-color: var(--button-active);
  transform: scale(0.95);
}

.btn-danger {
  background: var(--cu-red) !important;
  color: #fff !important;
}

.btn-danger:hover {
  background: #ff3742;
}

.btn-danger:active {
  background: #b9262d;
}

#email-change-input {
  color: var(--subtext);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 7px 12px;
  background-color: var(--sidebar-bg);
  box-shadow: 0px 3px 7px 0px rgb(0 0 0 / 7%);
}

.edit-acc {
  padding: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
  transition: transform 0.3s ease !important;
}
.edit-acc:hover {
  transform: scale(1.1) rotateZ(15deg) !important;
}
.edit-acc:active {
  transform: scale(0.95) rotateZ(0) !important;
}

/* New XP-Analytics Screen */

.xp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
  width: 100%;
}

.xp-stat-card {
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 32px;
  box-shadow: rgb(0 0 0 / 18%) 0px 0px 20px 0px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.xp-stat-card:hover {
  transform: scale(1.05);
  box-shadow: rgb(0 0 0 / 25%) 0px 8px 30px 0px;
}

.xp-stat-card h3 {
  font-size: 1.3rem;
  color: var(--subtext);
  margin: 0;
  font-weight: 500;
}

.xp-stat-card .value {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.xp-stat-card .label {
  font-size: 0.9rem;
  color: var(--subtext);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.charts-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  gap: 24px;
  width: 100%;
}

.chart-card {
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 32px;
  box-shadow: rgb(0 0 0 / 18%) 0px 0px 20px 0px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.chart-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
}

.chart-subtitle {
  font-size: 0.9rem;
  color: var(--subtext);
  margin-top: 4px;
}

.chart-info {
  font-size: 0.9rem;
  color: var(--subtext);
  background: var(--button-bg);
  padding: 8px 16px;
  border-radius: 14px;
}

.chart-container {
  height: 300px;
  position: relative;
}

.line-graph {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.line-graph text {
  font-size: 12px;
  fill: var(--subtext);
}

.line-graph circle {
  fill: var(--accent);
  cursor: pointer;
  transition: all 0.3s ease;
}

.line-graph circle:hover {
  fill: var(--cu-green);
  r: 7;
}

#xp-tooltip {
  position: absolute;
  background: var(--button-hover);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 18px;
  font-size: 13px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 100;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
}

.dev-note {
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 20px;
  width: calc(100% - 40px);
  margin-top: 24px;
  margin-bottom: 24px;
  text-align: center;
  box-shadow: rgb(0 0 0 / 18%) 0px 0px 20px 0px;
}

.dev-note p {
  color: var(--subtext);
  font-style: italic;
}

@media (max-width: 1024px) {
  .hero-content {
    padding-top: 120px;
  }

  .description {
    padding: 60px 0;
  }

  .features {
    padding: 80px 0;
  }

  .landing-section-title {
    font-size: 2.2rem;
  }

  .description-title {
    font-size: 1.5rem;
  }

  header {
    width: 95.3%;
  }
}

@media (max-width: 871px) {
  #loading-text {
    font-size: 2rem;
  }

  .xp-section {
    width: 100%;
    gap: 0px;
  }

  .settings-section {
    width: 100%;
    gap: 0px;
  }

  .xp-controls {
    border-radius: 30px 30px 0 0;
    padding-left: 20px;
  }

  .xp-display {
    padding-left: 0px;
  }

  #open-sidebar-btn {
    display: flex;
  }

  .leaderboard-list {
    border-radius: 25px 25px 25px 25px;
  }

  #chat-container {
    width: 100%;
    padding: 0;
  }

  .header-ai {
    font-size: 1.5rem;
    padding: 5px 30px 5px 30px;
    border-radius: 0 0 25px 25px;
    width: calc(100% - 60px);
  }

  .footer-support {
    padding: 7.5px 0 7.5px 0;
    width: 100%;
  }

  .sidebar {
    background-color: var(--sidebar-mobile-bg);
    background-image: radial-gradient(
        circle at 12% 80%,
        rgb(7 255 0 / 7%) 0%,
        transparent 50%
      ),
      radial-gradient(
        circle at 10% 10%,
        rgb(0 59 255 / 13%) 0%,
        transparent 50%
      );
  }

  #timer-blocks-stat {
    width: calc(100% - 140px);
  }

  .cookie-banner {
    width: calc(60% - 30px);
  }

  #settings-section,
  #xp-section,
  #create-task-section {
    width: 100%;
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .login-form {
    position: absolute;
    width: 55%;
    border-radius: 20px;
    height: 55%;
    padding: 20px;
    transition: opacity 0.3s ease, transform 0.4s ease;
    transform: scale(1);
    opacity: 1;
    left: auto;
    padding-bottom: 60px;
    padding-top: 60px;
    z-index: 0;
  }

  .login-form.hidden {
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
    position: absolute;
  }

  .header,
  .welcome-text,
  .footer {
    left: 0;
    width: 100%;
    border-radius: 0;
    font-size: 1rem;
  }

  .welcome-text {
    top: 30%;
    font-size: 0.9rem;
  }

  .welcome-text h1,
  .welcome-text h3 {
    display: none;
  }

  .login-form h1 {
    font-size: 2rem;
  }

  .login-form button {
    font-size: 0.9rem;
    height: 45px;
  }

  .username-input,
  .password-input {
    font-size: 0.9rem;
  }

  .password-flex button {
    right: 4%;
  }

  .login-screen {
    justify-content: center;
    align-items: center;
    padding: 20px;
  }

  .header {
    z-index: 10;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    font-size: 1rem;
    border-radius: 0;
  }

  .header h1 {
    margin-left: 5px;
    font-size: 2.5rem;
  }

  .footer {
    z-index: 1;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    font-size: 0.9rem;
    border-radius: 20px 20px 0 0;
    padding-bottom: 30px;
  }

  .footer p {
    margin-left: 0;
    font-size: 0.9rem;
  }

  .xp-controls {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .xp-actions {
    flex: 1 1 100%;
  }

  .xp-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
  }

  .xp-flexbox {
    gap: 15px;
    padding: 15px;
  }

  #xp {
    font-size: 3rem;
  }

  .xp-display {
    top: 40px !important;
  }

  .xp-display h1 {
    font-size: 3rem;
  }

  .xp-display button {
    width: 50px;
    height: 50px;
  }

  #leaderboard-section,
  #xp-section,
  #settings-section,
  #create-task-section,
  #xp-section {
    gap: 0px !important;
  }

  .dialog {
    font-size: 1.15rem;
    width: calc(70% - 50px);
  }

  #dialog-buttons {
    height: 40px;
  }

  #dialog-sub-message {
    font-size: 0.75rem;
  }

  .cookie-banner p {
    font-size: 0.85rem;
  }

  .cookie-head-p {
    font-size: 1.1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  header {
    width: 94%;
  }

  .footer-links {
    align-items: center;
  }

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

  .footer-links a {
    justify-content: center;
    width: 100%;
    max-width: 200px;
  }

  .socials {
    justify-content: center;
  }

  .description::before {
    opacity: 0 !important;
  }

  .brand-section {
    align-items: center;
  }

  .description-content {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .description-content:nth-child(even) {
    direction: ltr;
  }

  .description-visual {
    height: 350px;
  }

  .description-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 700px) {
  .settings-section {
    align-items: flex-start;
  }

  .popup {
    width: calc(100% - 80px);
  }

  .leaderboard-list label {
    text-align: left;
    font-size: 1.25rem;
  }

  .welcome {
    font-size: 2.5rem;
  }

  .quote-home,
  .quote-author {
    font-size: 1rem;
  }

  #create-task-list {
    height: 85%;
  }

  #create-task-start {
    display: none;
  }

  .tasks-footer button {
    padding: 0;
    font-size: small;
    width: 120px;
  }

  #create-task-start {
    width: 120px !important;
  }

  #feature,
  #support {
    display: none;
  }

  .complete-task,
  .edit-task,
  .delete-task,
  .notes-task {
    display: none !important;
  }

  .more-options-btn {
    display: flex !important;
  }

  .setting-info p {
    display: none;
  }

  .setting-info h3 {
    margin: 0;
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
  }

  #hamburger {
    display: flex;
  }

  #ham-menu.show {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
  }

  .nav-links.ham {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    width: 100%;
    height: 100%;
    margin: 0;
    box-sizing: border-box;
    padding: 15px;
  }

  .join-btn {
    padding: 8px 16px;
    font-size: 12px;
  }
}

@media (max-width: 600px) {
  .message-box h1 {
    font-size: 1.5rem;
  }

  .message-box .task-info,
  .stats p {
    font-size: 1rem;
  }

  .cookie-banner {
    width: calc(100% - 80px);
  }

  .section-title {
    font-size: 1.2rem;
  }

  .section-title .emoji {
    font-size: 1.25rem;
  }

  .settings-header h1 {
    font-size: 3rem;
  }

  .settings-header {
    margin-bottom: 40px;
  }

  .version-link {
    font-size: 0.85rem;
  }

  .hero-content {
    padding-top: 40px;
    max-width: 98vw;
  }

  .hero-title {
    font-size: 3rem;
    margin-bottom: 18px;
  }

  .hero-badge {
    font-size: 12px;
    margin-bottom: 18px;
    padding: 6px 12px;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .hero-buttons {
    gap: 10px;
    margin-top: 30px;
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn {
    padding: 12px 18px;
    font-size: 13px;
    max-width: 90%;
  }

  .description-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .description-visual {
    height: 220px;
    padding: 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 30px;
  }

  .feature-card {
    padding: 18px;
  }

  .feature-icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }

  .feature-title {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .feature-description {
    font-size: 0.95rem;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .landing-section-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .landing-section-subtitle {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .login-form {
    width: 85%;
    padding: 15px;
    font-size: 0.9rem;
    height: 425px;
  }

  .login-form h1 {
    font-size: 1.75rem;
  }

  .header,
  .welcome-text,
  .footer {
    font-size: 0.8rem;
  }

  .header h1 {
    margin: 0;
  }

  .login-screen {
    justify-content: center;
    align-items: center;
    padding: 10px;
  }

  .header {
    height: 50px;
    font-size: 0.9rem;
  }

  .popup {
    font-size: 0.8rem;
    border-radius: 25px;
  }

  .welcome {
    font-size: 2rem;
  }

  .quote-home,
  .quote-author {
    font-size: 0.8rem;
  }

  .your-tasks {
    font-size: 1.25rem;
  }

  .xp-grid {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 8px;
  }

  .xp-button {
    font-size: 0.8rem;
    padding: 6px;
  }

  .xp-actions {
    padding: 15px 5px 8px 5px;
  }

  #xp {
    font-size: 3rem;
  }

  .xp-display h1 {
    font-size: 2.5rem;
  }

  .home-name-flex {
    width: 80%;
  }

  .xp-flexbox {
    gap: 10px;
    padding: 0;
  }

  .xp-controls {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px;
    max-height: 77%;
    min-height: 64%;
  }

  .tasks-header {
    width: 100%;
    padding: 0 15px 0 15px;
  }

  .task-name {
    font-size: 1rem;
  }

  .task-duration,
  .task-type {
    font-size: 0.75rem;
  }

  .task-pos {
    font-size: 1rem;
    padding: 1px 7px;
  }

  .task-list-item {
    padding: 5px;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .task-actions-flex {
    gap: 0px;
  }

  .task-footer button {
    font-size: 0.75rem;
    width: 120px;
  }

  .dialog {
    width: calc(100% - 50px);
  }

  .footer p {
    font-size: 0.7rem;
  }

  .cookie-banner button {
    font-size: 0.9rem;
    padding: 8px 10px;
  }

  .footer-chatbot {
    font-size: 0.55rem;
  }

  .bubble {
    margin: 5px 0;
    padding: 0px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
  }

  .bubble.user {
    max-width: 70%;
  }

  #userInput {
    line-height: 1.2em;
    height: 45px;
  }

  #chat-input-area {
    min-height: 40px;
    width: calc(100% - 130px);
  }

  #reset-chat-button {
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  .header-ai {
    padding: 10px 25px 10px 25px;
    width: calc(100% - 50px);
    font-size: 1.25rem;
  }

  #chat-log {
    width: calc(100% - 40px);
    margin-left: 0;
  }

  header {
    width: 90.5%;
  }

  footer {
    padding: 32px 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .brand-section {
    order: -1;
    align-items: center;
    text-align: center;
  }

  .copyright {
    text-align: center;
  }

  .footer-section h4 {
    text-align: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-links a {
    justify-content: center;
    width: 100%;
    max-width: 220px;
  }

  .socials {
    justify-content: center;
  }

  .drag-placeholder {
    padding: 15px;
  }

  #timer-blocks-stat {
    top: 30px;
    width: calc(100% - 70px);
  }

  #close-popup-button {
    top: 8.5px;
    right: 8.5px;
  }

  .select-items div,
  .select-selected {
    padding: 4px 10px;
  }

  .settings-content {
    padding: 0px 20px;
    width: calc(100% - 40px);
  }

  .setting-card {
    padding: 12px;
    width: calc(0100% - 24px);
  }

  #email-change-input {
    font-size: 0.75rem;
    padding: 7px;
  }

  .setting-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .setting-info h3 {
    margin-bottom: 10px;
  }

  .setting-row.mobile .setting-info h3 {
    margin: 0;
  }

  .setting-control {
    margin: 0;
  }

  .settings-content input {
    font-size: 0.7rem;
    height: 17px;
    width: 140px;
    padding: 7px;
  }

  .settings-content button,
  .f-linkies {
    padding: 0px 10px;
    font-size: revert;
    height: 35px;
  }

  .setting-row.mobile {
    flex-direction: row;
  }

  .link-item {
    font-size: 0.8rem;
    padding: 8px 10px;
  }

  .link-item.emoji {
    font-size: inherit;
  }

  .settings-header h1 {
    font-size: 2.5rem;
  }

  .welcome-message {
    font-size: 20px;
  }

  .welcome-subtitle {
    font-size: 14px;
  }

  .suggestion-card {
    padding: 10px;
  }

  .chart-info {
    padding: 4px 8px;
    font-size: 0.7rem;
  }

  .chart-header {
    margin-bottom: 12px;
  }

  .chart-card {
    padding: 20px;
  }

  .chart-title {
    font-size: 1rem;
  }

  .chart-subtitle {
    font-size: 0.7rem;
  }
}

@media (max-width: 380px) {
  #about {
    display: none;
  }
}

@media (max-width: 350px) {
  #info-scroll-helper {
    font-size: 13px;
  }

  header {
    width: 87%;
  }

  .logo img {
    width: 30px;
    height: 30px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-badge {
    font-size: 10px;
    padding: 3px 6px;
  }

  .primary-btn,
  .secondary-btn {
    padding: 8px 10px;
    font-size: 10px;
  }

  .description-title {
    font-size: 1rem;
  }

  .feature-title {
    font-size: 0.9rem;
  }

  .feature-description {
    font-size: 0.85rem;
  }

  .cookie-banner button {
    font-size: 0.69rem;
  }
}

@media (max-width: 320px) {
  .task-duration,
  .task-type {
    font-size: 0.45rem;
  }

  .task-name {
    font-size: 0.85rem;
  }

  .task-pos {
    font-size: 0.85rem;
    padding: 0px 5px;
  }

  .your-tasks {
    font-size: 1rem;
  }

  #created-tasks {
    font-size: 0.8rem;
    padding: 2px 3px;
    margin: 0;
  }

  .task-values-flex {
    gap: 2px;
  }

  .v-divider {
    height: 8px;
  }

  .footer-chatbot {
    font-size: 0.45rem;
  }

  .chart-subtitle {
    display: none;
  }
}

.flappy-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.chatapp-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 9999;
}

#board {
  background-color: green;
  border-radius: 20px;
  border: 2px solid black;
}

#start-text {
  position: absolute;
  margin: 200px auto 0 auto;
  color: rgb(23 0 207);
  animation: interpolate 1.5s infinite linear;
}

@keyframes interpolate {
  0%,
  100% {
    transform: translateY(0);
  }

  25% {
    transform: translateY(5px);
  }

  75% {
    transform: translateY(-5px);
  }
}

#score {
  position: absolute;
  margin: 0 auto 500px auto;
  color: white;
  font-size: 4rem;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#game-over-screen {
  position: absolute;
  width: 300px;
  height: 200px;
  margin: 0 auto 0 auto;
  background-color: #eef8b6;
  border: 4px solid #d8e1a2;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-direction: column;
  z-index: 1;
  font-size: 0.9rem;
  color: #888a62;
}

#retry-button,
#back-button {
  background-color: #f7f3b2;
  border-radius: 8px;
  border: 1px solid #929770;
  width: 60px;
  height: 30px;
  font-size: 1rem;
  color: #736d4a;
  cursor: pointer;
  --webkit-tap-highlight: transparent;
}

.game-over-text {
  font-size: 2rem;
  font-weight: bold;
  color: #a6ac65;
}
