body{
    background: #353f5b;
    color: #91dd2c;
    transition:background 0.3s,color 0.3s;
}

body.light{
    background: #f4f4f4;
    color: #333;
}

.container{
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.input-field{
    text-align: center;
    padding-left: 30px;
}

input[type="text"],
input[type="text"]:focus{
    color:#42a16b;
    border:none;
    background: rgba(0,0,0,0.3);
}

body.light-mode input[type="text"],
body.light-mode input[type="text"]:focus{
    color:#333;
    background: rgba(192,191,191,0.7);
}

.todos li{
    background:#423a6f;
    margin-bottom: 10px;
    transition: background 0.3s;
}

body.light-mode .todos li{
    background:#914a4a;
}

/* Switch Button CSS */
.theme-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.theme-toggle .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-toggle .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-toggle .switch:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d3d0df;
    transition: .4s;
    border-radius: 34px;
}

.theme-toggle .switch:after {
    content: "";
    position: absolute;
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: rgb(101, 20, 20);
    transition: .4s;
    border-radius: 50%;
}

.theme-toggle input:checked + .switch:before {
    background-color: #2196F3;
}

.theme-toggle input:checked + .switch:after {
    transform: translateX(26px);
}