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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(145deg, #0c0f24 0%, #1d1448 50%, #0a1b3d 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    border-radius: 20px;
    border: 4px solid #4dc4ff;
    box-shadow: 0 0 12px #4d7cff;
}

.todo-app {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(118, 17, 17, 0.1);
    overflow: hidden;
}

.todo-header {
    background: linear-gradient(90deg, #007bff, #00c8ff);
    color: rgb(5, 5, 5);
    padding: 22px;
    text-align: center;
}

.todo-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 1;
}

.todo-input-container {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.todo-input {
    flex: 1;
    padding: 10px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}

.todo-input:focus {
    border-color: #211d1d;
}

.add-btn {
    background: linear-gradient(90deg, #00b36b, #009952);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.todo-input:hover {
    border-color: #ff4d4d;
    box-shadow: 0 0 10px #ff4d4d, 0 0 20px #ff4d4d;
}

.add-btn:hover {
    background: #cf1610;
    border-color: #ff4d4d;
    box-shadow: 0 0 10px #ff4d4d, 0 0 20px #ff4d4d;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: #fafafa;
}

.filter-btn {
    padding: 6px 16px;
    border: 1px solid #ef0404;
    background: white;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;

}

.filter-btn:hover {
    border-color: #ff4d4d;
    box-shadow: 0 0 10px #ff4d4d, 0 0 20px #ff4d4d;
}

.filter-btn.active {
    background: #080808;
    color: white;
    border-color: #ff0000;
}

.todo-list {
    list-style: none;
    max-height: 400px;
    overflow-y: auto;
}

.todo-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.todo-item:hover {
    background-color: #fafafa;
}

.todo-item.completed {
    opacity: 5;
}

.todo-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
}

.todo-text {
    flex: 1;
    font-size: 16px;
    color: #000000f0;
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
    color: #999;
}

.delete-btn {
    width: 28px;
    height: 28px;
    background: transparent;
    color: #170505;
    border: none;
    border-radius: 4px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    opacity: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.todo-item:hover .delete-btn {
    opacity: 1;
}

.delete-btn:hover {
    background: #d20303;
    border-color: #ff4d4d;
    box-shadow: 0 0 10px #ff4d4d, 0 0 20px #ff4d4d;
    color: #000000;
}

.todo-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.items-left {
    color: #020202;
    font-size: 14px;
}

.clear-completed {
    padding: 6px 12px;
    background: transparent;
    color: #0f0d0d;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;

}

.clear-completed:hover {
    background: linear-gradient(90deg, #b30000, #ff4d4d);
    color: rgb(7, 6, 6);
    box-shadow: 0 0 10px #ff4d4d;
}

/* Scrollbar styling */
.todo-list::-webkit-scrollbar {
    width: 6px;
}

.todo-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.todo-list::-webkit-scrollbar-thumb {
    background: #645b9bbf;
    border-radius: 3px;
}

.todo-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Responsive design */
@media (max-width: 600px) {
    .todo-header h1 {
        font-size: 2rem;
    }

    .todo-input-container {
        flex-direction: column;
    }

    .add-btn {
        width: 100%;
        justify-content: center;
    }

    .filter-container {
        flex-wrap: wrap;
    }

    .todo-item {
        padding: 15px 20px;
    }
}