@import url("https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Lexend&display=swap');
:root {
  --font-heading: "Fredoka One", cursive;
  --font-todo: "Lexend", sans-serif;
  --color-bg: linear-gradient(to bottom, #000000, #293241);
  --color-yellow: #ffd31d;
  --color-red: #ff6c7d;
  --color-font: #101110;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(to bottom, #000000, #293241);
}

::-webkit-scrollbar-thumb {
  background: #ffffff;
}

body {
  color: #ffffff;
  width: 100%;
  height: 100%;
  font-size: 16px;
  font-weight: normal;
  font-family: var(--font-todo);
}

button {
  outline: none;
  border: none;
  border-radius: 0px;
  cursor: pointer;
  
}
button svg {
  stroke: #ffffff;
  pointer-events: none;
  align-self: center;
}

.wrapper {
  position: relative;
  height: 100%;
  min-height: 100vh;
  background: var(--color-yellow);
  background: var(--color-bg);
  overflow: hidden;
  padding-bottom: 3em;
}

.text-container {
  width: 100%;
  margin: 0;
  padding: 2em 1em 0em 1em;
  padding-top: 0.5em;
}
.text-container h1 {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 3em;
}
.text-container h6 {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.8em;
}

.title-head {
  text-align: right;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 3em;
}

.center {
  width: 100%;
  max-height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  flex-flow: column wrap;
}

.todo-input-container {
  width: 100%;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: stretch;
 
}
.todo-input-container input,
.todo-input-container button {
  border: none;
  outline: none;
}
.todo-input-container input {
  flex: 6;
  font-family: var(--font-todo);
  padding: 1.25em;
  width: 95%;
  
  font-weight: 500;
  border-radius: 0px;
  font-size: 16px;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  transition: 100ms ease;
  padding-left: 1.5em;
}
.todo-input-container button {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  flex: 1;
  background: #ffffff;
  border-left: 1.25px solid #eeeeee;
  transition: 225ms ease;
  cursor: pointer;
}
.todo-input-container button svg {
  stroke: var(--color-font);
}
.todo-input-container button:hover {
  background: var(--color-font);
}
.todo-input-container button:hover svg {
  stroke: #ffffff;
}

.box-shadow {
  box-shadow: 0 10px 0 0 rgba(0, 0, 0, 0.25);
}

.todo-container {
    width: 100%; /* Full width on small screens */
    max-width: 500px; /* Restrict max width on larger screens */
    max-height: 50vh; /* Limit height to enable scrolling */
    overflow-y: auto; /* Default scrollbar */
    list-style: none; /* Remove bullets */
    
      padding-top: 0em;
  padding-bottom: 1em;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
  margin-top: 1em;
    box-sizing: border-box; /* Prevent width issues */

    /* WebKit Browsers (Chrome, Edge, Safari) */
    overflow-y: overlay;
}

.todo-container::-webkit-scrollbar {
  width: 0px; /* Slim scrollbar */
}

.todo-container::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3); /* Subtle visibility */
  border-radius: 0px; /* Rounded scrollbar */
}

.todo-container::-webkit-scrollbar-track {
  background: transparent; /* Fully transparent track */
}



.todo-container .todo {
  margin: 0 auto;
  margin-bottom: 1em;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  flex-flow: row wrap;
  font-family: var(--font-todo);
  border: none;
  outline: none;
  background: #ffffff;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  color: var(--color-font);
  -webkit-animation: added 700ms ease;
          animation: added 700ms ease;
  transition: 200ms ease;
}
.todo-container .todo.completed {
  width: 90%;
  transition: 200ms ease;
  text-decoration: line-through;
  color: #7e7e7e;
  opacity: 0.7;
}
.todo-container .todo li {
  flex: 10;
  padding: 1em;
  list-style-type: none;
  font-weight: normal;
  align-self: center;
  cursor: default;
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  padding-left: 1.5em;
}
.todo-container .todo button {
  transition: 225ms ease;
  padding: 1em;
  flex: 1;
  margin: 0;
}

.todo-info {
  background: #ffffff;
  border-left: 1.25px solid #eeeeee;
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.todo-info:hover {
  background: #bfc9ca;
}
.todo-info svg {
  stroke: #95a5a6;
}
.todo-info:hover svg {
  stroke: #fcfcfc;
}



.todo-info .tooltiptext {
  visibility: hidden;
  width: max-content;
  max-width: 200px;
  background-color: rgba(33, 33, 33, 0.9); /* Material UI dark background */
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
  
  /* Positioning on the left side */
  position: absolute;
  top: 50%;
  right: 100%; /* Moves tooltip to the left of the button */
  transform: translateY(-50%) translateX(-10px); /* Adjust spacing from button */
  
  /* Smooth fade-in */
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.todo-info .tooltiptext::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(33, 33, 33, 0.9);
}

.todo-info:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
  transform: translateY(-50%) translateX(-12px); /* Slight shift effect */
}




.todo-check {
  background: #ffffff;
  border-left: 1.25px solid #eeeeee;
}
.todo-check:hover {
  background: #00c251;
}
.todo-check:hover svg {
  stroke: #ffffff;
}
.todo-check svg {
  stroke: #00c251;
}

