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

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 450px;
    background: white;
    border: 2px solid white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.title {
    font-family: 'PT Serif', serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: #3b82f6;
    margin-bottom: 32px;
}

#newtask {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 32px;
    display: flex;
    gap: 8px;
}

#taskInput {
    flex: 1;
    height: 48px;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    outline: none;
    transition: border-color 0.2s;
}

#taskInput:focus {
    border-color: #3b82f6;
}

#addBtn {
    padding: 0 24px;
    height: 48px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#addBtn:hover {
    background-color: #2563eb;
}

#tasks {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#emptyMessage {
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

.task {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 12px;
    animation: fadeIn 0.3s ease-in;
}

.task:last-child {
    margin-bottom: 0;
}

.taskname {
    color: #111827;
    font-weight: 500;
    flex: 1;
}

.delete {
    background-color: #ef4444;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete:hover {
    background-color: #dc2626;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 24px;
        margin: 16px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    #newtask {
        flex-direction: column;
    }
    
    #addBtn {
        width: 100%;
    }
}
