body {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.03) 0%, rgb(240, 248, 255) 100%);
    font-family: 'Arial', sans-serif;
    text-align: center;
    margin-top: 50px;
    color: #333;
}

#todo-container {
    background: #fff;
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
    border: 2px solid #ddd;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#header h1 {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
}

#todo-form {
    display: flex;
    align-items: center;
}

#input-box {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    margin-right: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

#input-button {
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #00bfff;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    padding: 0;
    box-sizing: border-box;
}

#input-button i {
    font-size: 20px;
    color: #fff;
}

#input-button:hover {
    background-color: #1e90ff;
}

ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: left;
}

li {
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
    transition: background 0.3s, box-shadow 0.3s;
}

li:hover {
    background: #f1f1f1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

li label {
    flex-grow: 1;
}

.edit-btn,
.delete-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-left: 5px;
    color: #666;
    font-size: 20px;
    position: relative;
}

.edit-btn:hover,
.delete-btn:hover {
    color: #333;
}

.completed {
    text-decoration: line-through;
    color: #888;
    background: #e6e6e6;
}

.counter-container {
    margin-top: 20px;
}

#task-counters {
    font-size: 1.2em;
}

#clear-tasks-button {
    background-color: #ff6666;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-top: 20px;
}

#clear-tasks-button:hover {
    background-color: #ff3333;
}

.edit-btn[title]:hover::after,
.delete-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    top: -35px;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    transition-delay: 1s;
}

.edit-btn[title]:hover::after,
.delete-btn[title]:hover::after {
    opacity: 1;
}

button {
    position: relative;
}