.todo-delete {
  background: #ffffff;
  border-left: 1.25px solid #eeeeee;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}
.todo-delete svg {
  stroke: var(--color-red);
}
.todo-delete:hover {
  background: var(--color-red);
}
.todo-delete:hover svg {
  stroke: #ffffff;
}

.btn:focus,.btn:active {
  outline: none !important;
  box-shadow: none;
  
}




@-webkit-keyframes removed {
  0% {
    transform: translateY(0vh) scale(1);
  }
  50% {
    transform: translateY(-30vh) scale(0.7);
    opacity: 0.7;
  }
  100% {
    transform: translateY(-30vh) scale(0.7) translateX(100vh);
    opacity: 0;
  }
}

@keyframes removed {
  0% {
    transform: translateY(0vh) scale(1);
  }
  50% {
    transform: translateY(-30vh) scale(0.7);
    opacity: 0.7;
  }
  100% {
    transform: translateY(-30vh) scale(0.7) translateX(100vh);
    opacity: 0;
  }
}
@-webkit-keyframes added {
  0% {
    transform: translateY(-20vh) rotateX(180deg) scale(0);
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: translateY(0vh) rotateX(0deg) scale(1);
  }
}
@keyframes added {
  0% {
    transform: translateY(-20vh) rotateX(180deg) scale(0);
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: translateY(0vh) rotateX(0deg) scale(1);
  }
}
@media screen and (max-width: 550px) {
  .todo-input-container {
    padding: 0em 2.75em;
    
  }

  .todo-container {
    padding: 1em 2em;
    padding-bottom: 4em;
  }
 
  .cate-input-container
  {
    padding: 1em 2em;
  }
}

.selected {
  background-color: #2E4053 !important; /* Change the background color of the selected button */
  color: #e8e9eb !important; /* Change the text color of the selected button */
  
} 
.btn-outline-light.selected {
  border-top-right-radius: 0px !important;
  border-bottom-right-radius: 0px !important;
}
.update-delete-buttons {
  display:none; /* Initially hide the update and delete buttons */
  
  transition: all 0.3s ease-in-out; /* Add transition effect */
  max-width: 30px; /* Set width of update and delete buttons */
  width: 30px; /* Set width of update and delete buttons */
  padding: 0; /* Remove padding to ensure fixed size */
  border: 1px solid #f9fafb; 
  font-size: 16px; /* Adjust font size */
}
.update-delete-buttons.show {
  
  display: inline-block; /* Show the buttons */

}

.btn-group {
  width: 100%; /* Make button group take up full width */
}

.cate-input-container {
  width: 100%;
  max-width: 475px;
  
  justify-content: center;
  align-items: stretch;
 
}

.new-todo-btn {
  background-color: #ABEBC6;
  color: #2E4053;
  line-height: 40px; /* Center the icon vertically */
  text-align: center; /* Center the icon horizontally */
  padding: 5px; /* Remove any default padding */
}

.new-todo-btn:hover {
  background-color: #ABEBC6;
  color: white;
  line-height: 40px; /* Center the icon vertically */
  text-align: center; /* Center the icon horizontally */
  padding: 5px; /* Remove any default padding */
}

 /* Adjust styling as needed */
 .navbar {
  background-color: #333;
}
.navbar-brand {
  color: #2e4053;
}
.navbar-brand img {
  width: 40px; /* Adjust logo size as needed */
  margin-right: 10px;
}
.sub-brand {
  color: #2e4053;
  font-size: 12px;
  font-weight: normal;
}
.dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  padding-top:0.5em;
  padding-left:0.8em;
  padding-right:0.8em;
  padding-bottom:0.5em;
  
}
.dropdown-menu .dropdown-item i {
  margin-right: 5px;
}

  .icon-btn {
        position: relative;
        font-size: 18px;
        padding: 8px;
        cursor: pointer;
        min-width: 45px;
    }

    .icon-btn:hover::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.8);
        color: #fff;
        padding: 5px 10px;
        border-radius: 5px;
        white-space: nowrap;
        font-size: 12px;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.2s ease-in-out;
    }

    .icon-btn::after {
        content: '';
        opacity: 0;
        visibility: hidden;
    }
    
#loader {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
    width: 350px;
    z-index: 9999; /* Ensures loader stays above all elements */
}

.spinner {
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-bg);
  padding: 2px 20px 2px 20px;
  z-index: 1000;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.footer-left {
  text-align: left;

}

.footer-right {
  text-align: right;
}

.footer-text {
  color: #e0fbfc;  /* Adjust color as needed */
  font-size: 14px;
  text-decoration: none;
}

.footer-text:hover {
  color: #ee6c4c; /* Change color on hover */
  text-decoration: none; /* Ensures no underline on hover */
}



@media (max-width: 768px) { /* Targets mobile devices */
  .footer-right div {
      font-size: 10px !important; /* Reduce font size */
  }
  .footer-right a {
      font-size: 10px !important; /* Reduce font size for the link */
  }
}




.menu-btn {
  padding: 8px 12px;
  border: none;
  cursor: pointer;
  background-color: white;
  font-size: 16px;
  color: black;
  outline: none;
  transition: background-color 0.3s;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.menu-btn:hover {
  background-color: #ddd;
}

/* Popup menu styling */
.popup-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  min-width: 120px;
  z-index: 1000;
  display: none;
}

/* Popup buttons */
.popup-button {
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  color: black;
}

.popup-button:hover {
  background-color: #f0f0f0;
  border-radius: 6px;
}

.update-button i {
  margin-right: 6px;
  color: #2c3e50;
}

.delete-button i {
  margin-right: 6px;
  color: #e74c3c;
}

.btn-outline-light
{
  border-radius: 4px !important;
}