:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media(prefers-color-scheme:light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}:root{--primary-color: #4A90E2;--delete-color: #FF4444;--bg-color: #F5F7FA;--text-color: #333;--completed-color: #888;--shadow: 0 2px 8px rgba(0, 0, 0, .1);--app-bg: white;--item-bg: #F5F7FA;--border-color: #E1E4E8}.dark-mode{--primary-color: #6BA4E9;--delete-color: #FF6B6B;--bg-color: #2C3E50;--text-color: #E1E4E8;--completed-color: #A0A0A0;--shadow: 0 2px 8px rgba(0, 0, 0, .3);--app-bg: #1A2634;--item-bg: #2C3E50;--border-color: #3D5166}body.dark-mode{background-color:#141e27}#root{max-width:800px;margin:0 auto;padding:2rem}.app{background:var(--app-bg);border-radius:12px;box-shadow:var(--shadow);padding:2rem;transition:background-color .3s,color .3s;color:var(--text-color)}.header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.theme-toggle{background:transparent;border:2px solid var(--primary-color);border-radius:50%;width:40px;height:40px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:1.2rem;padding:0;transition:transform .2s}.theme-toggle:hover{transform:rotate(15deg);background:transparent}h1{color:var(--primary-color);text-align:center;margin-bottom:2rem;font-size:2.5rem}.input-container{display:flex;gap:1rem;margin-bottom:2rem}input[type=text]{flex:1;padding:.8rem 1rem;font-size:1rem;border:2px solid var(--border-color);border-radius:6px;transition:border-color .2s,background-color .3s,color .3s;background-color:var(--app-bg);color:var(--text-color)}input[type=text]:focus{outline:none;border-color:var(--primary-color)}.dark-mode input[type=text]::placeholder{color:#718096}button{padding:.8rem 1.5rem;font-size:1rem;color:#fff;background-color:var(--primary-color);border:none;border-radius:6px;cursor:pointer;transition:transform .1s,background-color .2s}button:hover{background-color:#357abd;transform:translateY(-1px)}button:active{transform:translateY(0)}.todo-list{list-style:none;padding:0;margin:0}.todo-list li{display:flex;align-items:center;padding:1rem;margin-bottom:.8rem;background-color:var(--item-bg);border-radius:6px;transition:transform .2s,background-color .3s;border:1px solid var(--border-color)}.todo-list li:hover{transform:translateY(-2px)}.todo-list li input[type=checkbox]{margin-right:1rem;width:1.2rem;height:1.2rem;cursor:pointer}.todo-list li span{flex:1;font-size:1rem;color:var(--text-color)}.todo-list li.completed span{text-decoration:line-through;color:var(--completed-color)}.todo-list li button{background-color:var(--delete-color);padding:.5rem 1rem;font-size:.9rem}.todo-list li button:hover{background-color:#c00}.todo-stats{margin-top:2rem;padding-top:1rem;border-top:2px solid var(--bg-color);display:flex;justify-content:space-between;color:var(--completed-color);font-size:.9rem}@media(max-width:600px){#root,.app{padding:1rem}.input-container{flex-direction:column}.input-container button{width:100%}.todo-stats{flex-direction:column;align-items:center;gap:.5rem}}
