* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    background: linear-gradient(135deg, #7efc91, #19d9df);
    font-family: 'Arial', sans-serif;
}

.container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    justify-content: center;
    align-items: stretch;
}

.sideBar {
    width: 220px;
    background-color: #002765;
    color: white;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sideBar h3 {
    margin-bottom: 20px;
}

.sideBar ul {
    list-style: none;
    padding: 0;
}

.sideBar ul li {
    cursor: pointer;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #0044cc;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.sideBar ul li:hover {
    background-color: #003399;
}

.todo-app {
    flex: 1;
    width: 100%;
    max-width: 540px;
    background: #fff;
    margin: 50px auto 20px;
    padding: 40px 30px 70px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.todo-app h2 {
    margin: 0;
    color: #002765;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.todo-app img {
    width: 30px;
    margin-left: 10px;
}

.row {
    display: flex;
    align-items: center; /* Center items vertically */
    justify-content: space-between; /* Space out items */
    background: #edeef0;
    border-radius: 30px;
    padding: 10px; /* Adjusted padding for better spacing */
    margin-bottom: 25px;
}

input {
    flex: 1; /* Allow input to grow */
    border: none;
    outline: none;
    background: transparent;
    padding: 10px; /* Add some padding for better touch target */
    font-size: 16px; /* Font size for input text */
    border-radius: 5px; /* Rounded corners */
    margin-right: 10px; /* Add space between input and dropdown */
}

button {
    border: none;
    outline: none;
    padding: 12px 20px;
    background: #8045ff;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    border-radius: 40px; /* Rounded corners */
    transition: background-color 0.3s; /* Smooth hover effect */
    margin-left: 10px; /* Space between dropdown and button */
}

button:hover {
    background: #703cc3;
}

ul {
    padding: 0;
}

ul li {
    list-style: none;
    font-size: 17px;
    padding: 12px 8px 12px 50px;
    user-select: none;
    cursor: pointer;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between; /* Use flexbox for layout */
    align-items: center; /* Center items vertically */
}

ul li button {
    background-color: #008CBA; /* Button color */
    color: white; /* Text color */
    border: none;
    border-radius: 5px; /* Rounded corners */
    padding: 5px 10px; /* Padding */
    cursor: pointer; /* Pointer on hover */
    transition: background-color 0.3s; /* Transition effect */
    margin-left: 10px; /* Add space between the task text and edit button */
}

ul li button:hover {
    background-color: #005f73; /* Darker shade on hover */
}

/* Only apply this to list items inside the task-list */
.task-list li::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    background-image: url(img/unchecked.png);
    background-size: cover;
    background-position: center;
    top: 12px;
    left: 8px;
}


/* Ensure the checked tasks show the checked image */
.task-list li.checked {
    color: #555;
    text-decoration: line-through;
}

.task-list li.checked::before {
    background-image: url(img/checked.png);
}

ul li span {
    margin-left: 10px; /* Add space before the "X" button */
    color: #555; /* Color for the delete button */
    font-size: 20px; /* Size for the delete button */
    cursor: pointer; /* Pointer on hover */
    transition: background-color 0.3s; /* Transition effect */
}

ul li span:hover {
    background: #edeef0; /* Light background on hover */
    border-radius: 50%; /* Rounded shape for "X" button */
    padding: 5px; /* Padding for hover effect */
}

select {
    border: 1px solid #ccc; /* Light border for dropdown */
    border-radius: 5px; /* Rounded corners */
    padding: 10px; /* Padding inside dropdown */
    font-size: 16px; /* Font size */
    background-color: #f0f0f0; /* Background color */
    cursor: pointer; /* Pointer cursor */
    transition: background-color 0.3s; /* Smooth hover effect */
}

select:hover {
    background-color: #e0e0e0; /* Darker background on hover */
}

.selected-category {
    background-color: #003399;
    color: #fff;
    font-weight: bold;
}

.checkmark {
    display: none;
    color: #fff;
    font-weight: bold;
}

.selected-category .checkmark {
    display: inline;
}
