* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    font-family: Arial, Verdana, Geneva, Tahoma, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    height: 100vh;

}
.container{
    display: flex;
    width: 100%;
    height: 100vh;

}
.sidebar{
    display:flex;
    background: #991111;
    color:#fff;
    padding: 20px;
    width: 250px;
    gap: 20px;
    flex-direction: column;
    flex-shrink: 0;

}
.sidebar h1{
    font-size: 1.5rem;
}
.menu{
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-button {
    padding: 10px 15px;
    border: none;
    background: #bb6e6e;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.filter-button:hover {
    background: #670c0c;
}

.filter-button.active {
    background: #670c0c;
}

.central-container{
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
    background: #fff;
}

.task-list{
    flex: 1;
    list-style: none;
    margin-bottom: 20px;
    overflow-y: auto;
}
.task-item{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f5f1f1;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}
.task-item.completed .task-text {
    text-decoration: line-through;
    color: #888;
}

.task-text {
    flex: 1;
    margin-left: 10px;
}

.delete-btn {
    background: transparent;
    border: none;
    color: red;
    font-size: 18px;
    cursor: pointer;
}
.task-input {
    display: flex;
    gap: 10px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.task-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.task-input button {
    padding: 10px 15px;
    border: none;
    background: #991111;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

.task-input button:hover {
    background: #6a0808;
}
.task-desc {
    flex: 1;
    margin-left: 10px;
    color: #555;
    font-size: 0.95em;
    font-style: italic;
}
@media (max-width: 480px) {
    .container {
    flex-direction: column;
    }

    .sidebar {
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
    }

    .menu {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    }

    .filter-button {
    flex: 1;
    text-align: center;
    }
}
@media (max-width: 480px) {
    .container {
    flex-direction: column;
    }

    .sidebar {
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
    }

    .menu {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    }

    .filter-button {
    flex: 1;
    text-align: center;
    }
}
@media (max-width: 768px) {
    .container {
    flex-direction: column;
    }

    .sidebar {
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    }

    .menu {
    flex-direction: row;
    gap: 15px;
    }

    .filter-button {
    text-align: center;
    width: auto;
    }
}