* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

:root {
  --bg-color: #ffe2e0;
  --nav-bg-color: rgba(255, 182, 193, 0.3);
  --btn-bg-color: #e4006a;
  --text-color: white;
  --content-bg-color: white;
  --item-color: #ffe6ec;
  --sakura-pink: #ffb7c5;
  --shadow-color: rgba(228, 0, 106, 0.2);
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg-color) 0%, #ffd1dc 100%);
  display: grid;
  grid-template-columns: 20% 80%;
  position: relative;
  overflow-x: hidden;
}

/* Floating sakura petals animation */
.sakura-petal {
  position: fixed;
  font-size: 1.4rem;
  color: rgba(255, 183, 197, 0.8);
  z-index: 0;
  pointer-events: none;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.sakura-petal:nth-child(1) {
  left: 5%;
  animation: sakuraFall1 8s linear infinite;
  animation-delay: 0s;
}

.sakura-petal:nth-child(2) {
  left: 12%;
  animation: sakuraFall2 10s linear infinite;
  animation-delay: 1s;
}

.sakura-petal:nth-child(3) {
  left: 18%;
  animation: sakuraFall3 9s linear infinite;
  animation-delay: 2s;
}

.sakura-petal:nth-child(4) {
  left: 25%;
  animation: sakuraFall1 11s linear infinite;
  animation-delay: 0.5s;
}

.sakura-petal:nth-child(5) {
  left: 32%;
  animation: sakuraFall2 7s linear infinite;
  animation-delay: 3s;
}

.sakura-petal:nth-child(6) {
  left: 38%;
  animation: sakuraFall3 12s linear infinite;
  animation-delay: 1.5s;
}

.sakura-petal:nth-child(7) {
  left: 45%;
  animation: sakuraFall1 9s linear infinite;
  animation-delay: 4s;
}

.sakura-petal:nth-child(8) {
  left: 52%;
  animation: sakuraFall2 8s linear infinite;
  animation-delay: 2.5s;
}

.sakura-petal:nth-child(9) {
  left: 58%;
  animation: sakuraFall3 10s linear infinite;
  animation-delay: 0.8s;
}

.sakura-petal:nth-child(10) {
  left: 65%;
  animation: sakuraFall1 11s linear infinite;
  animation-delay: 3.5s;
}

.sakura-petal:nth-child(11) {
  left: 72%;
  animation: sakuraFall2 9s linear infinite;
  animation-delay: 1.2s;
}

.sakura-petal:nth-child(12) {
  left: 78%;
  animation: sakuraFall3 8s linear infinite;
  animation-delay: 4.5s;
}

.sakura-petal:nth-child(13) {
  left: 85%;
  animation: sakuraFall1 12s linear infinite;
  animation-delay: 2.8s;
}

.sakura-petal:nth-child(14) {
  left: 92%;
  animation: sakuraFall2 10s linear infinite;
  animation-delay: 0.3s;
}

.sakura-petal:nth-child(15) {
  left: 8%;
  animation: sakuraFall3 11s linear infinite;
  animation-delay: 5s;
}

.sakura-petal:nth-child(16) {
  left: 28%;
  animation: sakuraFall1 7s linear infinite;
  animation-delay: 3.8s;
}

.sakura-petal:nth-child(17) {
  left: 48%;
  animation: sakuraFall2 13s linear infinite;
  animation-delay: 1.8s;
}

.sakura-petal:nth-child(18) {
  left: 68%;
  animation: sakuraFall3 9s linear infinite;
  animation-delay: 4.2s;
}

.sakura-petal:nth-child(19) {
  left: 88%;
  animation: sakuraFall1 8s linear infinite;
  animation-delay: 2.2s;
}

.sakura-petal:nth-child(20) {
  left: 15%;
  animation: sakuraFall2 12s linear infinite;
  animation-delay: 0.7s;
}

@keyframes sakuraFall1 {
  0% {
    transform: translateY(-50px) rotate(0deg) translateX(0px);
  }
  100% {
    transform: translateY(calc(100vh + 50px)) rotate(360deg) translateX(30px);
  }
}

@keyframes sakuraFall2 {
  0% {
    transform: translateY(-50px) rotate(0deg) translateX(0px);
  }
  100% {
    transform: translateY(calc(100vh + 50px)) rotate(-360deg) translateX(-20px);
  }
}

@keyframes sakuraFall3 {
  0% {
    transform: translateY(-50px) rotate(0deg) translateX(0px);
  }
  50% {
    transform: translateY(50vh) rotate(180deg) translateX(15px);
  }
  100% {
    transform: translateY(calc(100vh + 50px)) rotate(360deg) translateX(-10px);
  }
}

nav {
  background: linear-gradient(
    135deg,
    var(--nav-bg-color) 0%,
    rgba(255, 183, 197, 0.4) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(255, 183, 197, 0.3);
  position: relative;
  z-index: 10;
}

@keyframes slideInLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.nav-btn {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 15px 15px;
  animation: fadeInDown 1s ease-out 0.3s both;
}

@keyframes fadeInDown {
  0% {
    transform: translateY(-30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.nav-btn input {
  width: 250px;
  height: 30px;
  border-radius: 5px;
  border: 2px solid var(--sakura-pink);
  padding: 0 15px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

.nav-btn input:focus {
  outline: none;
  border-color: var(--btn-bg-color);
  box-shadow: 0 0 0 3px rgba(228, 0, 106, 0.2);
  transform: scale(1.02);
}

.nav-btn button {
  background: linear-gradient(135deg, var(--btn-bg-color) 0%, #ff1a75 100%);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px var(--shadow-color);
}

.nav-btn button:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 4px 15px var(--shadow-color);
}

.nav-btn button:active {
  transform: translateY(0) scale(1.05);
}

nav ul {
  padding: 0px 15px 15px 15px;
  width: 100%;
}

nav ul button {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--btn-bg-color) 0%, #ff1a75 100%);
  color: var(--text-color);
  border: none;
  border-radius: 3px;
  width: 100%;
  max-width: 320px;
  height: 30px;
  margin-bottom: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px var(--shadow-color);
  position: relative;
  overflow: hidden;
  animation: fadeInLeft 0.8s ease-out calc(0.5s + var(--delay, 0s)) both;
}

nav ul button:nth-child(1) {
  --delay: 0.1s;
}
nav ul button:nth-child(2) {
  --delay: 0.2s;
}
nav ul button:nth-child(3) {
  --delay: 0.3s;
}

@keyframes fadeInLeft {
  0% {
    transform: translateX(-50px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

nav ul button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

nav ul button:hover::before {
  left: 100%;
}

nav ul button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px var(--shadow-color);
}

/* Container section */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 15px;
  position: relative;
  z-index: 10;
  animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.container h1 {
  background: linear-gradient(
    135deg,
    var(--btn-bg-color),
    #ff1a75,
    var(--sakura-pink)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(228, 0, 106, 0.3);
  font-size: 2.5rem;
  font-weight: 700;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  0% {
    filter: drop-shadow(0 0 5px rgba(228, 0, 106, 0.3));
  }
  100% {
    filter: drop-shadow(0 0 15px rgba(228, 0, 106, 0.6));
  }
}

.content {
  margin-top: 15px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  width: 100%;
  max-width: 700px;
  height: 100%;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 183, 197, 0.2);
  border: 1px solid rgba(255, 183, 197, 0.3);
  overflow: hidden;
  animation: scaleIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.7s both;
}

@keyframes scaleIn {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.add-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(
    135deg,
    rgba(255, 183, 197, 0.1) 0%,
    rgba(255, 226, 224, 0.1) 100%
  );
}

.add-item h2 {
  color: var(--btn-bg-color);
  font-size: 1.5rem;
  font-weight: 600;
}

.line {
  display: flex;
  justify-content: center;
}

.add-todo input {
  width: 220px;
  height: 30px;
  border-radius: 5px;
  border: 3px solid #fddbd9;
  padding: 0 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.9);
}

.add-todo input:focus {
  border-color: var(--btn-bg-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(228, 0, 106, 0.2);
  transform: scale(1.02);
}

.add-todo {
  display: flex;
  gap: 5px;
  align-items: center;
}

.add-todo button {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--btn-bg-color) 0%, #ff1a75 100%);
  color: var(--text-color);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  padding: 10px 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px var(--shadow-color);
}

.add-todo button:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 6px 25px var(--shadow-color);
}

.add-todo button:active {
  transform: translateY(0) scale(1.05);
}

hr {
  padding: 0px 5px;
  width: 95%;
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--sakura-pink),
    transparent
  );
  opacity: 0.5;
}

.task-list {
  height: 100%;
  padding-bottom: 20px;
}

.item-wraper {
  animation: slideInUp 0.5s ease-out;
  transition: all 0.3s ease;
}

@keyframes slideInUp {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.item-wraper:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 183, 197, 0.1) 0%,
    rgba(255, 226, 224, 0.1) 100%
  );
  transform: translateX(5px);
}

.task-list li {
  margin-top: 15px;
  padding-left: 15px;
  list-style: none;
  font-weight: 500;
  font-size: 1.2rem;
  padding-right: 15px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
}

.task-list li::before {
  content: "🌸";
  margin-right: 10px;
  animation: bounce 2s ease-in-out infinite;
  font-size: 1.5rem;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-5px) rotate(5deg);
  }
}

