@import url("https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
/* General Reset */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Fira Sans", serif;
}
.container-website {
  display: flex;
  height: 100vh;
  width: 100%;
}
/* Left Side Navigation */
.left-side {
  width: 20%;
  background-color: #f4f4f4;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid #ddd;
  box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset;
}
.left-side i,
span {
  font-weight: bold;
  color: #000;
  margin-top: 30px;
  font-size: 2rem;
  margin-left: 5px;
}
.pages a {
  text-decoration: none;
  color: #000;
  width: 100%;
  margin-left: 50px;
}
.pages {
  margin-top: 50px;
  width: 100%;
}
.pages p {
  font-size: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 10px;
  border-radius: 5px;
  color: #000;
  margin-top: 20px;
  padding-left: 20px;
  width: 100%; /* Ensure the paragraph takes up the full width of the parent */
  box-sizing: border-box; /* Include padding in the width calculation */
  transition: all 0.2s ease-in-out;
  letter-spacing: 0.3px;
}
.pages i {
  font-size: 18px;
  position: absolute;
  margin-top: 10px;
  margin-left: 30px;
}
.pages p:hover {
  background-color: #e7e7e7;
}
.active {
  background: #e6e6e6;
  border-radius: 10px;
}
.btn-2 {
  margin-top: 4vh;
  border: none;
  padding: 14px 20px;
  text-align: center;
  transition: 0.5s;
  font-size: 1.1rem;
  background-size: 200% auto;
  color: white;
  box-shadow: 0 0 20px #eee;
  border-radius: 10px;
  background-image: linear-gradient(
    to right,
    #00d2ff 0%,
    #3a7bd5 51%,
    #00d2ff 100%
  );
}
.btn-2:hover {
  background-position: right center; /* change the direction of the change here */
  color: #fff;
  text-decoration: none;
  box-shadow: 0 5px 5px gray;
  cursor: pointer;
}
/* Right Side Dashboard */
.right-side {
  width: 80%;
  padding: 20px;
  background-color: #fff;
}
.right-side h1 {
  text-align: center;
  padding: 20px;
  background: #000;
  font-size: 2rem;
  border-radius: 10px;
  background: linear-gradient(90deg, #2736df, #29c9f5);
  color: #fff;
}
.user-account {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 20px 20px;
}
.profile-home {
  display: flex;
  gap: 20px;
}
.profile-home img {
  width: 70px;
  height: 73px;
  border-radius: 50%;
  margin-bottom: 10px;
}
.profile-home p {
  margin: 5px 0;
  color: #555;
}
.profile-home span {
  font-weight: bold;
  color: #000;
}

.profile-home {
  position: relative;
}

#nameInput, #saveNameBtn {
  position: absolute; /* Position them off-screen */
  top: -9999px;       /* Move them far off the screen */
  left: -9999px;
}


#profileImage {
  cursor: pointer; /* Make the image clickable */
}

#imageUpload {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0; /* Hide the file input */
  cursor: pointer; /* Allow clicking the file input through the image */
}

.animated-text {
  font-size: 5.3rem;
  font-weight: 600;
  min-width: 280px;
  text-align: center;
}
.animated-text span {
  position: relative;
  font-size: 4.5rem;
}
.animated-text span::before {
  content: "Expense Tracker App!";
  color: #ff7f50;
  animation: words 20s infinite;
}
.animated-text span::after {
  padding: 3px;
  content: "";
  padding-bottom: 12px;
  position: absolute;
  width: calc(100% + 8px);
  height: 100%;
  background-color: #fff;
  border-left: 2px solid #ff7f50;
  right: -8px;
  animation: cursor 0.8s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
  to {
    border-left: 2px solid #ff7f5000;
  }
}

@keyframes words {
  0%,
  20% {
    content: "Expense Tracker App!";
  }
  21%,
  40% {
    content: "Expense Tracker App!";
  }
  41%,
  60% {
    content: "Expense Tracker App!";
  }
  61%,
  80% {
    content: "Expense Tracker App!";
  }
  81%,
  100% {
    content: "Expense Tracker App!";
  }
}

@keyframes typing {
  10%,
  15%,
  30%,
  35%,
  50%,
  55%,
  70%,
  75%,
  90%,
  95% {
    width: 0;
  }
  5%,
  20%,
  25%,
  40%,
  45%,
  60%,
  65%,
  80%,
  85% {
    width: calc(100% + 8px);
  }
}
.tranform {
  font-size: 20px;
  font-weight: 300;
}

/* modal box form */
.container {
  background-color: #fff;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  width: 768px;
  max-width: 100%;
  min-height: 480px;
  margin: -85vh auto;
  border: 4px solid darkblue;
}
.container p {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.3px;
  margin: 20px 0;
}

.container span {
  font-size: 12px;
}

.container a {
  color: #333;
  font-size: 13px;
  text-decoration: none;
  margin: 15px 0 10px;
}

