:root {
  /* Colors - "Acid" Palette */
  --color-acid-green: #CCFF00;
  --color-hot-pink: #FF0099;
  --color-electric-blue: #0040FF;
  /* Changed to Bright "International" Blue */
  --color-warning-yellow: #FFE600;
  --color-white: #FFFFFF;
  --color-beige: #F3F0E7;
  --color-black: #000000;

  /* ... */



  /* Theme mappings */
  --body-bg: var(--color-white);
  /* Stark White */
  --bg-normal: var(--color-white);
  --bg-submit: var(--color-acid-green);
  --bg-completed: #E0E0E0;
  /* Light Gray for better readability */
  --bg-discard: var(--color-hot-pink);
  --bg-deleted: #ddd;
  --bg-edit: var(--color-warning-yellow);

  --normal: var(--color-acid-green);
  --completed: var(--color-electric-blue);
  --deleted: var(--color-hot-pink);
  --black: var(--color-black);

  /* Borders & Shadows - "Raw & Loud" */
  --border-width: 4px;
  /* Thick borders */
  --border-radius: 0px;
  /* Sharp edges */
  --border: var(--border-width) solid var(--black);
  --box-shadow: 8px 8px 0px var(--black);
  /* Hard depth */
  --box-shadow-hover: 12px 12px 0px var(--black);
  /* Snap up */
  --box-shadow-active: 0px 0px 0px var(--black);
  /* Slam flat */
  --box-shadow-reverse: -8px 8px 0px var(--black);

  /* Spacing */
  --padding: 20px 24px;
  --btn-padding: 16px 24px;
  --btn-small-padding: 12px 20px;

  /* Typography - "Monumental & Monospace" */
  --font-heading: 'Archivo Black',
    'Syne',
    sans-serif;
  --font-body: 'JetBrains Mono',
    'Space Mono',
    monospace;
  --font: var(--font-body);
  /* Default to monospace for UI/Data */

  --font-color: var(--black);
  --font-size-base: 16px;
  --placeholder: rgba(0, 0, 0, 0.5);
  --font-color-complete: rgba(0, 0, 0, 0.5);
}

