body {
    background: linear-gradient(120deg, #f4f6fb 60%, #e0e7ff 100%);
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    align-items: center;
}

.container {
    background: #fff;
    max-width: 520px;
    margin: 48px auto 32px auto;
    padding: 36px 30px 28px 30px;
    border-radius: 16px;
    box-shadow: 0 6px 32px rgba(44,62,80,0.11);
}

h1 {
    text-align: center;
    color: #2d3a4b;
    margin-bottom: 32px;
    font-size: 2.2rem;
    letter-spacing: 1.5px;
    font-weight: 700;
}

form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

input[type="text"],
input[type="date"],
textarea,
select {
    padding: 12px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 7px;
    font-size: 1.05rem;
    background: #f9fafb;
    transition: border 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    border-color: #6c63ff;
    outline: none;
    box-shadow: 0 0 0 2px #e0e7ff;
}

textarea {
    min-height: 70px;
    resize: vertical;
}

button[type="submit"] {
    background: #22c55e;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 13px;
    font-size: 1.07rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(34,197,94,0.07);
    letter-spacing: 0.5px;
}

button[type="submit"]:hover {
    background: #16a34a;
    box-shadow: 0 4px 16px rgba(34,197,94,0.13);
}

#taskList {
    margin-top: 12px;
}

.task-card {
    background: #f7f8fa;
    border-left: 5px solid #6c63ff;
    border-radius: 10px;
    padding: 20px 18px 16px 26px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(44,62,80,0.09);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    transition: box-shadow 0.2s, background 0.2s, border-color 0.2s;
    overflow: hidden;
}

.task-card:hover {
    box-shadow: 0 6px 22px rgba(44,62,80,0.16);
    background: #eef1f7;
}

.task-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: #2d3a4b;
    transition: color 0.2s;
    margin-bottom: 2px;
    word-break: break-word;
}

.task-meta {
    font-size: 0.97rem;
    color: #6b7280;
    display: flex;
    gap: 20px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.task-desc {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 8px;
    word-break: break-word;
}

.task-actions {
    margin-top: 8px;
    display: flex;
    gap: 14px;
}

.task-actions button {
    background: #e5e7eb;
    color: #374151;
    border: none;
    border-radius: 5px;
    padding: 7px 16px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(44,62,80,0.04);
}

.task-actions button.complete-btn {
    background: #22c55e;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.task-actions button.complete-btn:hover {
    background: #16a34a;
}

.task-actions button[disabled],
.task-actions button.complete-btn[disabled] {
    background: #b6e4c7;
    color: #fff;
    cursor: default;
    opacity: 0.85;
}

.task-actions button:hover:not(.complete-btn):not([disabled]) {
    background: #d1d5db;
}

.task-card.completed {
    background: #e5e7eb;
    border-left: 5px solid #22c55e;
}

.task-card.completed .task-title,
.task-card.completed .task-desc,
.task-card.completed .task-meta {
    text-decoration: line-through;
    color: #9ca3af;
    opacity: 0.7;
}

.task-card.completed::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    top: 50%;
    height: 2px;
    background: #9ca3af;
    opacity: 0.5;
    pointer-events: none;
    z-index: 2;
}

@media (max-width: 600px) {
    .container {
        padding: 12px 2vw 10px 2vw;
        max-width: 99vw;
    }
    h1 {
        font-size: 1.3rem;
    }
    .task-card {
        padding: 14px 7px 10px 12px;
    }
    .task-title {
        font-size: 1rem;
    }
    .task-meta {
        font-size: 0.89rem;
        gap: 10px;
    }
    .task-actions button {
        padding: 6px 10px;
        font-size: 0.93rem;
    }
}