.container button {
  background-color: #512da8;
  color: #fff;
  font-size: 12px;
  padding: 10px 45px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.container button:hover {
  background: #3f1e8b;
}
.container button.hidden {
  background-color: transparent;
  border-color: #fff;
}

.container form {
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 40px;
  height: 100%;
}
.container input {
  background-color: #eee;
  border: none;
  margin: 8px 0;
  padding: 10px 15px;
  font-size: 14px;
  border-radius: 8px;
  width: 100%;
  outline: none;
}
.container input:hover {
  outline: 2px solid gray;
}
.form-container {
  position: absolute;
  top: 0;
  height: 100%;
  transition: all 0.6s ease-in-out;
}

.sign-in {
  left: 0;
  width: 50%;
  z-index: 2;
}

.container.active .sign-in {
  transform: translateX(100%);
}

.sign-up {
  left: 0;
  width: 50%;
  opacity: 0;
  z-index: 1;
}

.container.active .sign-up {
  transform: translateX(100%);
  opacity: 1;
  z-index: 5;
  animation: move 0.6s;
}

@keyframes move {
  0%,
  49.99% {
    opacity: 0;
    z-index: 1;
  }
  50%,
  100% {
    opacity: 1;
    z-index: 5;
  }
}
.social-icons {
  margin: 20px 0;
  align-items: center;
  display: flex;
  gap: 10px;
}
.social-icons img {
  width: 25px;
}
.social-icons a {
  border: 1px solid #ccc;
  border-radius: 20%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0 3px;
  width: 40px;
  height: 40px;
}

.toggle-container {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: all 0.6s ease-in-out;
  border-radius: 150px 0 0 100px;
  z-index: 1000;
}

.container.active .toggle-container {
  transform: translateX(-100%);
  border-radius: 0 150px 100px 0;
}

.toggle {
  background-color: #512da8;
  height: 100%;
  background: linear-gradient(to right, #5c6bc0, #512da8);
  color: #fff;
  position: relative;
  left: -100%;
  height: 100%;
  width: 200%;
  transform: translateX(0);
  transition: all 0.6s ease-in-out;
}

.container.active .toggle {
  transform: translateX(50%);
}

.toggle-panel {
  position: absolute;
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 30px;
  text-align: center;
  top: 0;
  transform: translateX(0);
  transition: all 0.6s ease-in-out;
}
.toggle-left {
  transform: translateX(-200%);
}
.container.active .toggle-left {
  transform: translateX(0);
}
.toggle-right {
  right: 0;
  transform: translateX(0);
}
.container.active .toggle-right {
  transform: translateX(200%);
}
/* Apply the blur effect to the background */
.blur {
  filter: blur(10px);
  transition: filter 0.3s ease;
}
/* Modal and Button stay above the blurred content */
.container-website {
  position: relative;
}
#logoutBtn {
  background: red;
  padding: 10px;
  margin-top: 20px;
  width: 130px;
  border: none;
  font-size: 17px;
  border-radius: 50px;
  color: #fff;
  transition: all 0.2s ease-in-out;
}
#logoutBtn:hover {
  background: darkred;
  cursor: pointer;
}
.custom-image {
  border: 3px solid green;
  padding: 5px;
  border-radius: 50px;
}
.custom-image-delete {
  border: 3px solid rgb(184, 0, 0);
  padding: 5px;
  border-radius: 50px;
}
/* Custom style for checkbox */
input[type="checkbox"] {
  width: 20px; /* Adjust the width */
  height: 20px; /* Adjust the height */
  transform: scale(1.5); /* Makes it 1.5 times larger */
  accent-color: #4caf50; /* Optional: changes the color of the checkbox */
  cursor: pointer;
}
.container-website {
  margin-left: 40vh;
}
.mobile-header {
  display: none;
}
.left-side {
  width: 250px;
  color: white;
  position: fixed;
  height: 100%;
  padding: 20px;
  left: 0;
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
}
.fa-bars,
.fa-x {
  margin-left: 20px;
  margin-top: 20px;
}

@media screen and (max-width: 820px) {
  .container-website {
    flex-direction: row;
    width: 70%;
  }
  .right-side {
    margin-left: -15vh;
  }
  .mobile-header {
    display: none;
  }
  .left-side {
    width: 30%;
  }

  .right-side {
    width: 100%;
    padding: 15px;
  }

  .right-side h1 {
    font-size: 22px;
    padding: 15px;
  }

  .profile-home img {
    width: 40px;
    height: 40px;
  }

  /* Reduce animated text size */
  .animated-text {
    font-size: 3rem;
  }

  .animated-text span {
    font-size: 2rem;
  }
  .fa-list-ul {
    opacity: 0;
  }
}

/* Styles for iPhone 14 Plus */
@media only screen and (max-width: 428px) {
  .container-website {
    height: 100%;
  }
  .auth-wrapper-mobile {
    display: block;
  }
  .right-side {
    position: absolute;
    left: 200px;
    width: 140%;
    margin-left: -26vh;
  }
  .user-account {
    width: 100%;
  }
  .profile-home img {
    width: 50px;
    height: 50px;
  }
  .fa-list-ul {
    position: absolute;
    top: 30px;
    left: 40px;
    font-size: 30px;
    color: white;
    opacity: 1;
  }
  .summary {
    display: flex;
  }

  .left-side {
    transform: translateX(-100%);
    position: fixed;
    height: 100vh;
    width: 250px;
    color: white;
    padding: 20px;
    top: 0;
    left: 0;
    transition: transform 0.3s ease-in-out;
    margin-top: 10px;
  }

  /* Show Sidebar when Active */
  .left-side.active {
    transform: translateX(0);
  }

  /* Mobile Header */
  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1100;
    margin-top: 3px;
  }

  /* Menu Toggle Button */
  #menuToggle {
    position: relative;
    background: none;
    z-index: 1101;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
  }
  .span-expense {
    margin-left: -80px;
    position: absolute;
    margin-top: 70px;
  }
  .container-website {
    margin-left: 0;
  }
  .fa-bars,
  .fa-x {
    display: block;
  }
  .container {
    margin-top: 20vh;
  }
  .container h1 {
    font-size: 20px;
    text-align: center;
  }
  .social-icons {
    gap: 0;
  }
  .form-container input {
    width: 180px;
  }
  .form-container button {
    width: 180px;
  }
  .form-container span {
    text-align: center;
  }
}