@media only screen and (max-width: 768px) {
  :root {
    --font-size-base: 14px;
    --padding: 16px 20px;
    --btn-padding: 12px 18px;
    --btn-small-padding: 10px 15px;
    --box-shadow: 4px 4px 0px var(--black);
    /* Slightly smaller shadow on mobile */
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* Instant feedback - no smooth ease-in-out */
  transition: all 0.15s linear;
}

html {
  scrollbar-width: none;
  -ms-overflow-style: none;
  font-family: var(--font);
  background: var(--body-bg);
  font-size: var(--font-size-base);
  color: var(--font-color);
  box-sizing: border-box;
}

html ::-webkit-scrollbar {
  display: none;
}

@media only screen and (max-width: 768px) {
  html {
    font-family: "PingFang SC", miui, system-ui, -apple-system, BlinkMacSystemFont, Helvetica Neue, Helvetica, sans-serif;
  }
}

::-webkit-input-placeholder {
  color: var(--placeholder);
  font-weight: 400;
}

/* Firefox 4-18 */
:-moz-placeholder {
  color: var(--placeholder);
  font-weight: 400;
}

/* Firefox 19-50 */
::-moz-placeholder {
  color: var(--placeholder);
  font-weight: 400;
}

/* - Internet Explorer 10
   - Internet Explorer Mobile 10-11 */
:-ms-input-placeholder {
  color: var(--placeholder) !important;
  font-weight: 400 !important;
}

/* Edge (also supports ::-webkit-input-placeholder) */
::-ms-input-placeholder {
  color: var(--placeholder);
  font-weight: 400;
}

/* CSS Working Draft */
::-webkit-input-placeholder {
  color: var(--placeholder);
  font-weight: 400;
}

::-moz-placeholder {
  color: var(--placeholder);
  font-weight: 400;
}

:-ms-input-placeholder {
  color: var(--placeholder);
  font-weight: 400;
}

::-ms-input-placeholder {
  color: var(--placeholder);
  font-weight: 400;
}

::placeholder {
  color: var(--placeholder);
  font-weight: 400;
}

button {
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
}

input {
  border-radius: var(--border-radius);
  border: var(--border);
  padding: var(--btn-small-padding);
  display: inline-block;
  cursor: pointer;
  background: #fff;
}

button:focus,
input:focus {
  outline: none;
}

button,
a,
input {
  color: var(--font-color);
}

ul,
li {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 36px;
  text-align: center;
}

.btn {
  border: var(--border);
  border-radius: var(--border-radius);
  padding: var(--btn-padding);
  text-align: center;
  display: block;
  position: relative;
}

.btn-small {
  padding: var(--btn-small-padding);
  font-size: 14px;
  border: 2px solid var(--black);
}

.container {
  max-width: 700px;
  margin: 0 auto;
}

@media only screen and (max-width: 992px) {
  .container {
    max-width: 600px;
  }
}

@media only screen and (max-width: 768px) {
  .container {
    max-width: 95%;
  }
}

.todo-app {
  margin: 0 auto;
}

.header {
  margin: 0 auto 24px;
}

@media only screen and (max-width: 768px) {
  .header {
    margin: 0 auto 16px;
  }
}

.main {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  position: relative;
  flex-direction: column;
  gap: 23px;
}

.bg-pattern {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: -1;
  width: 100%;
  height: 100vh;
  background-color: #FFF7DC;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cdefs%3E%3Cpattern id='p' width='100' height='100' patternUnits='userSpaceOnUse' patternTransform='scale(0.25)'%3E%3Ccircle data-color='outline' fill='none' stroke='%23828D99' stroke-width='25' cx='50' cy='50' r='.5'%3E%3C/circle%3E%3C/pattern%3E%3C/defs%3E%3Crect fill='url(%23p)' width='100%25' height='100%25'%3E%3C/rect%3E%3C/svg%3E");
  background-size: cover;
  background-position: center center;
  background-repeat: repeat;
  opacity: 0.08;
}

.todo-wrapper {
  width: 100%;
  margin: 40px auto;
}

@media only screen and (max-width: 768px) {
  .todo-wrapper {
    margin: 48px auto;
  }
}

.todo-list-box {
  position: relative;
  background: #fff;
  -webkit-box-shadow: var(--box-shadow);
  box-shadow: var(--box-shadow);
  border: var(--border);
  border-radius: var(--border-radius);
  margin: 0;
  padding-top: 0;
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
}

.todo-list {
  padding: 32px 36px 36px;
  min-height: 381px;
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
}

@media only screen and (max-width: 768px) {
  .todo-list {
    padding: 20px 16px 24px;
    min-height: 280px;
    min-height: calc(100vh - 272px);
  }
}

@media only screen and (max-width: 350px) {
  .todo-list {
    min-height: 320px;
  }
}


.title {
  position: relative;
  font-size: 0;
  /* Hide any text nodes */
  margin: 0 auto 12px;
  width: 320px;
  /* Big Width */
  text-align: center;
  user-select: none;
}

.title img {
  display: inline-block;
  width: auto;
  height: 80px;
  /* Big Height */
  padding: 0;
  filter: none;
}

/* Hide the old "pendulum" animation if it conflicts, or re-style it to be industrial.
   For now, let's keep the html but hide the old soft styles or make them raw.
   Actually, let's make the pendulum "chains" thick black lines.
*/
.pendulums {
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 5;
}

.pendulum .bar {
  height: 6px;
  /* Thicker bar */
  background: var(--black);
  width: 140px;
  /* Wider bar */
  left: 50%;
  transform: translateX(-50%);
}

.pendulum .string {
  width: 6px;
  /* Thicker string */
  background: var(--black);
}

.pendulum .weight {
  width: 32px;
  height: 32px;
  border-radius: 0;
  /* Square weight */
  background: var(--color-hot-pink);
  border: 3px solid var(--black);
}

.pendulum.shadow .string {
  display: none;
  /* No soft shadows */
}

.pendulum.shadow .weight {
  background: rgba(0, 0, 0, 0.2);
  border: none;
  display: none;
  /* Remove shadow pendulum */
}

.ani-vector {
  position: absolute;
  left: -60px;
  top: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media only screen and (max-width: 768px) {
  .ani-vector {
    top: 24px;
  }
}

.ani-vector span {
  transform: rotateZ(45deg);
  margin: 0 7px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--black);
  background-color: var(--bg-submit);
  display: inline-block;
  border-radius: 1px;
  animation: zooming 8s ease-in-out infinite;
}

.ani-vector span:nth-child(2) {
  animation-delay: 2s;
}

.todo-list li {
  position: relative;
  border: var(--border);
  border-radius: 0;
  /* Sticker shape */
  background: var(--bg-normal);
  box-shadow: var(--box-shadow);
  width: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 0;
  padding: 0;
  /* content does padding */
  transition: transform 0.15s linear, box-shadow 0.15s linear;
}

.todo-list li:hover {
  transform: rotate(-1deg) translate(-4px, -4px);
  box-shadow: var(--box-shadow-hover);
  z-index: 10;
}

.todo-list li:active {
  transform: translate(0, 0);
  box-shadow: var(--box-shadow-active);
}

/* Drag css */
/* Drag css - repurposed for stiff animation */
.drag-enter-active {
  opacity: 0;
  transition: opacity 0.1s linear;
}

.drag-enter-to {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.15s linear;
}

.drag-leave {
  opacity: 0;
  transform: translateY(18px);
}

.drag-leave-active {
  position: absolute;
  transition: all 0.15s linear;
}

/* Glitch Animation */
@keyframes glitch {
  0% {
    transform: translate(0)
  }

  20% {
    transform: translate(-2px, 2px)
  }

  40% {
    transform: translate(-2px, -2px)
  }

  60% {
    transform: translate(2px, 2px)
  }

  80% {
    transform: translate(2px, -2px)
  }

  100% {
    transform: translate(0)
  }
}

.title:hover {
  animation: glitch 0.2s cubic-bezier(.25, .46, .45, .94) both infinite;
  color: var(--color-hot-pink);
}

.title:hover::before {
  content: "TODO";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  color: var(--color-acid-green);
  z-index: -1;
  transform: translate(4px, 4px);
}

.drag-move {
  -webkit-transition: all 0.65s ease;
  transition: all 0.65s ease;
}

/* End drag css */
.todo-list li:last-child {
  margin-bottom: 0;
}

.todo-list li:hover {
  -webkit-box-shadow: none;
  box-shadow: none;
}

.bar-message {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-bottom: var(--border);
  width: 100%;
  height: 44px;
  line-height: 44px;
  overflow: hidden;
  user-select: none;
  background: var(--color-white);
  padding: 0;
  /* Let children handle padding */
}

.bar-message>div {
  /* Ensure the slogan container takes full width */
  flex: 1;
  height: 100%;
}

.bar-message:hover {
  background: var(--bg-normal);
}

@media only screen and (max-width: 768px) {
  .bar-message .btn-allFinish {
    display: none;
  }

  .bar-message .bar-message-text {
    width: 100%;
    text-align: center;
  }
}

.bar-message>div {
  width: 100%;
  height: 100%;
}

.bar-bottom {
  border: 0;
  border-top: var(--border);
}

.add-todo {
  border: var(--border);
}

.add-content-wrapper {
  position: relative;
  user-select: none;
}

@media only screen and (max-width: 768px) {
  .add-content-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 95%;
    margin: 0 auto;
    z-index: 99;
    padding: 40px 0px 20px;
    background-image: -ms-linear-gradient(90deg, rgb(234, 246, 252) 0%, rgba(234, 246, 252, 0) 100%);
  }
}

