:root {
    --primary: #6366f1;
    --bg: #f8fafc;
    --card: rgba(255, 255, 255, 0.8);
    --text: #1e293b;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

/* Fancy background shapes */
.background-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 40%);
}

.container {
    background: var(--card);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 400px;
}

h1 { font-weight: 600; margin-bottom: 4px; letter-spacing: -1px; }
#dateDisplay { color: #64748b; font-size: 0.9rem; margin-bottom: 2rem; }

.input-section {
    display: flex;
    gap: 12px;
    background: white;
    padding: 6px;
    border-radius: 16px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

#addBtn {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

#addBtn:hover { transform: scale(1.05); background: #4f46e5; }

ul { list-style: none; padding: 0; margin: 0; max-height: 400px; overflow-y: auto; }

li {
    background: white;
    margin-bottom: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

li:hover { transform: translateY(-2px); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }

.task-text { flex: 1; cursor: pointer; }

li.completed { opacity: 0.6; }
li.completed .task-text { text-decoration: line-through; }

.actions { display: flex; gap: 8px; }

.complete-btn, .delete-btn {
    padding: 6px 10px;
    border-radius: 8px;
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.complete-btn { background: #dcfce7; color: #166534; }
.delete-btn { background: #fee2e2; color: #991b1b; }