.task-list li button {
  margin-left: auto;
  background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
  color: var(--text-color);
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(255, 71, 87, 0.3);
  min-width: 60px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.task-list li button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 20px rgba(255, 71, 87, 0.4);
}

.task-list li button:active {
  transform: translateY(0) scale(1);
}

.item-wraper .line hr {
  margin-top: 15px;
}

body {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
}

nav {
  flex-direction: row;
  justify-content: space-between;
  padding: 10px;
}

nav ul {
  display: flex;
  gap: 10px;
  padding: 0;
}

nav ul button {
  width: auto;
  padding: 0 15px;
}

.nav-btn input {
  width: 150px;
}

.container h1 {
  font-size: 2rem;
}

.content {
  margin: 10px;
  max-width: none;
}

/* Additional hover effects for better UX */
button {
  position: relative;
  overflow: hidden;
}

button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

button:active::after {
  width: 300px;
  height: 300px;
}
nav ul button {
  margin-bottom: 0px;
}

/* dark mode  */
/* Dark Mode Styles */
:root {
  /* Light mode variables (existing) */
  --bg-color: #ffe2e0;
  --nav-bg-color: rgba(255, 182, 193, 0.3);
  --btn-bg-color: #e4006a;
  --text-color: white;
  --content-bg-color: white;
  --item-color: #ffe6ec;
  --sakura-pink: #ffb7c5;
  --shadow-color: rgba(228, 0, 106, 0.2);
}