.tips {
  margin-top: 8px;
  padding-left: 12px;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.empty-tips {
  text-align: left;
  max-width: 480px;
  width: 90%;
  margin: 20px auto;
  position: absolute;
  top: 15%;
  left: 8%;
  font-size: 16px;
  color: #606060;
  line-height: 1.6;
  letter-spacing: 0.24px;
}

@media only screen and (max-width: 768px) {
  .empty-tips {
    margin-top: 0;
    left: 6%;
    font-size: 17px;
  }
}

@media only screen and (max-width: 350px) {
  .empty-tips {
    left: 6%;
    font-size: 14px;
  }
}

.empty-tips li {
  margin: 2px 0 8px;
}

.edit-todo-wrapper {
  position: relative;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: 100%;
}

.edit-todo {
  padding: 20px 20px 20px 80px;
  width: 100%;
  position: relative;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  display: block;
  line-height: 1.4;
  overflow-wrap: break-word;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  min-height: 80px;
  -webkit-transition: all 0.25s;
  transition: all 0.25s;
  border: 0;
  background: transparent;
}

.submit-btn {
  position: absolute;
  right: 0;
  /* Align to the edge of the border roughly, but better to be inside or distinct */
  top: 0;
  height: 100%;
  width: 100px;
  border: none;
  border-left: var(--border);
  border-radius: 0;
  background: var(--color-acid-green);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 20px;
  color: var(--black);
  cursor: pointer;
  z-index: 2;
  transition: all 0.1s linear;
}

.submit-btn:hover {
  background: var(--black);
  color: var(--color-acid-green);
}

.submit-btn:active {
  background: var(--color-hot-pink);
  color: var(--white);
}

/* Remove old media queries for now or adjust them later */
@media only screen and (max-width: 768px) {
  .submit-btn {
    /* Keep it inline on mobile for this design */
    position: absolute;
    margin: 0;
  }
}

.add-content {
  width: 100%;
  padding: 0;
  font-size: 20px;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: text;
  border: var(--border);
  border-radius: 0;
  height: 70px;
  line-height: 70px;
  text-indent: 16px;
  padding-right: 120px;
  box-shadow: var(--box-shadow);
  background: var(--color-white);
  caret-color: var(--black);
  /* Normal caret color, let's try to simulate block if possible, otherwise stick to black */
}

/* Attempt to simulate block cursor or just distinct style */
.add-content:focus {
  outline: none;
  background: var(--color-white);
  box-shadow: var(--box-shadow-hover);
  transform: translate(-4px, -4px);
}

.todo-wrapper {
  width: 100%;
  margin: 40px auto;
}

.todo-content {
  padding: 20px 20px 20px 80px;
  /* Space for the giant checkbox */
  background: transparent;
  border-radius: 0;
  width: 100%;
  min-height: 80px;
  display: flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.todo-content.completed {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--color-black);
  color: var(--font-color-complete);
  opacity: 0.8;
  background-color: var(--bg-completed);
}

.btn-finish,
.btn-unfinish {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 60px;
  height: 100%;
  background: var(--color-white);
  border-right: var(--border);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s linear;
}

.btn-finish:hover {
  background: var(--color-acid-green);
  transform: none;
  box-shadow: none;
}

.btn-finish::after {
  content: " ";
  /* Empty box */
  width: 20px;
  height: 20px;
  border: 3px solid var(--black);
}

.btn-unfinish {
  background: var(--color-acid-green);
}

.btn-unfinish img {
  left: 0;
  top: 0;
  width: 30px;
}

.btn-unfinish:hover {
  background: var(--color-hot-pink);
  /* destructive/undo feel */
  transform: none;
  box-shadow: none;
}

.todo-btn {
  position: absolute;
  /* Reset default btn styles */
  background: transparent;
  border: none;
}

.todo-btn:hover {
  -webkit-box-shadow: var(--box-shadow);
  box-shadow: var(--box-shadow);
  -webkit-transform: translate(-2px, -2px);
  -ms-transform: translate(-2px, -2px);
  transform: translate(-2px, -2px);
}

.btn-edit-submit {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  background: var(--bg-submit);
  right: 12px;
  top: 16px;
  height: 30px;
  width: 30px;
  border-radius: var(--border-radius);
  font-size: 13px;
}

.btn-delete {
  background: #fff;
  right: 12px;
  top: 16px;
  height: 30px;
  width: 30px;
  border-radius: var(--border-radius);
  font-size: 13px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.btn-delete:hover {
  background: var(--deleted);
}

.btn-delete img {
  display: block;
  width: 16px;
  height: 16px;
}

.btn-finish {
  left: 14px;
  top: 16px;
  width: 30px;
  height: 30px;
  border-radius: 20px;
}

.btn-finish:hover {
  background: var(--completed);
  -webkit-box-shadow: var(--box-shadow-reverse);
  box-shadow: var(--box-shadow-reverse);
  -webkit-transform: translate(2px, -2px);
  -ms-transform: translate(2px, -2px);
  transform: translate(2px, -2px);
}

.btn-unfinish img {
  position: relative;
  left: 4px;
  top: 2px;
  width: 26px;
  height: auto;
}

.btn-unfinish {
  left: 14px;
  top: 16px;
  width: 30px;
  height: 30px;
  border-radius: 20px;
  background: var(--completed);
}

.btn-unfinish:hover {
  -webkit-box-shadow: var(--box-shadow-reverse);
  box-shadow: var(--box-shadow-reverse);
  -webkit-transform: translate(2px, -2px);
  -ms-transform: translate(2px, -2px);
  transform: translate(2px, -2px);
}

.btn-restore {
  background: #fff;
  right: 12px;
  top: 16px;
  height: 30px;
  width: 30px;
  border-radius: var(--border-radius);
  border: var(--border);
  font-size: 13px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.btn-delete,
.btn-restore {
  right: 0;
  top: 0;
  /* Reset top to cover full height */
  height: 100%;
  width: 60px;
  /* Wider hit area */
  border-radius: 0;
  border: none;
  border-left: var(--border);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-hot-pink);
  /* Default to destructive */
  opacity: 0;
  /* Hide by default, show on hover of parent */
  transition: opacity 0.1s linear;
}

.todo-list li:hover .btn-delete,
.todo-list li:hover .btn-restore {
  opacity: 1;
}

.btn-delete:hover,
.btn-restore:hover {
  background: var(--black);
  cursor: pointer;
}

.btn-restore {
  background: var(--color-electric-blue);
}

.btn-delete img,
.btn-restore img {
  display: block;
  width: 24px;
  height: 24px;
  filter: invert(1);
  /* White icons */
}

/* Remove stray radius from other elements */
.btn-small {
  padding: var(--btn-small-padding);
  font-size: 14px;
  border: var(--border);
  border-radius: 0;
  background: var(--color-white);
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--black);
  transition: all 0.1s linear;
}

.btn-small:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--black);
  background: var(--color-acid-green);
}

