*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}

body{
    background:linear-gradient(135deg,#667eea,#764ba2);
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;
}

/* Welcome Screen */

.welcome-screen{
    width:100%;
    max-width:400px;
    background:white;
    padding:30px;
    border-radius:15px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,0.2);
}

.welcome-screen p{
    color:#555;
    margin-bottom:15px;
}

.welcome-screen input{
    width:100%;
    margin-bottom:15px;
}

/* Main App */

.container{
    width:100%;
    max-width:500px;
    background:white;
    padding:25px;
    border-radius:15px;
    box-shadow:0 10px 25px rgba(0,0,0,0.2);
    display:none;
}

h1{
    text-align:center;
    margin-bottom:20px;
    color:#333;
}

#welcome{
    text-align:center;
    color:#555;
    margin-bottom:20px;
    font-size:1.1rem;
}

.user-actions{
    display:flex;
    gap:10px;
    margin-bottom:15px;
}

.user-actions button{
    flex:1;
}

.input-section{
    display:flex;
    gap:10px;
    margin-bottom:15px;
}

input{
    flex:1;
    padding:12px;
    border:2px solid #ddd;
    border-radius:8px;
    font-size:16px;
    min-height:48px;
}

button{
    padding:12px 20px;
    border:none;
    border-radius:8px;
    background:#667eea;
    color:white;
    cursor:pointer;
    font-weight:bold;
    min-height:48px;
    transition:0.3s ease;
}

button:hover{
    background:#5563d6;
}

#taskCount{
    margin:15px 0;
    font-weight:bold;
    color:#555;
}

ul{
    list-style:none;
}

li{
    background:#f5f5f5;
    padding:12px;
    border-radius:8px;
    margin-bottom:10px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
}

li span{
    flex:1;
    word-break:break-word;
}

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

.task-buttons{
    display:flex;
    gap:8px;
}

.complete-btn{
    background:#28a745;
}

.complete-btn:hover{
    background:#218838;
}

.delete-btn{
    background:#dc3545;
}

.delete-btn:hover{
    background:#c82333;
}

/* Mobile Responsive */

@media (max-width:600px){

    .container,
    .welcome-screen{
        width:95%;
        padding:15px;
    }

    h1{
        font-size:1.6rem;
    }

    #welcome{
        font-size:1rem;
    }

    .user-actions,
    .input-section{
        flex-direction:column;
    }

    input,
    button{
        width:100%;
    }

    li{
        flex-direction:column;
        align-items:flex-start;
    }

    .task-buttons{
        width:100%;
    }

    .task-buttons button{
        flex:1;
    }
}