.input-section {
    padding: 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    position: sticky;
    top: 0;
    z-index: 9;
    flex-shrink: 0;
}

.input-wrapper {
    display: flex;
    gap: 0.5rem;
    position: relative;
}

.todo-input {
    flex: 1;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    border: 1px solid hsl(var(--input));
    border-radius: var(--radius);
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    transition: all 0.2s;
    font-family: inherit;
    touch-action: manipulation; /* Prevent zoom on double tap */
}

.todo-input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 
        0 0 0 3px hsl(var(--primary) / 0.1),
        0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.todo-input::placeholder {
    color: hsl(var(--muted-foreground));
}

.add-btn {
    padding: 0.625rem 1.25rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.add-btn:hover {
    background: hsl(var(--primary) / 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.add-btn:active {
    transform: translateY(0);
}

.add-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 640px) {
    .input-section {
        padding: 1rem;
    }
    
    .todo-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}