.btn-small:active {
  transform: translate(0, 0);
  box-shadow: 0 0 0 var(--black);
}

.bar-message {
  border-bottom: var(--border);
  border-top: var(--border);
  margin-top: -4px;
  /* Collapse double borders */
  background: var(--color-white);
  font-family: var(--font-body);
}

.bar-message .btn-label {
  border-radius: 0;
  border: none;
  border-right: var(--border);
  background: var(--color-acid-green);
  font-weight: 700;
  text-transform: uppercase;
}

.bar-message .btn-label:hover {
  background: var(--black);
  color: var(--color-acid-green);
}

.footer {
  padding-top: 40px;
}

.slogan-input {
  width: 100%;
  border: none;
  padding: 0 12px;
  background: var(--bg-normal);
  border-radius: 0;
  display: inline-block;
  position: relative;
  line-height: 44px;
  height: 44px;
  cursor: text;
}

.slogan-btn {
  position: absolute;
  right: 16px;
  top: 6px;
}

/**
 * Brand badge
 */
.nav {
  position: fixed;
  right: 36px;
  top: 12px;
  z-index: 9999;
  padding: 0;
  margin: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
}

@media (max-width: 767px) {
  .nav {
    right: 16px;
    top: 8px;
  }
}

.brand-card {
  background: #fff;
  border: var(--border);
  -webkit-box-shadow: var(--box-shadow);
  box-shadow: var(--box-shadow);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 180px;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.brand-note {
  font-size: 13px;
  line-height: 1.4;
  color: #606060;
}

.side-bar {
  position: absolute;
  left: calc(100% + 28px);
  top: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  border: var(--border);
  background: #fff;
  border-radius: var(--border-radius);
  -webkit-box-shadow: var(--box-shadow);
  box-shadow: var(--box-shadow);
  text-align: center;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  overflow: hidden;
  z-index: 999;
  user-select: none;
}

@media only screen and (max-width: 768px) {
  .side-bar {
    position: fixed !important;
    top: unset;
    bottom: 108px;
    left: unset;
    right: -2px;
    -webkit-box-shadow: none;
    box-shadow: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
}

.action-download:hover,
.action-download.selected {
  background: #f8d966;
}

.action-import:hover,
.action-import.selected {
  background: #f8d966;
}

@media only screen and (max-width: 768px) {
  .todo-list {
    min-height: 480px;
  }
}

.side-bar:hover {
  -webkit-box-shadow: unset !important;
  box-shadow: unset !important;
}

.side-shortcut {
  display: block;
  width: 100%;
}

.shortcut-switch {
  overflow: hidden;
  cursor: pointer;
  width: 100%;
}

@media only screen and (max-width: 768px) {
  .shortcut-switch {
    font-size: 14px;
  }

  .shortcut-switch .shortcut-name {
    display: none !important;
  }
}

.shortcut-switch span {
  padding: 10px 14px;
  display: block;
}

.shortcut-title {
  background: var(--completed);
  text-align: center;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  border-bottom: var(--border);
  width: 100%;
  font-weight: bold;
  user-select: none;
}

span.shortcut-name {
  display: none;
}

.todo-footer-box {
  position: relative;
  height: 100%;
}

@media only screen and (max-width: 768px) {
  .fold {
    border-radius: 0px;
    -webkit-box-shadow: none;
    box-shadow: none;
    overflow: hidden;
    padding: 0;
  }

  .fold .shortcut-switch span {
    border: 0;
    padding: 12px 16px;
  }
}

.fold~.todo-footer-box {
  display: none;
}

.fold .shortcut-title {
  background: var(--deleted);
}

.fold span.shortcut-name {
  display: block;
  -webkit-writing-mode: vertical-lr;
  -ms-writing-mode: tb-lr;
  writing-mode: vertical-lr;
}

.todo-func-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  font-size: 14px;
  padding: 0;
}

.bar-message-text {
  display: inline-block;
  text-align: left;
  font-weight: 700;
  padding: 0 24px;
  /* Increased padding */
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  line-height: 44px;
  width: 100%;
  cursor: pointer;
  text-transform: uppercase;
  color: var(--black);
}

.bar-message-text:hover {
  background: var(--color-warning-yellow);
}

/* Ensure bar-bottom text is also padded */
.bar-bottom .bar-message-text {
  text-align: center;
  /* Center the 'items remaining' text */
}

.todo-func-list li {
  cursor: pointer;
  margin: 0 auto;
  -webkit-transition: all 0.25s;
  transition: all 0.25s;
  width: 100%;
}

@media only screen and (max-width: 768px) {
  .todo-func-list li {
    margin: 0;
    display: inline-block;
  }
}

.todo-func-list li input {
  -webkit-transition: all 0.25s;
  transition: all 0.25s;
  width: 100%;
  border-radius: 0;
  border: 0;
  -webkit-box-shadow: unset;
  box-shadow: unset;
  border-top: 1px solid var(--black);
  -webkit-transform: unset !important;
  -ms-transform: unset !important;
  transform: unset !important;
}

.todo-func-list.filter li:first-child input {
  border: 0;
}

.todo-func-list li:first-child {
  min-width: 60px;
  font-weight: 400;
  border: 0;
}

@media only screen and (max-width: 768px) {
  .todo-func-list li:first-child {
    display: block;
  }
}

.todo-func-list li:last-child {
  border: 0;
  margin-right: 0;
}

.filter {
  width: 100%;
}

.completed {
  background: var(--bg-completed);
  color: var(--font-color-complete);
  text-decoration: line-through;
}

.deleted {
  background: var(--bg-deleted);
}

.empty {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation-name: headShake;
  animation-name: headShake;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
}

.selected {
  -webkit-box-shadow: var(--box-shadow);
  box-shadow: var(--box-shadow);
  -webkit-transform: translate(-2px, -2px);
  -ms-transform: translate(-2px, -2px);
  transform: translate(-2px, -2px);
}

.action-showAll:hover,
.action-showAll.selected {
  background: var(--bg-submit);
}

.action-progress:hover,
.action-progress.selected {
  background: var(--normal);
}

.action-completed:hover,
.action-completed.selected,
.completed-all:hover {
  background: var(--completed);
}

.action-progress:hover,
.action-progress.selected {
  background: var(--normal);
}

.action-deleted:hover,
.action-deleted.selected,
.completed-clear:hover,
.clear-all:hover {
  background: var(--deleted);
}

#panda {
  position: absolute;
  width: 200px;
  height: 200px;
  right: -72px;
  bottom: -2px;
}

