* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #89fffd 0%, #ef32d9 100%);
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

.main {
    background-color: rgba(255, 255, 255, 0.3); 
    padding: 20px; 
    border-radius: 15px; 
    width: 100%; 
    max-width: 800px; 
    margin: 0 auto; 
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    width: 100%; 
    max-width: 100%; 
    background-color: rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.container h1 {
    font-size: 2.5rem;
    color: #e70cbb;
    margin-bottom: 10px;
}

.container p {
    color: #391191;
    font-size: 1rem;
}

#progressBar {
    width: 100%;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
}

#progress {
    height: 100%;
    background-color: #e748d2;
    width: 0;
    transition: width 0.3s ease;
}

.stats {
    margin-top: 20px;
}

.stats p {
    font-size: 1.2rem;
    color: #160e73;
    font-weight: 500;
    text-align: center;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%; 
    margin-top: 20px;
}

.form-container input,
.form-container select,
.form-container button {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #040303;
    backdrop-filter: blur(5px);
    font-size: 1rem;
}

.form-container input::placeholder {
    color: rgba(0, 0, 0, 0.75);
}

.form-container button {
    background-color: #ef32d9;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.form-container button:hover {
    background-color: #ff89e1;
}

.form-container select {
    background-color: rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.filterContainer {
    margin-top: 20px;
    width: 100%;
    text-align: center;
}

.filterdata select {
    padding: 10px;
    border-radius: 8px;
    background-color: rgba(142, 154, 242, 0.2);
    color: black;
    backdrop-filter: blur(5px);
    width: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

#task_List {
    list-style: none;
    margin-top: 20px;
    padding: 0;
    width: 100%; 
}

.taskItem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    margin-bottom: 10px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.task {
    display: flex;
    align-items: center;
    flex-grow: 0.2;
}

#task_List li {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 5px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.taskItem .task p {
    margin: 0;
    font-size: 1rem;
    flex-grow: 1;
}

.taskItem .due-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.taskItem .priority {
    font-weight: bold;
}

.taskItem .category {
    margin-left: 10px;
    font-style: italic;
    font-size: 0.9rem;
}

.icons img {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

@media (max-width: 600px) {
    .main{
        margin-top: 100px;
    }
    .form-container {
        flex-direction: column;
        width: 100%; 
    }

    .filterdata select {
        width: 100%;
    }

    #task_List {
        width: 100%; 
    }
    .task{
        display: block;
    }

    .container {
        max-width: 100%; 
    }
}
