*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

:root{
    --main-purple-color: #77448b;
    --secondery-purple-color: #2B124c;
    --main-beige-color: #fbe4d8;
    --secondery-beige-color: #dfb6b2;
    --white-color: #fff;
    --red-color: #c11;
    --green-color: #177245;
}

body{
    background-image: linear-gradient(#190019,#2B124c,#522b5b,#854f6c,#dfb6b2,#fbe4d8);
    background-attachment: fixed;
    height: 100vh;
    width: 100%;
    padding: 40px 20px;
    animation: transitionIn 1s;
}

body header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

body header .text-input , button{
    outline: none;
    padding: 10px 20px;
    background-color: transparent;
    color: var(--main-beige-color);
    border: 2px solid var(--main-beige-color) ;
}

body header .shake {
    animation: shake 0.5s;
}

body header input::placeholder {
    color: var(--main-beige-color);
    font-size: 1rem;
}

body header input:focus{
    box-shadow: 0 0 8px 0 var(--main-beige-color);
}

body header .intro {
    margin: 20px;
    font-size: 2rem;
    color: var(--main-beige-color);
}

body header .add-task {
    width: 25rem;
    display: flex;
    justify-content:space-around;
}

body header .add-task input{
    margin-right: 0.6rem;
    width: 19rem;
    height: 100%;
}

body header .add-task button{
    width: 5rem;
    font-weight: bold;
}

body header .add-task button:hover , button:active{
    transition: 0.3s;
    background-color: var(--main-beige-color);
    color: var(--main-purple-color);
    cursor: pointer;
}

body header .search-bar input{
    margin: 20px;
    width: 25rem;
}

body main table{
    width: 100%;
    margin-top: 20px;
    border-collapse:collapse;
    border-radius: 30px;
    overflow: hidden;
}

body main table > thead th{
    background-color: var(--main-beige-color);
    color: var(--main-purple-color);
}

body main table th:first-child,th:last-child{
    padding: 20px;
}
  
body main tr{
    background-color: var(--white-color);
}

body main tr:not(tr:last-child){
    border-bottom: 1px solid var(--main-beige-color);
}

body main table td{
    padding: 20px 0;
    text-align: center;
}

body main table td:nth-child(4),td:nth-child(5),td:nth-child(6){
    width: 70px;
}

body main table .edit-button,.delete-button,.toggle-status-button{
    color: var(--main-purple-color);
    cursor: pointer;

}

body main table .edit-button:hover,.delete-button:hover,.toggle-status-button:hover {
    transition: 0.5s;
    background-color: var(--secondery-beige-color);
}

body main table .fa-circle-check{
    color: var(--green-color);
}

body main table .fa-hourglass-half{
    color: var(--red-color);
}

body main table .edit-input {
    outline: none;
    border: none;
    font-size: inherit; 
    width:initial;
}

.confirmation-dialog {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--white-color);
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 9999;
  }
  
.confirmation-dialog p {    
    margin: 0;
    margin-bottom: 20px;
}
  
.confirmation-dialog button {
    margin-right: 10px;
    cursor: pointer;
    background-color: var(--main-purple-color);
    border: 1px solid var(--secondery-purple-color);
}

.confirmation-dialog button:hover {
    margin-right: 10px;
    transition: 0.5s;
    background-color: var(--secondery-purple-color);
}
  
.confirmation-dialog button:last-child {
    margin-right: 0;
}

.dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(2px); 
    z-index: 9998; 
}

.toast {
    position: fixed;
    top: -100px;
    right: 20px;
    background-color: var(--main-beige-color);
    color: var(--main-purple-color);
    padding: 15px;
    border-radius: 5px;
    border:1px solid var(--secondery-beige-color);
    display: none;
    z-index: 9999;
    transition: top 0.5s ease-in-out;
}  

body footer{
    width: 100%;
    margin-top: 40px;
    padding: 20px 40px;
    text-align: center;
    font-size: large;
    font-weight: bold;
}
  

@media(max-width:650px){
    body main table th,td{
        font-size: 1.5vw;
    }

    body{
        padding-left: 0;
        padding-right: 0;
    }

    body main table td:nth-child(4),td:nth-child(5),td:nth-child(6){
        width: 40px;
    }
}

@keyframes transitionIn {
    from{
        opacity: 0;
        transform: rotateX('-10deg');
    }

    to{
        opacity: 1;
        transform: rotateX('0');
    }
}

@keyframes shake {
    from{
        border: 2px solid var(--red-color);
    }

    to{
        border: 2px solid var(--main-beige-color);
    }

    25% {transform: translateX(4px);}
    50% {transform: translateX(-4px);}
    75% {transform: translateX(4px);}
}