/* Dark mode variables */
body.dark-mode {
  --bg-color: #1a0f1f;
  --nav-bg-color: rgba(45, 25, 40, 0.8);
  --btn-bg-color: #ff4081;
  --text-color: white;
  --content-bg-color: #2d1b2e;
  --item-color: #3d2a3e;
  --sakura-pink: #e91e63;
  --shadow-color: rgba(255, 64, 129, 0.3);
  --text-primary: #f8bbd9;
  --text-secondary: #e1bee7;
  --border-color: rgba(255, 64, 129, 0.2);
}

/* Dark mode specific overrides */
body.dark-mode {
  background: linear-gradient(135deg, var(--bg-color) 0%, #2d1b2e 100%);
  color: var(--text-primary);
}

body.dark-mode nav {
  background: linear-gradient(
    135deg,
    var(--nav-bg-color) 0%,
    rgba(45, 25, 40, 0.9) 100%
  );
  border-right: 1px solid var(--border-color);
}

body.dark-mode .nav-btn input {
  background: rgba(45, 25, 40, 0.9);
  color: var(--text-primary);
  border: 2px solid var(--sakura-pink);
}

body.dark-mode .nav-btn input::placeholder {
  color: rgba(248, 187, 217, 0.6);
}

body.dark-mode .nav-btn input:focus {
  border-color: var(--btn-bg-color);
  background: rgba(45, 25, 40, 1);
}

body.dark-mode .container h1 {
  background: linear-gradient(
    135deg,
    var(--btn-bg-color),
    #ff6ec7,
    var(--sakura-pink)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.dark-mode .content {
  background: rgba(45, 27, 46, 0.95);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-color);
}

body.dark-mode .add-item {
  background: linear-gradient(
    135deg,
    rgba(255, 64, 129, 0.1) 0%,
    rgba(233, 30, 99, 0.1) 100%
  );
}

body.dark-mode .add-item h2 {
  color: var(--sakura-pink);
}

body.dark-mode .add-todo input {
  background: rgba(45, 25, 40, 0.9);
  color: var(--text-primary);
  border: 3px solid rgba(233, 30, 99, 0.3);
}

body.dark-mode .add-todo input::placeholder {
  color: rgba(248, 187, 217, 0.6);
}

body.dark-mode .add-todo input:focus {
  border-color: var(--btn-bg-color);
  background: rgba(45, 25, 40, 1);
}

body.dark-mode hr {
  background: linear-gradient(
    90deg,
    transparent,
    var(--sakura-pink),
    transparent
  );
}

body.dark-mode .task-list li {
  color: var(--text-primary);
}

body.dark-mode .item-wraper:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 64, 129, 0.1) 0%,
    rgba(233, 30, 99, 0.1) 100%
  );
}

