:root{
      --primary: #6366f1; /* Indigo */
            --primary-hover: #4f46e5;
            --background-gradient: linear-gradient(135deg, #7086e9 0%, #805aa7 100%);
            --glass-bg: rgba(255, 255, 255, 0.85);
            --text-dark: #1f2937;
            --text-light: #6b7280;
            --danger: #ef4444;
            --success: #10b981;
}
*{
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   font-family: 'Inter', sans-serif;
}
body{
   min-height: 100vh;
   background: var(--background-gradient);
   display: flex;
   justify-content: center;
   align-items: center;
   color: var(--text-dark);
   overflow: hidden;

}
.container{
   width: 37.6rem;
   background: var(--glass-bg);
   backdrop-filter: blur(10px);
   border-radius: 15px;
   box-shadow: 0 0 22px -6px rgba(179, 179, 238, 0.37);
   padding  : 2rem;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   overflow: hidden;

}
.header{
   padding: 0px 0px 25px 0px;
   justify-content: center;
   width: 100%;
   border-bottom: solid 0.5px var(--text-light);
   display: flex;
   flex-direction: column;
}
.top-header{
   display: flex;
   justify-content: space-between;
   align-items: center;
   width: 100%;
}
.top-header h1{
   font-size: 1.8rem;
   font-weight: 820;
   text-align: left;
}
.top-header p{
   font-size: 1rem;
   margin-top: 5px;
   text-align: right;
   color: var(--primary);
   font-weight: 730;
}
.bottom-header{
   color: var(--text-light);
   font-size: 0.95rem;
   margin-top: 5px;
}

.input-div{
   width: 100%;
   display: flex;
   flex-direction: row;
   align-items: center;
   gap: 1rem;
   margin-top: 1.5rem;
   position: relative;
}
.input-div label{
   font-size: 0.75rem;
   margin: 0;
   padding: 0;
   letter-spacing: -4;
}

#todo-input{
   background-color: rgba(246, 253, 255, 0.822);
   flex: 1;
   padding: 1rem 1rem;
   border: 2px solid transparent;
   /* border: 1px solid var(--text-light); */
   box-shadow: inset 0 0 5px 1px rgba(179, 179, 238, 0.37);
   border-radius: 8px;
   font-size: 1.1rem;
   outline: none;
}
#todo-input:focus-within{
   border-color: var(--primary);
   box-shadow: 0 0 3px 3px rgba(156, 156, 247, 0.37);
   background-color: var(--glass-bg);
}
.todo-date{
   background-color: rgb(243, 252, 255);
   flex: 1;
   padding: 1rem;
   border: none;
   /* border: 1px solid var(--text-light); */
   box-shadow: inset 0 0 5px 1px rgba(179, 179, 238, 0.37);
   border-radius: 8px;
   font-size: 1.1rem;
   outline: none;
   width: 150px;
   color: var(--text-light);
}
.todo-date:hover{
   cursor: pointer;
}  
.todo-btn{
   padding: 0.5rem 1rem 0.5rem 1rem;
   border-radius: 9px;
   border-style: none;
   background-color: var(--primary);
   font-size: 1rem;
   color: white;  
   font-weight: 550;
   /* text-wrap: nowrap; */
   letter-spacing: -0.2px;
   transition: all 0.2s ease;
}
.todo-btn:hover{
   background-color: var(--primary-hover);
   cursor: pointer;
   transform: scale(1.05);
}
.todo-btn:active{
   transform: scale(0.98);
}
.main{
   width: 100%;
   margin-top: 1.5rem;
   display: flex;
   flex-direction: column;
}
.filter-buttons{
   width: 100%;
   position: relative;
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 1rem;
}
.filter-buttons button{
   background-color: transparent;
   border: none;
   border-radius: 12px;
   font-size: 1rem;
   color: var(--text-light);
   font-weight: 600;
   padding: 0.5rem 1rem;
   cursor: pointer;
   transition: all 0.3s ease;
}
.filter-buttons button:hover{
   background-color: rgb(194, 193, 193);
   color: var(--primary-hover);

}
.filter-buttons button:focus-within{
   background-color: var(--primary);
   color: white;
   box-shadow: 2px 2px 7px -1.5px rgba(99, 102, 241, 0.7);
   transform: scale(1.05);

}
.todo-list{
   height: 15rem;
   width: 100%;
   margin-top: 1.5rem;
   transition: all 0.3s ease;
   display: flex;
   flex-direction: column;
   gap: 1rem;
   padding: 1.5rem;
   overflow-y: auto;
}
.todo-item{
   padding: 25px 10px 25px 15px;
   color: var(--text-dark);
   background-color: rgba(206, 206, 253, 0.37);
   border-radius: 20px;
   font-size: 1.1rem;
   display: flex;
   justify-content: space-between;
   transition: all 0.2s ease;

}
.todo-item:hover{
   box-shadow: 0 0 10px -1px rgba(167, 167, 243, 0.7);
   .delete-btn{
      color: var(--glass-bg);
      background-color: var(--danger);
      transform: scale(1.05);
   }
}


.delete-btn{
   background-color: transparent;
   border: none;
   color: var(--danger);
   padding: 0.5rem 1rem;
   border-radius: 8px;
   font-size: 0.9rem;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.2s ease;
}
.todo-item:hover .delete-btn:hover{
   background-color: rgb(196, 36, 36);
   transform: scale(1.09);
}
@media (max-width: 650px){
   .container{
      width: 90%;
      height: 90%;
   }
   .input-div{
      flex-direction: column;
      gap: 1rem;
   }
   .todo-date{
      width: 70%;
   }
   .todo-list{
      padding: 0rem;
   }
   .todo-item{
      gap: 0.3rem;
   }
   
}