diff --git a/01-To-Do List App/style.css b/01-To-Do List App/style.css index eb77856..5488e07 100644 --- a/01-To-Do List App/style.css +++ b/01-To-Do List App/style.css @@ -1,53 +1,187 @@ +/* ========================= + Global Styles +========================= */ + * { margin: 0; padding: 0; box-sizing: border-box; } + body { - width: 100%; - height: 100vh; - background-color: #212121; - color: #efefef; + background: linear-gradient(135deg, #1f1f1f, #2d2d2d); + color: #ffffff; + font-family: Arial, Helvetica, sans-serif; display: flex; - flex-direction: column; - align-items: center; - font-family: sans-serif; -} -h1.title { - margin-top: 20px; + justify-content: center; + align-items: flex-start; + min-height: 100vh; + padding: 40px 20px; } +/* ========================= + Todo Container +========================= */ + #todo_app { - margin-top: 15px; + width: 100%; + max-width: 600px; + background: #2b2b2b; + padding: 25px; + border-radius: 12px; + box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); } -#todo_app .todo .input { - padding: 10px 20px; - min-width: 400px; - font-size: 1rem; + +.title { + text-align: center; + margin-bottom: 20px; + color: #00d26a; } -#todo_app .todo .input:focus { - border: 2px solid #0e760e; + +/* ========================= + Input Section +========================= */ + +.todo { + display: flex; + gap: 10px; +} + +.input { + flex: 1; + padding: 12px; + font-size: 16px; + border: 2px solid #444; + border-radius: 8px; outline: none; + transition: 0.3s; } -.todo button { - padding: 10px 20px; - border: 1px solid #0c620c; - font-size: 1rem; - background-color: #0c620c; - color: #efefef; + +.input:focus { + border-color: #00d26a; + box-shadow: 0 0 8px rgba(0, 210, 106, 0.4); +} + +/* ========================= + Button +========================= */ + +button { + padding: 12px 20px; + background: #00b050; + color: white; + border: none; + border-radius: 8px; cursor: pointer; - animation: background-color 0.6s ease-in-out; + transition: 0.3s; + font-size: 15px; } -.todo button:hover { - background-color: #0e760e; + +button:hover { + background: #009944; +} + +/* ========================= + Counter +========================= */ + +.counter { + margin-top: 15px; + font-size: 18px; + font-weight: bold; } -ul#todo_list { +/* ========================= + Todo List +========================= */ + +#todo_list { list-style: none; - margin: 15px 0; + margin-top: 20px; +} + +#todo_list li { + background: #3b3b3b; + margin-bottom: 10px; + padding: 12px 15px; + border-radius: 8px; + + display: flex; + justify-content: space-between; + align-items: center; + + transition: 0.3s; +} + +#todo_list li:hover { + background: #474747; +} + +/* ========================= + Buttons inside Todo +========================= */ + +.todo-buttons { + display: flex; + gap: 8px; +} + +.complete-btn { + background: #28a745; +} + +.complete-btn:hover { + background: #218838; +} + +.edit-btn { + background: #ffc107; + color: black; } -ul#todo_list li { - padding: 10px 0px; - border-bottom: 1px solid #2e2e2e; +.edit-btn:hover { + background: #e0a800; +} + +.delete-btn { + background: #dc3545; +} + +.delete-btn:hover { + background: #c82333; +} + +/* ========================= + Completed Todo +========================= */ + +.completed { + text-decoration: line-through; + opacity: 0.6; +} + +/* ========================= + Responsive +========================= */ + +@media (max-width: 600px) { + + .todo { + flex-direction: column; + } + + button { + width: 100%; + } + + #todo_list li { + flex-direction: column; + align-items: flex-start; + gap: 10px; + } + + .todo-buttons { + width: 100%; + justify-content: space-between; + } }