body.dark-mode .sakura-petal {
  color: rgba(255, 64, 129, 0.6);
  text-shadow: 0 0 10px rgba(255, 64, 129, 0.4);
}

body.dark-mode .nav-btn button:hover,
body.dark-mode nav ul button:hover,
body.dark-mode .add-todo button:hover {
  box-shadow: 0 6px 25px rgba(255, 64, 129, 0.4);
}

body.dark-mode .task-list li button:hover {
  box-shadow: 0 4px 20px rgba(255, 71, 87, 0.5);
}

body,
nav,
.content,
.add-item,
input,
button,
h1,
h2,
li {
  transition: all 0.3s ease;
}
.hamburger-menu {
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--shadow-color);
  width: 30px;
  height: 30px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--btn-bg-color) 0%, #ff1a75 100%);
  color: white;
}

.hamburger-menu:active {
  transform: translateY(0) scale(1.05);
}

/* resposive for smaller screens */
@media (max-width: 471px) {
  .hamburger-menu {
    display: flex;
  }
  nav ul {
    display: none;
  }
  nav {
    justify-content: end;
  }
  .container h1 {
    font-size: 1.5rem;
  }
  .add-item h2 {
    font-size: 1.2rem;
  }
  .add-todo input {
    width: 190px;
  }
}

/* hamburger menu */
body.dark-mode {
  --bg-color: #1a0f1f;
  --nav-bg-color: rgba(45, 25, 40, 0.8);
  --btn-bg-color: #ff4081;
  --text-color: white;
  --content-bg-color: #2d1b2e;
  --item-color: #3d2a3e;
  --sakura-pink: #e91e63;
  --shadow-color: rgba(255, 64, 129, 0.3);
  --text-primary: #f8bbd9;
  --text-secondary: #e1bee7;
  --border-color: rgba(255, 64, 129, 0.2);
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg-color) 0%, #ffd1dc 100%);
  position: relative;
  overflow-x: hidden;
  transition: all 0.3s ease;
}

body.dark-mode {
  background: linear-gradient(135deg, var(--bg-color) 0%, #2d1b2e 100%);
  color: var(--text-primary);
}

.hamburger-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  background: linear-gradient(135deg, var(--btn-bg-color) 0%, #ff1a75 100%);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px var(--shadow-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.hamburger-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 25px var(--shadow-color);
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

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

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar-menu {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--nav-bg-color) 0%,
    rgba(255, 183, 197, 0.4) 100%
  );
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 183, 197, 0.3);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 80px 0 20px 0;
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);
}