.pendulums {
  position: absolute;
  width: 50px;
  height: 72px;
  right: -56px;
  bottom: -2px;
  -webkit-perspective: 640px;
  perspective: 640px;
}

.pendulum {
  position: absolute;
  width: 50px;
  height: 70px;
  right: 44%;
  bottom: 0;
  left: 50%;
  -webkit-transform: translateZ(-300px) translateX(-50%);
  transform: translateZ(-300px) translateX(-50%);
}

.pendulum:after {
  content: "";
  width: 8px;
  height: 8px;
  background-color: var(--bg-submit);
  position: absolute;
  top: 2px;
  left: 0;
  right: 0;
  margin: 0 auto;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
  border: 3px solid var(--black);
}

.pendulum.shadow {
  display: none;
  top: 263%;
  left: -65%;
  bottom: 0;
  -webkit-transform-origin: 50% 0;
  -ms-transform-origin: 50% 0;
  transform-origin: 50% 0;
  -webkit-transform: translateX(-50%) scaleY(-1) scaleZ(2) rotateY(-30deg) rotateX(-75deg) translateZ(300px);
  transform: translateX(-50%) scaleY(-1) scaleZ(2) rotateY(-30deg) rotateX(-75deg) translateZ(300px);
}

.pendulum .bar {
  position: absolute;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  top: -5px;
  display: block;
  width: 26px;
  height: 30px;
  background: #d0f4f0;
  border: 3px solid #33322E;
  border-radius: 15px;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}

