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

body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: linear-gradient(135deg, #294ce9, #46018b);
    min-height: 100vh;
    padding: 30px;
    color: #333;
}


h1 {
    text-align: center;
    color: #fff;
    margin-bottom: 25px;
    letter-spacing: 1px;
}


.section {
    background: #ffffff;
    padding: 20px;
    margin: 15px auto;
    width: 450px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}


.section h3 {
    margin-bottom: 12px;
    color: #162ff0;
    border-left: 4px solid #cfcfcf;
    padding-left: 8px;
}


input {
    width: 70%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    outline: none;
    transition: 0.3s;
}

input:focus {
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
}


button {
    padding: 9px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
}


#addButton {
    background: #667eea;
    color: white;
}

#addButton:hover {
    background: #ccd4f9;
}


ul {
    list-style: none;
    margin-top: 15px;
}


.todo-item {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: 0.3s;
}

.todo-item:hover {
    background: #f0f3ff;
}


.task-text {
    font-weight: 500;
}


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

.timestamp {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}


.todo-item button {
    margin-top: 8px;
    margin-right: 5px;
    font-size: 12px;
}

.doneButton {
    background: #4CAF50;
    color: white;
}

.editButton {
    background: #FFC107;
    color: #333;
}

.removeButton {
    background: #E53935;
    color: white;
}

.doneButton:hover { background: #43a047; }
.editButton:hover { background: #ffb300; }
.removeButton:hover { background: #d32f2f; }


#activityLog li {
    font-size: 13px;
    padding: 5px 0;
    border-bottom: 1px dashed #ddd;
}


#greeting {
    margin-top: 10px;
    font-weight: bold;
    color: #4063ff;
}
@media (max-width: 600px) {

    body {
        padding: 15px;
    }

    h1 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .section {
        width: 100%;
        padding: 15px;
        border-radius: 10px;
    }

    .section h3 {
        font-size: 16px;
    }

    input {
        width: 100%;
        margin-bottom: 10px;
    }

    #addButton {
        width: 100%;
    }

    button {
        width: 100%;
        margin-top: 6px;
    }

    .todo-item {
        padding: 10px;
    }

    .todo-item button {
        width: 100%;
        margin-top: 6px;
        font-size: 13px;
    }

    .timestamp {
        font-size: 11px;
    }

    #activityLog li {
        font-size: 12px;
    }
}