body.dark-mode .sidebar-menu {
  background: linear-gradient(
    135deg,
    var(--nav-bg-color) 0%,
    rgba(45, 25, 40, 0.9) 100%
  );
  border-right: 1px solid var(--border-color);
}

.sidebar-menu.active {
  left: 0;
}

.menu-header {
  padding: 0 20px 20px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 183, 197, 0.3);
  margin-bottom: 20px;
}

body.dark-mode .menu-header {
  border-bottom: 1px solid var(--border-color);
}

.menu-header h2 {
  background: linear-gradient(
    135deg,
    var(--btn-bg-color),
    #ff1a75,
    var(--sakura-pink)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.menu-header .sakura-icon {
  font-size: 2rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-5px) rotate(5deg);
  }
}

.menu-items {
  flex: 1;
  padding: 0 20px;
}

.menu-item {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--btn-bg-color) 0%, #ff1a75 100%);
  color: var(--text-color);
  border: none;
  border-radius: 8px;
  width: 100%;
  height: 45px;
  margin-bottom: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px var(--shadow-color);
  position: relative;
  overflow: hidden;
  padding: 0 15px;
  font-size: 14px;
  animation: slideInLeft 0.6s ease-out;
  animation-fill-mode: both;
}

.menu-item:nth-child(1) {
  animation-delay: 0.1s;
}
.menu-item:nth-child(2) {
  animation-delay: 0.2s;
}
.menu-item:nth-child(3) {
  animation-delay: 0.3s;
}
.menu-item:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes slideInLeft {
  0% {
    transform: translateX(-50px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.menu-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.menu-item:hover::before {
  left: 100%;
}

.menu-item:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px var(--shadow-color);
}

.menu-item-icon {
  margin-right: 12px;
  font-size: 16px;
}

.menu-footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 183, 197, 0.3);
  margin-top: auto;
}

body.dark-mode .menu-footer {
  border-top: 1px solid var(--border-color);
}

.dark-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--btn-bg-color) 0%, #ff1a75 100%);
  color: var(--text-color);
  border: none;
  border-radius: 8px;
  width: 100%;
  height: 40px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px var(--shadow-color);
}

.dark-mode-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow-color);
}

.main-content {
  padding: 100px 20px 20px 20px;
  text-align: center;
}

.main-content h1 {
  background: linear-gradient(
    135deg,
    var(--btn-bg-color),
    #ff1a75,
    var(--sakura-pink)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.sakura-petal {
  position: fixed;
  font-size: 1.4rem;
  color: rgba(255, 183, 197, 0.8);
  z-index: 0;
  pointer-events: none;
  animation: sakuraFall 8s linear infinite;
}

body.dark-mode .sakura-petal {
  color: rgba(255, 64, 129, 0.6);
  text-shadow: 0 0 10px rgba(255, 64, 129, 0.4);
}

.sakura-petal:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}
.sakura-petal:nth-child(2) {
  left: 20%;
  animation-delay: 1s;
}
.sakura-petal:nth-child(3) {
  left: 30%;
  animation-delay: 2s;
}
.sakura-petal:nth-child(4) {
  left: 40%;
  animation-delay: 3s;
}
.sakura-petal:nth-child(5) {
  left: 50%;
  animation-delay: 4s;
}
.sakura-petal:nth-child(6) {
  left: 60%;
  animation-delay: 5s;
}
.sakura-petal:nth-child(7) {
  left: 70%;
  animation-delay: 6s;
}
.sakura-petal:nth-child(8) {
  left: 80%;
  animation-delay: 7s;
}

@keyframes sakuraFall {
  0% {
    transform: translateY(-50px) rotate(0deg);
  }
  100% {
    transform: translateY(calc(100vh + 50px)) rotate(360deg);
  }
}

@media (max-width: 471px) {
  .sidebar-menu {
    width: 280px;
    left: -300px;
  }

  .hamburger-btn {
    width: 45px;
    height: 45px;
    top: 15px;
    left: 15px;
  }

  .main-content {
    padding: 80px 15px 20px 15px;
  }

  .main-content h1 {
    font-size: 2rem;
  }
}
