* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f3f4f7;
    background-image: linear-gradient(45deg, #FF8C00, #FF6F61);
    animation: backgroundMove 5s infinite linear;
}

@keyframes backgroundMove {
    0% {background-image: linear-gradient(45deg, #FF8C00, #FF6F61);}
    50% {background-image: linear-gradient(45deg, #FF6F61, #FF8C00);}
    100% {background-image: linear-gradient(45deg, #FF8C00, #FF6F61);}
}

.container {
    max-width: 600px;
    width: 100%;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #444;
    margin-bottom: 20px;
}

/* Input Section */
.input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: space-between;
}

input, select {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    width: 40%;
    transition: border-color 0.3s ease;
}

input:focus, select:focus {
    border-color: #007bff;
}

button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background-color: #FF8C00;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background-color: #FF6F61;
    transform: translateY(-2px);
}

/* Task List */
.task-list {
    list-style: none;
    padding: 0;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.2s ease-in-out;
}

.task-item:hover {
    transform: translateX(5px);
}

.task-item.completed {
    background: #e0e0e0;
    opacity: 0.7;
}

.task-item.completed .task-text {
    text-decoration: line-through;
}

.task-text {
    flex: 1;
}

.priority {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85em;
    margin-left: 10px;
}

.high { background: #ffcccc; }
.medium { background: #ffffcc; }
.low { background: #ccffcc; }

.task-actions {
    display: flex;
    gap: 10px;
}

.task-actions button {
    background: #28a745;
    color: white;
    border-radius: 5px;
    padding: 5px 10px;
    transition: background 0.3s ease;
}

.task-actions button:hover {
    background: #218838;
}

.delete-btn {
    background: #dc3545;
}

.delete-btn:hover {
    background: #c82333;
}

                /* Mobile Support */
@media (max-width: 600px) {
    .input-section {
        flex-direction: column;
    }

    input, select, button {
        width: 100%;
    }
}