.pendulum .string {
  position: absolute;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  width: 3px;
  height: 72px;
  background: var(--black);
}

.pendulum .weight {
  position: absolute;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  bottom: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f8d966;
  border: 3px solid #33322E;
}

.pendulum .motion {
  position: absolute;
  height: 90px;
  width: 50px;
  -webkit-transform-origin: 50% 10px;
  -ms-transform-origin: 50% 10px;
  transform-origin: 50% 10px;
  -webkit-animation: swing 1800ms infinite ease-in-out;
  animation: swing 1800ms infinite ease-in-out;
}

.pendulum.shadow .bar,
.pendulum.shadow .string,
.pendulum.shadow .weight {
  background: #3d3a34;
}

@-webkit-keyframes swing {
  0% {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }

  50% {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  100% {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }
}

@keyframes swing {
  0% {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }

  50% {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  100% {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }
}

.animated {
  -webkit-animation-duration: 0.5s;
  animation-duration: 0.5s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
}

.tips-enter-active {
  -webkit-transition: all 0.75s ease;
  transition: all 0.75s ease;
}

.tips-leave-active {
  -webkit-transition: all 0.35s cubic-bezier(1, 0.5, 0.8, 1);
  transition: all 0.35s cubic-bezier(1, 0.5, 0.8, 1);
}

.tips-enter,
.tips-leave-to {
  -webkit-transform: translateX(8px);
  -ms-transform: translateX(8px);
  transform: translateX(8px);
  opacity: 0;
}

@-webkit-keyframes headShake {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }

  6.5% {
    -webkit-transform: translateX(-6px) rotateY(-9deg);
    transform: translateX(-6px) rotateY(-9deg);
  }

  18.5% {
    -webkit-transform: translateX(5px) rotateY(7deg);
    transform: translateX(5px) rotateY(7deg);
  }

  31.5% {
    -webkit-transform: translateX(-3px) rotateY(-5deg);
    transform: translateX(-3px) rotateY(-5deg);
  }

  43.5% {
    -webkit-transform: translateX(2px) rotateY(3deg);
    transform: translateX(2px) rotateY(3deg);
  }

  50% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

@keyframes headShake {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }

  6.5% {
    -webkit-transform: translateX(-6px) rotateY(-9deg);
    transform: translateX(-6px) rotateY(-9deg);
  }

  18.5% {
    -webkit-transform: translateX(5px) rotateY(7deg);
    transform: translateX(5px) rotateY(7deg);
  }

  31.5% {
    -webkit-transform: translateX(-3px) rotateY(-5deg);
    transform: translateX(-3px) rotateY(-5deg);
  }

  43.5% {
    -webkit-transform: translateX(2px) rotateY(3deg);
    transform: translateX(2px) rotateY(3deg);
  }

  50% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

.zooming {
  -webkit-animation: zooming 1.5s ease-in-out infinite;
  animation: zooming 1.5s ease-in-out infinite;
}

@-webkit-keyframes zooming {
  0% {
    -webkit-transform: scale(1) rotateZ(45deg);
    transform: scale(1) rotateZ(45deg);
  }

  20% {
    -webkit-transform: scale(1) rotateZ(45deg);
    transform: scale(1) rotateZ(45deg);
  }

  30% {
    -webkit-transform: scale(1) rotateZ(135deg);
    transform: scale(1) rotateZ(135deg);
  }

  70% {
    -webkit-transform: scale(1) rotateZ(135deg);
    transform: scale(1) rotateZ(135deg);
  }

  80% {
    -webkit-transform: scale(1) rotateZ(45deg);
    transform: scale(1) rotateZ(45deg);
  }

  100% {
    -webkit-transform: scale(1) rotateZ(45deg);
    transform: scale(1) rotateZ(45deg);
  }
}

@keyframes zooming {
  0% {
    -webkit-transform: scale(1) rotateZ(45deg);
    transform: scale(1) rotateZ(45deg);
  }

  20% {
    -webkit-transform: scale(1) rotateZ(45deg);
    transform: scale(1) rotateZ(45deg);
  }

  30% {
    -webkit-transform: scale(1) rotateZ(135deg);
    transform: scale(1) rotateZ(135deg);
  }

  70% {
    -webkit-transform: scale(1) rotateZ(135deg);
    transform: scale(1) rotateZ(135deg);
  }

  80% {
    -webkit-transform: scale(1) rotateZ(45deg);
    transform: scale(1) rotateZ(45deg);
  }

  100% {
    -webkit-transform: scale(1) rotateZ(45deg);
    transform: scale(1) rotateZ(45deg);
  }
}

.popIn {
  -webkit-animation-name: popIn;
  animation-name: popIn;
}

@-webkit-keyframes popIn {
  0% {
    -webkit-transform: scale3d(0, 0, 0);
    transform: scale3d(0, 0, 0);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  40% {
    -webkit-animation-timing-function: cubic-bezier(0.47, 0, 0.745, 0.715);
    animation-timing-function: cubic-bezier(0.47, 0, 0.745, 0.715);
    -webkit-transform: scale3d(1.08, 1.08, 1.08);
    transform: scale3d(1.08, 1.08, 1.08);
  }

  60% {
    -webkit-animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
    animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }

  80% {
    -webkit-animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
    animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
    -webkit-transform: scale3d(1.03, 1.03, 1.03);
    transform: scale3d(1.03, 1.03, 1.03);
  }

  100% {
    -webkit-animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

@keyframes popIn {
  0% {
    -webkit-transform: scale3d(0, 0, 0);
    transform: scale3d(0, 0, 0);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  40% {
    -webkit-animation-timing-function: cubic-bezier(0.47, 0, 0.745, 0.715);
    animation-timing-function: cubic-bezier(0.47, 0, 0.745, 0.715);
    -webkit-transform: scale3d(1.08, 1.08, 1.08);
    transform: scale3d(1.08, 1.08, 1.08);
  }

  60% {
    -webkit-animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
    animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }

  80% {
    -webkit-animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
    animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
    -webkit-transform: scale3d(1.03, 1.03, 1.03);
    transform: scale3d(1.03, 1.03, 1.03);
  }

  100% {
    -webkit-animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

.popOut {
  -webkit-animation-name: popOut;
  animation-name: popOut;
  -webkit-animation-duration: 0.5s;
  animation-duration: 0.5s;
}

@-webkit-keyframes popOut {
  0% {
    -webkit-animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }

  60% {
    -webkit-animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
    animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
    -webkit-transform: scale3d(1.08, 1.08, 1.08);
    transform: scale3d(1.08, 1.08, 1.08);
  }

  80% {
    opacity: 1;
    -webkit-animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
    animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
  }

  100% {
    opacity: 0;
    -webkit-animation-timing-function: cubic-bezier(0.47, 0, 0.745, 0.715);
    animation-timing-function: cubic-bezier(0.47, 0, 0.745, 0.715);
    -webkit-transform: scale3d(0.3, 0.3, 0.3);
    transform: scale3d(0.3, 0.3, 0.3);
  }
}

@keyframes popOut {
  0% {
    -webkit-animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }

  60% {
    -webkit-animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
    animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
    -webkit-transform: scale3d(1.08, 1.08, 1.08);
    transform: scale3d(1.08, 1.08, 1.08);
  }

  80% {
    opacity: 1;
    -webkit-animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
    animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
  }

  100% {
    opacity: 0;
    -webkit-animation-timing-function: cubic-bezier(0.47, 0, 0.745, 0.715);
    animation-timing-function: cubic-bezier(0.47, 0, 0.745, 0.715);
    -webkit-transform: scale3d(0.3, 0.3, 0.3);
    transform: scale3d(0.3, 0.3, 0.3);
  }
}

.custom-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(51, 50, 46, 0.5);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-alert {
  background: var(--bg-normal);
  border: var(--border);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  width: 90%;
  max-width: 400px;
  padding: 24px;
  position: relative;
  font-family: var(--font);
  animation: popIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.custom-alert-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--font-color);
}

.custom-alert-content {
  font-size: var(--font-size-base);
  line-height: 1.5;
  margin-bottom: 24px;
}

.custom-alert-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.custom-alert-btn {
  padding: var(--btn-small-padding);
  border: var(--border);
  border-radius: var(--border-radius);
  background: var(--bg-submit);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.35s;
}

.custom-alert-btn:hover {
  box-shadow: var(--box-shadow);
  transform: translate(-2px, -2px);
}

.custom-alert-btn.confirm {
  background: var(--completed);
}

.custom-alert-btn.cancel {
  background: var(--deleted);
}